HaTiMuX HaTiMuX - 18 days ago 9
Android Question

Access android application database on device (permission denied)

I can't access my application database on my device.

I tried these commands:

/# adb shell

/# sqlite3 /data/data/ANDROID.SQLite/databases/notes.db

but I always get a permission denied message!

I also tried to copy the database to my sdcard but still I can't have access to it from adb shell.

Any solutions please??

Thank you!

Answer

You can only do that on a rooted android device.

Alternatively, you may do this on the emulator which gives you access to that data for debugging SQLite database entries.