So I was looking for a faster way to restore apps. I found I could do it FAST with ADB.
Of course you have to be fully rooted to do this. You also need ADB and the ADB drivers installed. Later I will do a tutorial for how to get ADB without installing the entire SDK. You only need about 7 files in a folder! Also a tutorial on how to install the ADB drivers. YES they ARE a pain to get installed on some systems.
So my final process which works and is fast. Again you need ADB and Titanium backup.
To backup:
1) Install titanium backup and do a BATCH backup all user app + system data
2) This will back up all apps to adb_appsback folder on your sdcard.
3) Connect USB and use ADB and type the following.
adb start-server
adb shell
# su
# busybox cp -r data/app/* /sdcard/adb_appsback
OK Thats it. You not only have a backup with titanium that you can use without ADB and you also have all the apps backed up ready for a fast restore with ADB. NOTE: This ADB command does not backup apps that use the SDCard e.g. are installed or partially installed on SDcard. For instance some large games like FLComando.
OK some might be asking.... Well why not also back up the App data with ADB? Well you can do that with this:
busybox cp -r data/data/* /sdcard/adb_databack
However when I restored the data using
busybox cp -r udisk/adb_databack/* /data/data
On reboot I got all kinds of force close on system apps. It seems some things like the framework, etc do NOT like to be restored in this way! So this is why I use Titanium backup to resotre the app data. It's smarter and handles things properly.
OK so to do a restore.
You can use titanium backup the slow way as always or you can do this procedure which will have you restored in NO TIME! You would do this right after a ROM flash for instance.
1) Plug in USB cable and do the following in ADB
adb start-server....
adb shell
# su
# busybox install sdcard/adb_appsback/* /data/app
OK all apps are back on the tablet super fast. Now we need to restore the app and system data. Titaniium back up does this best.
1) Launch titanium backup
2) Select BATCH Restore all apps + data
3) At the top of this restore screen click "Data only". This is important as we already put back all the apps and we just need the data.
4) Now click run the batch operation.
It will restore all data and you wont have to press yes to every install prompt it will just run.
You should reboot after this restore!
Finally as I said some apps that are on SDcard may not be back.. Just go into titanium backup and do the BATCH Restore missing apps + data. Yes on this one you will have to answer all the install prompts but it should only be a few apps that are like this.
MUCH faster than just using titanium backup.
Well thats how I found how to do it on a tablet that does not have nandroid, etc on it.
If you know a better way let me know but this does work well for me.
Bob
Comment