android-backup-extractor
android-backup-extractor copied to clipboard
[OSX] Alternative archive strategy (using pax) before packing
On mac os I couldn’t achieve the repacking using tar command. This was mainly due to
- Directories in the archive
- trailing slashes
- .DS_Store hidden files
Instead of tar I did the following :
find apps -type f -not -path '*/\.*' | pax -wd > test.tar
java -jar abe.jar pack test.tar test.ab
adb restore test.ab
We can check the source code at : https://github1s.com/aosp-mirror/platform_frameworks_base/blob/android11-mainline-release/services/backup/java/com/android/server/backup/restore/FullRestoreEngine.java
May be we can add it to readme as a PR
Do repacked files really restore?