Editing adb backup files 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?
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.