Android ADB Backup
Kayvon2008 (Talk | contribs) (→Extraction) |
Kayvon2008 (Talk | contribs) (→Flags) |
||
Line 4: | Line 4: | ||
==Flags== | ==Flags== | ||
− | -all Backups all compatible apps <br> | + | <code> -all </code> Backups all compatible apps <br> |
− | (package id) Backs up the stated package(s) if compatible. <br> | + | <code> -f </code> Chooses the path and name for the file |
− | -system backups system apps if -all or a system package Id is stated. <br> | + | <code>(package id) </code> Backs up the stated package(s) if compatible. <br> |
− | -nosystem does not back up system data. <br> | + | <code>-system </code> backups system apps if -all or a system package Id is stated. <br> |
− | -apk Backs up the [[.apk]] of the app(s) <br> | + | <code>-nosystem </code> does not back up system data. <br> |
− | -noapk does not back up apk files <br> | + | <code>-apk </code> Backs up the [[.apk]] of the app(s) <br> |
− | -obb Backs up [[.obb]] (app extention) files <br> | + | <code>-noapk </code> does not back up apk files <br> |
− | -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. <br> | + | <code>-obb </code> Backs up [[.obb]] (app extention) files <br> |
− | -noshared does not back up shared storage. <br> | + | <code>-shared </code> 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. <br> |
+ | <code>-noshared </code> does not back up shared storage. <br> | ||
+ | |||
==Discontinuation== | ==Discontinuation== | ||
Android backups are being discontinued and fully replaced by [[Android Google Drive Backup|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 Android 10 “Queen Cake”. 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. | Android backups are being discontinued and fully replaced by [[Android Google Drive Backup|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 Android 10 “Queen Cake”. 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. |
Revision as of 18:19, 30 October 2021
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 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) that can extract them, and they require the command line.
Extraction
It is extremely hard to extract them, and 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.
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.
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 Android 10 “Queen Cake”. 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.