Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pPanda-beta opened this issue Jul 15, 2021 · 2 comments
Open

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

pPanda-beta opened this issue Jul 15, 2021 · 2 comments

Comments

@pPanda-beta
Copy link

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
Copy link
Author

May be we can add it to readme as a PR

@superbonaci
Copy link

Do repacked files really restore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants