Changes between Initial Version and Version 1 of DeveloperGuidelines/EdenMobile/Debugging


Ignore:
Timestamp:
09/22/16 12:51:03 (6 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/EdenMobile/Debugging

    v1 v1  
     1= EdenMobile Debugging =
     2[[TOC]]
     3
     4== Database on Android Device ==
     5
     6To be able to view the EdenMobile database on an Android device, make sure that:
     7
     8  - the App is build with debug-option
     9  - you have the Android Debug Bridge ''adb'' installed (part of the Android SDK)
     10
     11Then you can copy the database from the device to the SD card, and pull it from there to your development machine.
     12
     13Linux users can use the following script:
     14{{{
     15#!/bin/bash
     16PACKAGE=org.sahanafoundation.eden_mobile
     17FILENAME=emdb.db
     18adb shell run-as $PACKAGE chmod 777 /data/data/$PACKAGE/databases/
     19adb shell run-as $PACKAGE chmod 777 /data/data/$PACKAGE/databases/$FILENAME
     20adb shell cp /data/data/$PACKAGE/databases/$FILENAME /sdcard/
     21adb pull /sdcard/$FILENAME
     22}}}
     23
     24(Windows users analogously, just not /bin/bash then ;))
     25
     26Then use e.g. [[http://sqlitebrowser.org SQLiteBrowser]] to browse the database schema and data.