Skip to content

Commit

Permalink
GitBook: [master] one page modified
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospolop authored and gitbook-bot committed Feb 17, 2021
1 parent f83c915 commit 5ebaa83
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mobile-apps-pentesting/android-app-pentesting/adb-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,13 @@ adb backup [-apk] [-shared] [-system] [-all] -f file.backup
# -all -- Include all the applications

adb shell pm list packages -f -3 #List packages
adb backup -f myapp.ab -apk com.myapp # backup on one device
adb restore myapp.ab # restore to the same or any other device
adb backup -f myapp_backup.ab -apk com.myapp # backup on one device
adb restore myapp_backup.ab # restore to the same or any other device
```

If you want to inspect the content of the backup:

```bash
( printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 myapp_backup.ab ) | tar xfvz -
```

0 comments on commit 5ebaa83

Please sign in to comment.