Wednesday, November 1, 2017

4.0 ice cream sandwich - Partial adb restore


ICS devices support creating backups using adb backup, and restoring them using adb restore. Using adb backup, one can select that everything should be backed up, or only a certain package.


However, adb restore lacks all the options of adb backup. When I call adb restore backup.ab, where backup.ab is only the backup of a single package, the phone shows me a warning dialog saying that all settings are going to be lost after restoring the backup. Is it true that restoring a single package backup wipes all data on the phone? If yes, is it somehow possible to restore a single package using adb restore?



Answer



Picking up my comment on the question:



Is it true that restoring a single package backup wipes all data on the phone?



No. As I suspected in my comment, the warning just relates to the settings of the app being restored, as they would be replaced by those from the backup. I used adb backup to backup a single app on one device, and restored it to multiple devices. I didn't miss anything afterwards, all other apps (and data) remained untouched.



It wouldn't make any sense the other way, either. And Carbon - App Sync and Backup couldn't offer to restore a single app, as it itself would be gone then as well :)


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...