Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
490 views
in Technique[技术] by (71.8m points)

sqlite - 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!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...