Version 5 (modified by 9 years ago) ( diff ) | ,
---|
EdenMobile Debugging
Table of Contents
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:
- Connect your device via USB
- Copy the database file to the SD card (you have an SD card in the phone, don't you?)
- 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)
- remote-debugging-with-chrome.png (97.7 KB ) - added by 8 years ago.
- browse-em-database.png (130.7 KB ) - added by 8 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.