How to access the database when developing on Android phone?

adb, android, sqlite

Solution

To answer the first part of your question, check out this answer. Basically, your phone needs to have root access, and you need to run adb in root mode (using "adb root").

As for the second part, I use SQLite Database Browser to view my SQLite dbs (though that's only when the db is on my computer; don't know of any on-device browsers). I don't know of any way to get a human view of content resolvers.

Problem

I am having trouble accessing the database while I am developing on the phone. Whenever I execute `cd /data/data/com.mycompck/databases` and then run `ls` I get: `"opendir failed, Permission denied"` Or whenever I type in `sqlite3` I get: `"sqlite3: permission denied"` What am I doing wrong? Are there some applications that can help me getting a human view of content resolvers values and/or SQLite databases?

Original source

Related problems