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

Handle ab files #115

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

edward-greybeard
Copy link

Added ability to handle android backups.
Note; the tar will be placed within the temp directory of output, and will be processed from there as if it was a normal tar.

@ydkhatri
Copy link
Collaborator

Looks good, haven't run it yet. Can you operate on the files within, without writing out the entire tar?

I've been looking into the backup tar format since 2019 and there are quite a few things that can be parsed. Some databases are same as on disk, others are very different. I have some code here that reads data from key value pair backups which quite a few tools missed (at least when I wrote it). I should integrate that code here. There is more on my local pc, not in github.

@abrignoni
Copy link
Owner

Tested with a sample ab file. Creates a tar file I can't open with any tool.

@edward-greybeard
Copy link
Author

Looks good, haven't run it yet. Can you operate on the files within, without writing out the entire tar?

Rather than write a new FileSeeker, I thought it would be better to just change it into a tar and then run the FileSeekerTar.

Tested with a sample ab file. Creates a tar file I can't open with any tool.

While it doesn't open the tar file, does ALEAPP run? Some tools (like 7zip it seems) refuse to open it whereas others don't complain (like Python tarfile). I've checked it against an AB file I've just generated from a phone running Android 11 and if worked fine.

Try running a tar tzvf backup.tar.gz and seeing if it works on your test data.

@upintheairsheep
Copy link

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

Successfully merging this pull request may close these issues.

4 participants