wiki:DeveloperGuidelines/EdenMobile/Debugging

Version 2 (modified by Dominic König, 9 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 (part of the Android SDK)

Then you can copy the database from the device to the SD card, and pull it from there 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.