Skip to content

Instantly share code, notes, and snippets.

@vitovalov
Last active August 29, 2015 14:22
Show Gist options
  • Save vitovalov/c3c29b14d792f152ad77 to your computer and use it in GitHub Desktop.
Save vitovalov/c3c29b14d792f152ad77 to your computer and use it in GitHub Desktop.
Pull SQLite DB from Android 5 Nexus 5
# -d is used to target the connected device and not emulator(-e)
# by setting permission 777 you are allowing to everybody r/w access
adb -d shell "run-as com.vitaminlabs.visualization chmod -R 777 /data/data/com.vitaminlabs.visualization/databases/"
adb -d shell "cp /data/data/com.vitaminlabs.visualization/databases/visualization.db /sdcard/visualization.db"
adb -d pull "/sdcard/visualization.db"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment