how can i back up app settings?

Pinesal

Senior Member
Jan 28, 2009
515
19
0
i want to wipe my phone but dont want to lose settings for some apps such as locale and io shopping. is there a way to pull files off the phone that store app settings, wipe and then push them back to restore the settings?

any other way to do this?
 

DirectMatrix

Senior Member
Jun 16, 2009
496
6
0
Norfolk, VA
i want to wipe my phone but dont want to lose settings for some apps such as locale and io shopping. is there a way to pull files off the phone that store app settings, wipe and then push them back to restore the settings?

any other way to do this?
Code:
cp -R /data/data/edu.mit.locale /sdcard/locale/
that would be the shell commands to backup your entire Locale database and preferences from its permanent home on your phone to an sdcard folder called "locale"

Or you could do:

Code:
adb pull /data/data/edu.mit.locale/* C:\android\locale
which would be the adb command to pull the folder from the phone and put it in a folder on your C drive called "android\locale"

since I don't have oi shopper installed, I can't tell you the database location but if you go into a shell and do

Code:
cd data/data
ls
you should see something like com.android.oi.shopper or com.shopperoi.android or something along those lines....once you have the folder location, you can use the above code to pull it out onto your computer.

To restore you have to put the files for Locale back here:

Code:
/sdcard/locale/edu.mit.locale/* /data/data/edu.mit.locale
and some similar code for oi shopper

Check out this link for more info on how to explore the file structure of android and some helpful commands

http://forum.xda-developers.com/showthread.php?t=488928
 
Last edited:

Pinesal

Senior Member
Jan 28, 2009
515
19
0
Sounds good, that is very helpful. If I just pulled the entire data folder, would that back up the settings for every app?
 
Last edited:

DirectMatrix

Senior Member
Jun 16, 2009
496
6
0
Norfolk, VA
Sounds good, that is very helpful. If I just pulled the entire data folder, would that back up the settings for every app?
Some people will tell you that you only have to pull the .db (database) file usually within the database folder of a particular app in order to backup the settings. I took it one step further and just simply backup and restore the entire application folder and it works fine. I have my doubts that if you just back up and restore the entire /data/data folder, that it will work, but you can give it a try. I might do the same on my spare G1 for ****s and giggles too.

I have tested my method on the following:

Apps
* A2b
* Amazon
* Twidroid
* Simchecker
* Locale
* Doom
* Flixster
* Gmail
* Email
* Gmote
* Gscripts
* Keyring
* Market
* Missed Call
* Shazam
* SMS Popup
* SMS Sync
* Tunewiki
* TunesRemote
* The Weather Channel
* Youtube
* Default Text Message

as well as on the following settings
Settings
* Launcher (will remember home screen settings this way)
* Wifi
* dictionary
* Call log
* alarms
* google settings, and settings....not sure what these do, but I found them in the /data/data tree so I back them up and restore anyway. I hope that answers your questions.
 

johnt2k

Senior Member
Jun 11, 2009
60
1
0
any idea if this would work for open home and better cut

i hate after flashing roms having to rest my desktop and all my icons