Skip to content

Instantly share code, notes, and snippets.

@ccjeng
Last active February 22, 2022 05:43
Show Gist options
  • Save ccjeng/5175340 to your computer and use it in GitHub Desktop.
Save ccjeng/5175340 to your computer and use it in GitHub Desktop.
Android adb backup command
## backup nonsystem apk
adb backup -apk -shared -nosystem -all -f backup_apk.ab
### backup system and nonsystem apk
adb backup -apk -noshared -system -all -f backup_apk.ab
## backup individual apk
adb backup -apk com.example.testing -f testing.ab
## restore all
adb restore backup_apk.ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment