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

寵の児 提交于 2019-12-22 06:57:24

问题


Specifically, I was trying to use the sqlite3 command with the ADB shell to run some queries on the database of the Android application I'm building.

I kept getting "sqlite3: permission denied". I'm developing on a Nexus One that I purchased from Google. Does my phone need to be rooted or something?

$ sqlite3 /data/data/com.moodme.android/databases/moodme.db
sqlite3 /data/data/com.moodme.android/databases/moodme.db
sqlite3: permission denied

回答1:


The files are read protected. You need to root your phone or use the emulator.



来源:https://stackoverflow.com/questions/3645122/why-does-the-sqlite-3-command-using-the-android-adb-shell-return-permission-den

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!