Last active
August 29, 2015 14:03
-
-
Save pavel-mukhanov/f45ce1986ea433a653a6 to your computer and use it in GitHub Desktop.
Pull database from device
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
PACKAGE_NAME='com.playdayteam.playday.debug' | |
adb shell "run-as $PACKAGE_NAME chmod 777 /data/data/$PACKAGE_NAME/databases/" | |
adb shell "run-as $PACKAGE_NAME chmod 666 /data/data/$PACKAGE_NAME/databases/active_android.db" | |
adb pull /data/data/$PACKAGE_NAME/databases/active_android.db . | |
adb shell "run-as $PACKAGE_NAME chmod 700 /data/data/$PACKAGE_NAME/databases/" | |
adb shell "run-as $PACKAGE_NAME chmod 600 /data/data/$PACKAGE_NAME/databases/active_android.db" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment