I bought second Asus ZS570KL as backup phone since my old one starts to do... weird things. I created full backup using:
./adb backup -apk -all -obb -shared -v -f /backups/phone8.ab
And later performed
./adb restore /backups/phone8.ab
But it only restored files. When I checked out adb logcat -b system
I noticed:
04-06 22:29:45.596 10100 10256 W DefContainer: Failed to parse package at /data/cache/backup_stage/pl.m4x.sphinx_customer_android_mobile_app_v2: android.content.pm.PackageParser$PackageParserException: Failed to parse /data/cache/backup_stage/pl.m4x.sphinx_customer_android_mobile_app_v2
04-06 22:29:45.617 2214 10078 D BackupManagerService: [discarding file content]
04-06 22:29:45.624 2214 10078 I chatty : uid=1000(system) adb-restore identical 52 lines
04-06 22:29:45.624 2214 10078 D BackupManagerService: [discarding file content]
04-06 22:29:45.625 2214 10078 I BackupManagerService: Package pl.neptis.yanosik.mobi.android not installed; requiring apk in dataset
04-06 22:29:45.625 2214 10078 D BackupManagerService: APK file; installing
04-06 22:29:45.625 2214 10078 D BackupManagerService: Installing from backup: pl.neptis.yanosik.mobi.android
04-06 22:29:49.671 10100 10256 W DefContainer: Failed to parse package at /data/cache/backup_stage/pl.neptis.yanosik.mobi.android: android.content.pm.PackageParser$PackageParserException: Failed to parse /data/cache/backup_stage/pl.neptis.yanosik.mobi.android
04-06 22:29:49.699 2214 10078 D BackupManagerService: [discarding file content]
04-06 22:29:49.805 2214 10078 I chatty : uid=1000(system) adb-restore identical 100 lines
04-06 22:29:49.805 2214 10078 D BackupManagerService: [discarding file content]
04-06 22:29:49.805 2214 10078 I BackupManagerService: Package ru.dront78.pulsedroid not installed; requiring apk in dataset
04-06 22:29:49.805 2214 10078 D BackupManagerService: APK file; installing
04-06 22:29:49.805 2214 10078 D BackupManagerService: Installing from backup: ru.dront78.pulsedroid
04-06 22:29:49.811 10100 10256 W DefContainer: Failed to parse package at /data/cache/backup_stage/ru.dront78.pulsedroid: android.content.pm.PackageParser$PackageParserException: Failed to parse /data/cache/backup_stage/ru.dront78.pulsedroid
04-06 22:29:49.812 2214 10078 I BackupManagerService: Package ru.zdevs.zarchiver not installed; requiring apk in dataset
04-06 22:29:49.813 2214 10078 D BackupManagerService: APK file; installing
04-06 22:29:49.813 2214 10078 D BackupManagerService: Installing from backup: ru.zdevs.zarchiver
04-06 22:29:50.296 10100 10256 W DefContainer: Failed to parse package at /data/cache/backup_stage/ru.zdevs.zarchiver: android.content.pm.PackageParser$PackageParserException: Failed to parse /data/cache/backup_stage/ru.zdevs.zarchiver
04-06 22:29:50.304 2214 10078 D BackupManagerService: [discarding file content]
04-06 22:29:50.305 2214 10078 I BackupManagerService: Package simple.hexadecimal.color not installed; requiring apk in dataset
04-06 22:29:50.305 2214 10078 D BackupManagerService: APK file; installing
04-06 22:29:50.305 2214 10078 D BackupManagerService: Installing from backup: simple.hexadecimal.color
04-06 22:29:50.470 10100 10256 W DefContainer: Failed to parse package at /data/cache/backup_stage/simple.hexadecimal.color: android.content.pm.PackageParser$PackageParserException: Failed to parse /data/cache/backup_stage/simple.hexadecimal.color
04-06 22:29:50.473 2214 10078 D BackupManagerService: [discarding file content]
So it seems to crash. Google backup only seems to back up 80 of my 380 apps and definitely doesn't back up largest ones. What are my other options to perform full device mirror including all apps data, settings, credentials and everything? I'd like to have exactly mirrored 2 devices.
abrestore
from thetools/
subdir to restore, which works around the bug (details don't fit in a comment here).adb backup
. It's still far from perfect but at lest some apps properly migrated settings so I guess that's already something.tools/abrestore
? Oh: and no, data should be backed-up and restored fine without root this way. Except for those where devs disallowed it for their apps.userbackup/sysbackup
+userrestore/sysrestore
) just added-obb
flag to script. For some reasonshared files
backup done by Adebar didn't work so I usedadb backup -shared
directly to restore files before using Adebar restore scripts. As result most of apps migrated properly. Most of those which didn't either required user to log in (so I assume those apps had disabled backup). Others backed up partially (eg. settngs didn't get restored but bookmarks did or other weird cases of partial settings restoration). I copied settings manually so now it's ok.userrestore/sysrestore
. That said I tried to doadb restore
afteradb backup -obb -all
having apps installed by Asus app before and it also didn't work. So I guess bulk restore of all apps settings never works. Nasty issue. Gave me real struggle.