Skip to content

Instantly share code, notes, and snippets.

@mgbckr
Last active March 2, 2018 13:48
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 mgbckr/5a8777bdc033847ac4cae18ef6f7badd to your computer and use it in GitHub Desktop.
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`
./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
@mgbckr
Copy link
Author

mgbckr commented Mar 2, 2018

For some reason using the Android Studio device explorer did not work, so I had to resolve to this.

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