Access the SQLite database (and other storage types) of the emulator

1

I'm developing an app that uses SQLite, SharedPreferences, etc .

On my device with access root I can access all this information with some specific app's for that (which require root access), mainly the bank to see if the table and the records are being created correctly.

Is there any way to access this information from the Android Studio emulator?

    
asked by anonymous 30.01.2018 / 19:48

2 answers

2

Yes. Just access the Android Studio menu: View > Tool Windows > Device File Explorer

    
30.01.2018 / 19:50
0

Open the CMD,
Access \ platform-tools;
Run "adb devices" to receive a list with your connected devices;
Run "adb -shell" to connect to your device; Run "cd / data / data // databases" to access the database folder;
Run "sqlite3 .db" to access the DB.

Note: To exit SQLITE3 type ".exit".

    
31.01.2018 / 14:03