I want to edit the contents of an .adb backup file. I found a command to extract the contents:

dd if=mybackup.adb bs=24 skip=1 | zlib-flate -uncompress | tar xf -

I edited the extracted files as needed but how do I build adb files with the modified files?

I thought of streaming the directory, compressing it with zlib-flate and generating the tar file. Is it possible?


1 Answer 1


In my opinion the preferred way for extracting such backup archives is Android Backup Extractor (abe) (requires installed Java Runtime).

It allows to convert adb backup archives to tar files and also the reverse way to convert TAR files back to an adb backup files that can be restored via adb:

java -jar abe.jar unpack mybackup.ab mybackup.tar

Modify created file mybackup.tar.

java -jar abe.jar pack mybackup.tar mybackup_mod.ab
adb restore mybackup_mod.ab

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .