This is an old revision of the document!
Create the backup (whole)
adb backup -apk -noshared -all -system -f ./my-backup.ab
Create a single Package backup
# list the package names adb shell pm list packages # Create a WhatsApp backup (for example), where PACKAGE-NAME is "com.whatsapp" adb backup -f yourbackupfile.ab -noapk com.whatsapp
Restore the backup (any)
adb restore ./my-backup.ab