Data restore when you flash new rom? - Click Android Development

Hi,
I like testing new ROMS, but there is something annoying, that maybe can be solved.
Every time I wipe, phone data is erased (that's the logical behaviour) and I have to reinstall all my applications (I do it with android commander which is pretty fast), but the problem is I have to reconfigure all the settings, that takes me a lot of time.
Do you know if there is any way to backup / restore configuration for the apps ? I tried TitaniumBackup, whith the save data option, but does not work.
Thnks!!

Backup the contents of the /data/data directory (EVERY FOLDER). Then, when you restore it, it is important to set the correct priviledges (chmod 755 -R *). I think this should be it

ok, thanks a lot!!!! I will try it when a new ROM comes out

Titanium Backup is FC-ing in the middle of its restore progress, something is wrong - app data is not restored . Tried this on CoolBits 1.1 ROM.

Related

Nandroid Restore - applications missing/half there

Hi guys,
I wanted to check out android 2.1 flan, so I installed the rom after making a nandroid backup.
It was fun to check out, but in order to load it I had to wipe my phone and my cache.
After restoring my nandroid, all the applications I had installed but wiped with the cache are acting funny. Basically they still show up in manage applications, but they really arent there, and if I try to reinstall them through market it doesnt let me click install OR uninstall as both are greyed out.
Basically, I will have to wait for all my applications to get "updates" before I can use them again.
Is there a way to clean up these ghost programs... without doing a complete wipe (and loosing text messages and other things)?
I didnt think Nandroid did application backups (what you are seeing are in the ext3 partition)
You need Switchrom or BART to do full backups including apps
I may be (and no dount will be) wrong though.
sjbayer3 said:
Hi guys,
I wanted to check out android 2.1 flan, so I installed the rom after making a nandroid backup.
It was fun to check out, but in order to load it I had to wipe my phone and my cache.
After restoring my nandroid, all the applications I had installed but wiped with the cache are acting funny. Basically they still show up in manage applications, but they really arent there, and if I try to reinstall them through market it doesnt let me click install OR uninstall as both are greyed out.
Basically, I will have to wait for all my applications to get "updates" before I can use them again.
Is there a way to clean up these ghost programs... without doing a complete wipe (and loosing text messages and other things)?
Click to expand...
Click to collapse
As mentioned above, nandroid *does not* back up your external apps. It will ONLY backup your *INTERNAL* storage.
If you make a clean restore of your nandroid backup and then run the fix_permissions script from recovery, it *might* be able to fix (some/most of) your external apps. Might try that.
If it doesn't work, then it is a tedious business of reinstalling each application individually and then restoring *ITS* home directory. Either that or a total wipe (internal and external).
The problem is that the database file that keeps track of which apps you have installed/removed is out of sync with the apps that you have installed.
I am uncertain how to fix this (I have the same problem myself).
If you perform a factory wipe, you'll lose that database entirely. All your apps will be installed, but your phone will think that none of them are.
UPDATE:
OK...apparently this is a more widespread issue impacting people running the stock/OEM ROMs as well as those of us with rooted phones.
Read up on this thread:
http://www.google.com/support/forum/p/Android+Market/thread?tid=096ef069db2788e9&hl=en
I followed the suggestion near the bottom of the page and copied over the /data/data/com.andriod.vending/databases/assets.db to a new filename (basically I renamed it).
I then launched the market app and then it would let me install (reinstall) the missing apps.
Then I ran into a problem. I deleted the new assets.db that was created and copied the old one (the one I renamed) back to assets.db.
Then the market app would force close. I noticed the UID of the assets.db file was wrong.
I ran the fix_permissions script from RA's recovery image. This fixed the UID problem, including the assets.db file. But now the market app only shows the apps that I've paid for......none of the others that I have installed.
Not sure what's going on there. It may sort itself out within 24 hours.

How to keep application settings/game progress

Hi guys
I'm still looking for the right rom for me so I flash different ones every now and then. The problem is with full wipe because for certain apps I would like to keep all settings and changes. In WinMo settings could really be anywhere - certain "ini" files or some entries in registry, it differed from app to app.
How do I do this on Android?
thanks
It would be stored in /data
I have found folders /data/data/package_name - would that be it? So I just copy contents of these folders and copy back on a fresh rom after the app has been installed again?
Edit: Yes, it worked for Vexed and SNESoid
There are a few good back-up apps on the market. I use Titanium which you can reinstall the app+data or just restore data. It also restores system settings and all that. The only problem it gives me, it causes problems with the market after a full restore so i only use the "restore data" features on apps. Hope this helps.

backup,restore help

i recently lost my nexus one but i had a backup folder for titanium backup in my pc
now i just bought a captivate and when i try to restore my msgs ,it says tht restore complete, it shows nohting ie no msgs are restored
when i c the backup , it shows the data is there and wht time it was backed up last
how can i restore my msgs now ?
they just dont show up
rom : cognition 4.1.1
kernel : speedmods
You won't be able to restore system settings/data. Only app data.
^
y is tht , cause its a new phone or wht ?
cause i used to restore alot with the n1 and my spica , and i think i transfered the msgs from 1 to the other btwn them
okay
if its cause if the different roms then can i do this ?
i had cyanogen rom on my nexus when i made tht backup
now if i put cm7 on the captivate , and restore the msgs
is there any software tht can help me restore the msgs on any other rom , after i shift from cm7 ??
PS - i have never really had to go to a different rom on the nexus 1 , i always had the cm rom , so dont know much
System data is specific to a particular phone and ROM. Restoring it, even if it is the same phone and ROM version, has been known to cause problems (app and/or system FCs). Since that backup was made on a different phone, the system aspect of it is useless and even some of your restored apps may not work.
It's actually because the location of the sms database is in a different spot on the galaxy s line, so I'm sure TB restored it to the same spot as on the N1, which is the wrong spot on the Galaxy S/Captivate. You can maybe try moving the database over yourself with adb, though I'd back up your current database first..
The sms/mms database on the nexus one is located at:
/data/data/com.android.providers.telephony/databases/mmssms.db
On the Galaxy S it is in:
/dbdata/databases/com.android.providers.telephony/mmssms.db
What you would want to do is take a backup of your mmssms.db in /dbdata/..., move your old n1 database over to /dbdata/... from /data/data/... (overwriting the existing one) and then restarting your phone.
Titanium Backup restore after ROM install
I am having restore issues and would appreciate some help.
I installed Cognition 4.1.1 on my Captivate. First time through I did Ti Backup "Backup all user apps + system data", moved the Titanium Backup directory to my PC, ran Odin to restore I897UCJF6, but then couldn't do a Master clear due to PC connection difficulties. I continued without a Master Clear and was eventually successful. I restored my apps after installation with TiB "Restore Missing Apps with Data".
Not doing a Master Clear was tormenting me so I did the installation all over again, this time without doing the TiB backup again as I still had the first backup folder on my PC. I found the phone number for the Master Clear and did that in lieu of Odin Master Clear. It all worked...but
...now when I copy my Titanium Backup folder from my PC back to my phone and open TiB, it doesn't see and backups. I have two files in my /mnt/sdcard/TitaniumBackup directory...
TitaniumBackup_latest.apk 1.82 MB, and
TitaniumBackup.apk 1.73 MB.
When I install TiB from the Market, it is version 3.7.4. The first file appears to be the 3.7.2 app and the second is the 3.6.8 app.
Hope I didn't leave anything out. WHERE'S MY STUFF???
Your TitaniumBackup folder shouldn't only have those two backups. Those are just the install files for the Titanium Backup app itself. It should typically have EVERY app/data file inside that folder. (I have 756 files in my TitaniumBackup folder).
Go to the folder copy you left on your computer and see if the files are still there... If not, you're in bad luck I'm afraid.
Ah! I looked around and indeed found the "real" location I had used. I was looking in the folder where I had downloaded the app. The real location has lots of files. I will try again. Thanks for your help.

[Q] Updating, Wiping, Restoring and Titanium...

Dear community,
today as a first step I have successfully rooted my Phone (Froyo 2.2.1) with CF-Root Kernel and Odin, yay! Thanks to all the Developers, Guides and Refs on this page!!
In order to fix my ongoing battery issues,next thing I want to try is to flash a new ROM; I think for stability and for practice the latest Froyo Build JS8! I have downloaded Titanium Backup and have successfully backed up all my system and user apps and settings.
Now when I flash the new ROM, the phone will be wiped, or at least the Wipe-method is recommended (hard-reset AFTER the flashing?).
Can I restore at least some settings and apps with my Titanium Backup Files (I read restoring system apps/settings is not recommended)?
How would I do that (where does Titanium save the backup files?)
How do you guys usually perform the steps to a new ROM without losing all system settings, apps, app-settings etc...?
Thanks for all recommendations!
I would recomend you, restore user apps only. It will restore your apps and their settings. You could do it in batch mode.
Also is recomended to copy your TitaniumBackup folder to PC
Last but not least, do not forget copy your EFS folder too.
Sent from my GT-P1000N using Tapatalk
jellygoos said:
Can I restore at least some settings and apps with my Titanium Backup Files (I read restoring system apps/settings is not recommended)?
How would I do that (where does Titanium save the backup files?)
How do you guys usually perform the steps to a new ROM without losing all system settings, apps, app-settings etc...?
Thanks for all recommendations!
Click to expand...
Click to collapse
1) Get titanium backup PRO.
2) Batch backup your whole system (while you're at it, create a schedule so your phone automatically gets backed up at least once/week). The files will go on your sd card in a TitaniumBackup folder (actually you can specify where they go).
3) Go and nuke your phone with whatever.
4) Re-install Titanium backup, then batch restore your USER apps & settings. Leave the system settings alone for now.
5) Okay for system settings, be a bit more selective:
6) Go to Backup/Restore tab, select menu, then filters, then apply a Filter by Type: System.
7) Anything in GREEN is system settings (red=system applications).
8) I typically restore the following: Contacts/Call-logs; SMS/MMS/APN; Bookmarks; SMS/MMS Preferences; Wifi Access Points; Calendar Storage (think that includes your alarm clock settings).
Note that you may need to reboot before you see the restore take effect - e.g. you can't see your restored sms till after reboot.
Also it's safest to grab a copy of your titanium backup folder and put it on your computer. Lookup how to get a copy of your /efs too.
Thanks for the swift answers and useful guides! Will buy the Titanium Pro for sure.
In the Pro Version it says it can convert System Apps into User Apps and vice versa. Couldn't I just convert all the System Apps into User Apps and then restore everything, once on new ROM?
About the freezing feature of the Pro Version: Does it freeze complete Apps, or can you tell them to freeze specific tasks? I noticed that for example some Google Maps or Latitude tasks run in the background (and start again by themselves if i close them manually) and I would like them to get out of the phone memory while I don't have the program running. Yet I want the apps to function properly once I need them.
P.S.: Before I proceed flashing a new ROM I will also look into backing up my /efs folder so thanks for pointing me at this!
Okay, I figured out how to backup the /efs folder via ADB shell.
Questions remain though concerning Titanium Backup Pro. Can someone that uss Titanium Pro help me with these questions?
In the Pro Version it says it can convert System Apps into User Apps and vice versa. Couldn't I just convert all the System Apps into User Apps and then restore everything, once on new ROM?
About the freezing feature of the Pro Version: Does it freeze complete Apps, or can you tell them to freeze specific tasks? I noticed that for example some Google Maps or Latitude tasks run in the background (and start again by themselves if i close them manually) and I would like them to get out of the phone memory while I don't have the program running. Yet I want the apps to function properly once I need them.
Click to expand...
Click to collapse
jellygoos said:
In the Pro Version it says it can convert System Apps into User Apps and vice versa. Couldn't I just convert all the System Apps into User Apps and then restore everything, once on new ROM?
About the freezing feature of the Pro Version: Does it freeze complete Apps, or can you tell them to freeze specific tasks? I noticed that for example some Google Maps or Latitude tasks run in the background (and start again by themselves if i close them manually) and I would like them to get out of the phone memory while I don't have the program running. Yet I want the apps to function properly once I need them.
Click to expand...
Click to collapse
You could convert it technically. But generally it's not advised as it may mess up settings or so on a different ROM. I backed up my system stuff but I doubt I'll restore it on any ROM, the hassle isn't worth it if any issue shows up and you have to check everything out to fix it. Maybe some individual system thingies can be restored safely but keep in mind lots of system stuff changes on each ROM and could be incompatible.
Just like others did here, I also recommend the PRO version as you have to click every single restoration on a batch restoration otherwise (and it's probably slower anyway).
Freezing means just that, it freezes the app. It "deactivates it", so it's not there/usable but it's not uninstalled. Can't think of a scenario right now where this would be useful except for testing purposes, maybe if an app causes an issue and you want it to be gone temporarily or so.
If you don't want an app to continue running simply use the task manager to kill it which comes along with the SGS (Samsung app afaik, usually pre installed).
Btw Titanium has a nice wiki website which is really helpful but can't link it as a new user here. Google Titanium Backup wiki and the first link should be the correct one.
Correct me if I'm wrong but if you do a app+data restore the app doesnt show up in the market under installed which means that any updates to the app wont get rolled out.
What I did was install each of my apps from the market then did only a data restore. This worked for most of my apps BUT last night I noticed a few of my apps missing, in fact launching my angry birds from simi folder caused a FC. BUT I know that angry birds was working earlier in the day.
So I simply went back to the market and reinstalled and all seems well again.
So now I'm wondering what is the best method to restore, my method or maybe do a app+data restore then go to the market and install the app again.
Afaik, normally Titanium also backs up the links for the markets so the entries won't get lost and should be restored as well. There was an issue mentioned which can happen if that data gets corrupted. The Titanium wiki lists it.
Generally, installing the app from the market and then restoring it should work just fine.

[Q] Titanium Backup Pro willing to restore data at startup [FIXED]

Hello,
I have a Samsung Galaxy S III mini VE N, GT-I8200N which is rooted.
Those last days, it was unstable (reboot loops) and decide to reinstall it by reflash it and restore the application data.
For that, I used Titanium Backup Pro, where I created an update.zip file with all applications. And I also did a full backup on the external SD card.
So :
1. wipe the data
2. reflash a ROM from Sammobile
3. re-root the phone + update.zip with all data in recovery mode
4. reconfigure the system settings (I didn't dared restore the system settings from a corrupted system backup, only the apps).
Everything seemed ok, but once I reboot the phone, I see Titanium Backup launches a scheduled restore, that restores everything, including the system settings. And after that, I get the same problems as before : boot loops, application that crashes : clock, Google Play Services, Skype, ...
I am sure the problem is related to that automatic scheduled restore from Titanium : if I do steps 1-4 (skipping 2 because), restore only user apps and data, and fast uninstall Titanium, I can use my phone as before.
I even removed TitaniumBackup folders, but Titanium Backup still seems to find some backup somewhere.
And I see it keeps my settings from previous, because I checked the "persist" setting.
Is there a way to erase all data from Titanium Backup, especially that ghost restore scheduled job?
I don't seem to find a similar problem on the forum or other websites...
Kind regards,
Xavier.
EDIT: FIXED by myself : I removed Titanium Backup related data /storage/extSdCard/data/ and in /data/data by finding "com.keramides" and "titanium".
The app has forgotten its corrupted settings and is working fine now.

Categories

Resources