wiki:DeveloperGuidelines/EdenMobile/Debugging

Version 3 (modified by Dominic König, 6 years ago) ( diff )

--

EdenMobile Debugging

Database on Android Device

To be able to view the EdenMobile database on an Android device, make sure that:

  • the App is build with debug-option
  • you have the Android Debug Bridge adb installed on your computer (part of the Android SDK)
  • the device allows USB debugging (Settings=>Developer Options)

Steps:

1) Connect your device via USB 2) Copy the database file to the SD card 3) Pull the database file to your development machine

Linux users can use the following script:

#!/bin/bash
PACKAGE=org.sahanafoundation.eden_mobile
FILENAME=emdb.db
adb shell run-as $PACKAGE chmod 777 /data/data/$PACKAGE/databases/
adb shell run-as $PACKAGE chmod 777 /data/data/$PACKAGE/databases/$FILENAME
adb shell cp /data/data/$PACKAGE/databases/$FILENAME /sdcard/
adb pull /sdcard/$FILENAME

(Windows users analogously, just not /bin/bash then ;))

Then use e.g. SQLiteBrowser to browse the database schema and data.

Attachments (2)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.