Last active
April 13, 2018 07:43
-
-
Save NielsMasdorp/b3b0450fe9914142f6339970dbd01165 to your computer and use it in GitHub Desktop.
How to connect to SQlite database on Android emulator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb devices | |
sudo adb -s emulator-xxx shell | |
run-as {package-name} | |
cd databases/ | |
ls | |
sqlite3 {database name} | |
.databses -> view databases | |
.tables -> view tables | |
.schema -> view schema of table | |
.quit -> quit sqlite | |
Example query: | |
Select * from purchases where customer = 'Niels Masdorp'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment