mardi 10 février 2015

Trying to query SQLite database via ADB

I am debugging an app using Android Studio, with a Galaxy S4 physically connected as my device. I want to query my app's SQLite database, and have tried to follow instructions elsewhere on StackOverflow for doing so, but have not had any success.


I can connect to the device using:



ADB -s deviceid shell


I then go to my /data/data/apppath/databases folder, but when I try "sqlite3 mydbname.db" I get "sqlite3: not found".


I found a link to a sqlite3.exe file on XDA forums, but when I tried pushing it to my /data/data folder and running it from there in ADB I got "/data/data/sqlite3: not found". I guess the .exe file wasn't appropriate for Android in any case.


Any ideas for how I can execute sqlite3 on my Galaxy S4??


Aucun commentaire:

Enregistrer un commentaire