Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pulling a sqlite databases from a non rooted android device
#
# Copy the database from its standard location to the sd card
#
adb -d shell "run-as <app.package.name.here> cat /data/data/<app.package.name.here>/databases/<app.database.name.here> /sdcard/<output.filename.here>"
#
# Pull the database from the sdcard to a specified local filename or the current directory if not
#
adb pull /sdcard/<remote.filename.here> [<local.filename.here>]
#
# Tidy up and delete the copied file from the sdcard.
#
adb -d shell rm /sdcard/<remote.filename.here>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment