User Tools

Site Tools


docu:csheet:dtproc:backups:android_apps_backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
docu:csheet:dtproc:backups:android_apps_backup [2020/12/17 22:43]
admin
docu:csheet:dtproc:backups:android_apps_backup [2021/08/31 13:23]
admin
Line 2: Line 2:
  
 \\ \\
-Create the backup (whole)+Create the backup (**whole**)
 <code bash> <code bash>
 adb backup -apk -noshared -all -system -f ./my-backup.ab adb backup -apk -noshared -all -system -f ./my-backup.ab
Line 8: Line 8:
  
 \\ \\
-Create a single Package backup+Create a **Single-Package** backup
 <code bash> <code bash>
 # list the package names # list the package names
Line 16: Line 16:
 adb backup -f yourbackupfile.ab -noapk com.whatsapp adb backup -f yourbackupfile.ab -noapk com.whatsapp
 </code> </code>
 +
 +\\
 +**Extract** the files/directories of the backup for **query or modification**
 +<code bash>
 +# strip the first 24 bytes (header) and decompress the raw zlib data with "openssl"
 +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=my-backup.ab bs=1 skip=24 | python3 -c 'import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))' > yourbackupfile.tar
 +
 +# extract the archive
 +tar xvf yourbackupfile.tar
 +</code>
 +
 +\\
 +More informatión of **how to modify/repack** and restore an Android ADB Backup on:
 +https://stackpointer.io/mobile/android-adb-backup-extract-restore-repack/372/
  
 \\ \\
docu/csheet/dtproc/backups/android_apps_backup.txt · Last modified: 2021/08/31 13:23 by admin