Skip to content

Instantly share code, notes, and snippets.

@p32929
Last active December 21, 2021 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p32929/1f89ccc933ca24190b03fb0faf890c0e to your computer and use it in GitHub Desktop.
Save p32929/1f89ccc933ca24190b03fb0faf890c0e to your computer and use it in GitHub Desktop.
Adb backup restore APK + Data

List

List all installed apps

adb shell pm list packages -f -3

You might also use grep altogether

 adb shell pm list packages -f -3 | grep "anybooks"

Backup

backup one app and its all data:

adb backup -f appname.backup -apk com.package.appname

Restore

to restore, first install the app from Google Play or somewhere else. after that, run this:

adb restore appname.backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment