nelenkov / android-backup-extractor

Android backup extractor
Other
2.24k stars 275 forks source link

Unpacked tar files are corrupt when unpacking a backup of com.mountainproject.android #105

Open dh4 opened 2 years ago

dh4 commented 2 years ago

Hello,

I'm having an issue with using abe to unpack an Android backup that contains com.mountainproject.android. See the following error from tar after unpacking:

...
apps/com.mountainproject.android/f/photos/3c68748773856278e549dea22e33138e.1
apps/com.mountainproject.android/f/photos/journal
apps/com.mountainproject.android/f/mountainproject_user.realm
apps/com.mountainproject.android/f/mountainproject_user.realm.lock
apps/com.mountainproject.android/f/mountainproject_user.realm.management
apps/com.mountainproject.android/f/mountainproject_user.realm.management/access_control.control.mx
apps/com.mountainproject.android/f/mountainproject_user.realm.management/access_control.write.mx
apps/com.mountainproject.android/f/gaClientId
apps/com.mountainproject.android/f/mountainproject_search.realm.lock
apps/com.mountainproject.android/f/mountainproject_search.realm.management
apps/com.mountainproject.android/f/mountainproject_search.realm.management/access_control.control.mx
apps/com.mountainproject.android/f/mountainproject_search.realm.management/access_control.write.mx
apps/com.mountainproject.android/f/mountainproject.realm
tar: Skipping to next header
tar: A lone zero block at 1439794
tar: Exiting with failure status due to previous errors

This is from an older backup, so I tried with the current version of the app by running:

adb backup -f backup.ab -apk com.mountainproject.android
abe unpack backup.ab mp.tar
tar -xvf mp.tar

This resulted in the following error from tar:

...
apps/com.mountainproject.android/f/photos/4d3f9dcca31baf0ec81bd219d807987a.0
apps/com.mountainproject.android/f/mountainproject_user.realm.lock
apps/com.mountainproject.android/f/mountainproject_user.realm.management
apps/com.mountainproject.android/f/mountainproject_user.realm.management/access_control.write.mx
apps/com.mountainproject.android/f/mountainproject_user.realm.management/access_control.control.mx
apps/com.mountainproject.android/f/mountainproject.realm.tmp_compaction_space
tar: Unexpected EOF in archive
tar: rmtlseek not stopped at a record boundary
tar: Error is not recoverable: exiting now

I tried several other apps as controls and did not have any issues unpacking the resulting tar archives. It seems that com.mountainproject.android is the problem app. Let me know if this is reproducible or if any other information would be helpful.