Created
June 15, 2014 03:23
-
-
Save codeguru42/08fbf0c46d36ae5c9a28 to your computer and use it in GitHub Desktop.
Test Backup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#verify command-line args | |
package = $1 | |
apk = $2 | |
adb install ${apk} | |
adb shell bmgr enable true | |
adb push bbct.db /data/data/${package}/databases | |
adb shell bmgr backup ${package} | |
adb shell bmgr run | |
adb uninstall ${package} | |
adb install ${apk} | |
# verify data | |
adb uninstall ${package} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment