我正在開發一個應用程序,我使用sqllite3數據庫來存儲值。我有Nexus S和Nexus 7都是無根據的設備。如何獲取用於調試目的的應用程序的數據庫。如何檢查數據庫沒有紮根android設備
我已經嘗試 (1)我已經嘗試了所有的辦法提到here
adb shell
run-as app.package.name \
cp /data/data/package.name/databases/application.sqlite /sdcard/
exit
adb pull /sdcard/application.sqlite ~/
這是說沒有找到CP ..
(2)http://developer.android.com/tools/help/adb.html#sqlite
adb -s emulator-5554 shell
# sqlite3 /data/data/com.example.google.rss.rssexample/databases/rssitems.db
SQLite version 3.3.12
Enter ".help" for instructions
.... enter commands, then quit...
sqlite> .exit
http://stackoverflow.com/a/18472135/1778421 –