Skip to content

Handle ab files - #115

Open
edward-greybeard wants to merge 3 commits into
abrignoni:mainfrom
edward-greybeard:handle_AB_files
Open

Handle ab files#115
edward-greybeard wants to merge 3 commits into
abrignoni:mainfrom
edward-greybeard:handle_AB_files

Conversation

@edward-greybeard

Copy link
Copy Markdown

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
Copy Markdown
Contributor

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
Copy Markdown
Owner

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

@edward-greybeard

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

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