Sqlite browser: where is the db file?

I would like to examine the androids internal database files using sqlite browser. In my opinion, contacts, etc. Stored in sql lite db database on Android. Now I want to read these tables using the sqlite browser. To do this, I need to specify the db file, but where is it located?

The question is, where is the location for the emulator?

Where is it located on a real device?

Can I access it on a real device that is not deployed?

+4
source share
2 answers

All databases are stored in:

/data/data/the.app.package.name/databases/the_name_of_db 

And no, you cannot access this file on a non-root phone. Fortunately, the emulator is rooted.

+7
source

Open the application using the emulator and go to DDMS. Then in FileExplorer go to data / data / application.package.name / databases / name_of_your_database. Then pull it out of the device

0
source

Source: https://habr.com/ru/post/1342645/


All Articles