Skip to content

Instantly share code, notes, and snippets.

@dysbulic
Created January 18, 2014 23:55
Show Gist options
  • Select an option

  • Save dysbulic/8498521 to your computer and use it in GitHub Desktop.

Select an option

Save dysbulic/8498521 to your computer and use it in GitHub Desktop.
Pull the sqlite db for an android application off the device and open it.
#!/bin/bash
adb shell "mount -o remount rw /sdcard"
adb shell "run-as com.synaptian.smoketracker.habits cat databases/habits.db > /sdcard/habits.db"
adb pull /sdcard/habits.db
[ -f habits.db ] && sqlitebrowser habits.db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment