To access your database via the terminal, make sure that your emulator is running before doing the following:
-
Get a list of your emulators by typing: ~/Library/Android/Sdk/platform-tools/adb devices
-
Connect to the emulator you're running your app on: ~/Library/Android/Sdk/platform-tools/adb -s emulator-**** shell
(replace the **** with the correct number for your device, which you will have seen after running the previous command) You are now navigating the file structure of your emulator.