Why does the SQLite 3 command using the Android ADB shell return "permission denied"?

In particular, I tried to use a command sqlite3with the ADB shell to run some queries in the database of the Android application that I am creating.

I kept getting "sqlite3: permission denied". I am developing the Nexus One that I purchased from Google. Should my phone be embedded or something else?

$ sqlite3 /data/data/com.moodme.android/databases/moodme.db
sqlite3 /data/data/com.moodme.android/databases/moodme.db
sqlite3: permission denied
+5
source share
1 answer

Files are read-protected. You need to root your phone or use an emulator.

+5
source

All Articles