android-backup-extractor icon indicating copy to clipboard operation
android-backup-extractor copied to clipboard

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

Open pPanda-beta opened this issue 4 years ago • 2 comments

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 avatar Jul 15 '21 17:07 pPanda-beta

May be we can add it to readme as a PR

pPanda-beta avatar Jul 15 '21 17:07 pPanda-beta

Do repacked files really restore?

superbonaci avatar May 21 '22 01:05 superbonaci