Last active
March 2, 2018 13:48
-
-
Save mgbckr/5a8777bdc033847ac4cae18ef6f7badd to your computer and use it in GitHub Desktop.
Small set of commands to download a database file (or any file) from an android device using `adb`
This file contains hidden or 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
./adb shell | |
run-as the.package.of.the.application | |
cd /data/data/dthe.package.of.the.application/databases | |
chmod 777 TheDatabase.db | |
cp TheDatabase.db /mnt/sdcard/ | |
./adb pull /mnt/sdcard/TheDatabase.db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some reason using the Android Studio device explorer did not work, so I had to resolve to this.