nelenkov / android-backup-extractor

Android backup extractor
Other
2.24k stars 275 forks source link

[OSX] Alternative archive strategy (using pax) before packing #86

Open pPanda-beta opened 3 years ago

pPanda-beta commented 3 years ago

On mac os I couldn’t achieve the repacking using tar command. This was mainly due to

  1. Directories in the archive
  2. trailing slashes
  3. .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

pPanda-beta commented 3 years ago

May be we can add it to readme as a PR

superbonaci commented 2 years ago

Do repacked files really restore?