Open an Android adb backup .ab file as a tar and a ZIP of its files — Step-by-step guide
An adb backup .ab file from an Android phone is a short text header followed by a zlib-compressed tar. AbOpen reads it in your browser, gives you backup.tar and a ZIP of every file under its original app path, and an index.csv with the size and SHA-256 of each one. Encrypted AES-256 backups open with their password, which is used only inside your browser.
What the sample produces
The samples are generated from the documented header layout, not from a real phone. A separate check, built only on Node zlib and crypto, reads the same bytes, decrypts the AES-256 copy with its password, and compares each restored file, the backup.tar and every SHA-256 in index.csv with the source. A wrong, missing or non-ASCII password, a cut-short file and a tampered header are each rejected.
- Files restored
- 7, under their app paths
- Rows in index.csv
- 7, with size and SHA-256
- Tar kept as
- backup.tar, 12,800 bytes
How to use it
- On a computer with Android platform-tools installed, run adb backup -apk -shared -all -f backup.ab and confirm the backup on the phone. If you set a backup password there, keep it ready. Keep the .ab name.
- Choose the .ab file here. If the preview says the backup is AES-256 encrypted, type its password in the password box, which shows plain text. The preview lists the files and the encryption. Nothing is uploaded.
- Download backup.tar for the raw archive, or the ZIP for the files. index.csv lists the original path, size and SHA-256 of each file.
Supported files
Reads adb backups with the ANDROID BACKUP header (version 1 to 5). The payload can be uncompressed or zlib-compressed, and it can be unencrypted or AES-256 encrypted. Encrypted backups need the password. Only ASCII passwords are accepted, because Android derives the key from ASCII characters. Other encryption formats, Titanium or Helium exports and backups made from a Windows tool are not checked. Only regular files are written to the ZIP; folder records become folders by path. The backup is not restored to a phone and the device is not contacted. Checked against backups generated in the documented layout, not a backup from a real phone, so test one of your own first. Up to 512 MB, read in browser memory.