Android ADB Backup

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Extraction)
(Extraction)
Line 14: Line 14:
 
==Extraction==
 
==Extraction==
 
It is extremely hard to extract them, and for the [https://sourceforge.net/projects/android-backup-processor/ best available tool] you need the command line (and knowledge how to use it) and Java installed. [https://www.softpedia.com/get/Mobile-Phone-Tools/Droid-Explorer.shtml  Droid Explorer] claims to be able to extract ADB backups, but there is no prompt of extraction and is a pain to install. [https://stackoverflow.com/questions/18533567/how-to-extract-or-unpack-an-ab-file-android-backup-file Other command line tricks] may also convert it to an easily extractable TAR.
 
It is extremely hard to extract them, and for the [https://sourceforge.net/projects/android-backup-processor/ best available tool] you need the command line (and knowledge how to use it) and Java installed. [https://www.softpedia.com/get/Mobile-Phone-Tools/Droid-Explorer.shtml  Droid Explorer] claims to be able to extract ADB backups, but there is no prompt of extraction and is a pain to install. [https://stackoverflow.com/questions/18533567/how-to-extract-or-unpack-an-ab-file-android-backup-file Other command line tricks] may also convert it to an easily extractable TAR.
<-- ==Structucture== -->
+
<--- ==Structucture== --->
  
 
==Flags==
 
==Flags==

Revision as of 03:33, 2 November 2021

File Format
Name Android ADB Backup
Ontology

Android backups (.ab) are backups made by Android Debug Bridge (ADB). They are the preferred way of backing up an unrooted stock android device. (Manufacturers and/or carriers may provide their own backup tools). They can be encrypted (with AES) or unencrypted. They can be created via ADB backup and restored via ADB restore. Android backups themselves are .TAR files with a different header and no footer. Unfortunately, there are no graphical tools yet (other than MobilEDIT Forensics, which is payed) that can extract them, and they require the command line. It is compressed via the DEFLATE method. Even on Android 10 "Queen Cake", ADB backup is super unreliable, and frequently misses apps.

Contents

Header

ANDROID BACKUP
1
1
none

Extraction

It is extremely hard to extract them, and for the best available tool you need the command line (and knowledge how to use it) and Java installed. Droid Explorer claims to be able to extract ADB backups, but there is no prompt of extraction and is a pain to install. Other command line tricks may also convert it to an easily extractable TAR. <--- ==Structucture== --->

Flags

-all Backups all compatible apps
-f Chooses the path and name for the file
(package id) Backs up the stated package(s) if compatible.
-system backups system apps if -all or a system package Id is stated.
-nosystem does not back up system data.
-apk Backs up the .apk of the app(s)
-noapk does not back up apk files
-obb Backs up .obb (app extention) files
-shared Backs up all shared storage (/storage/emulated/0/), including SD cards and USB OTGs, so it is recommended to eject and disconnect any external storage unless you want to back up that.
-noshared does not back up shared storage.
-includekeyvalue Backs up apps that support Key Value backups. Key value backups were added in Android 2.2 “Froyo”, and this flag was added in Android 8.0 “Oreo” (Even since Developer Preview 1)

Discontinuation

Android backups are being discontinued and fully replaced by Google Drive backups. Google drive backups cannot be downloaded, and there is a 25 MB per-app limit. You need a network sniffer to log upload traffic to capture these. The warning was there since the SDK of Android 10 “Queen Cake”, however, backups themselves weren’t changed. In Android 12 “Snow Cone”, apps with Snow Cone’s API level with backup flag set to true and a Snow Cone device will back up to (dumb) Google Drive instead.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox