Access the emulator’s Sqlite database (and other storage types)

Asked

Viewed 794 times

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 app’s specific to it (which require root access), mainly the database to see if the table and records are being created correctly.

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

2 answers

2


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

0

Open the CMD;
Go to Platform-tools;
Run "adb Devices" to receive a list with your connected Vices;
Run "adb -s shell" to connect to your device; Run "cd /data///Databases" to access the database folder;
Run "sqlite3 . db" to access DB.

Note: to exit SQLITE3 type ". Exit".

Browser other questions tagged

You are not signed in. Login or sign up in order to post.