- android studio :用debug运行app。
- terminal:
adb shell
run-as com.example.app.(app的package名)
cd databases
ls
sqlite3 xxx.db
http://stackoverflow.com/questions/19194576/how-to-view-the-sqlite-database-in-device-android, 这里说可以把 xxx.db cp 到 /sdcard, 但是我遇到permission denied,即使在app上加了
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
也不好使