This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| docu:csheet:dtproc:backups:android_apps_backup [2020/07/27 19:18] – created admin | docu:csheet:dtproc:backups:android_apps_backup [2021/08/31 13:23] (current) – admin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| \\ | \\ | ||
| - | Create the backup | + | Create the backup | 
| <code bash> | <code bash> | ||
| adb backup -apk -noshared -all -system -f ./ | adb backup -apk -noshared -all -system -f ./ | ||
| Line 8: | Line 8: | ||
| \\ | \\ | ||
| - | Restore the backup | + | Create a **Single-Package** backup | 
| + | <code bash> | ||
| + | # list the package names | ||
| + | adb shell pm list packages | ||
| + | |||
| + | # Create a WhatsApp backup (for example), where PACKAGE-NAME is " | ||
| + | adb backup -f yourbackupfile.ab -noapk com.whatsapp | ||
| + | </ | ||
| + | |||
| + | \\ | ||
| + | **Extract** the files/ | ||
| + | <code bash> | ||
| + | # strip the first 24 bytes (header) and decompress the raw zlib data with " | ||
| + | dd if=yourbackupfile.ab ibs=24 skip=1 | openssl zlib -d > yourbackupfile.tar | ||
| + | # in case you don't have zlib support on your openssl, you can do this: | ||
| + | dd if=yourbackupfile.ab bs=1 skip=24 | python3 -c ' | ||
| + | |||
| + | # extract the archive | ||
| + | tar xvf yourbackupfile.tar | ||
| + | </ | ||
| + | |||
| + | \\ | ||
| + | More informatión of **how to modify/ | ||
| + | https:// | ||
| + | |||
| + | \\ | ||
| + | Restore the backup | ||
| <code bash> | <code bash> | ||
| adb restore ./ | adb restore ./ | ||
| </ | </ | ||