Changes between Version 11 and Version 12 of DeveloperGuidelines/EdenMobile/Debugging
- Timestamp:
- 02/05/20 10:20:53 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/EdenMobile/Debugging
v11 v12 28 28 - the device allows USB debugging (Settings=>Developer Options) 29 29 30 Steps: 30 Access the file live on the device: 31 {{{ 32 # Add extension at the end, if necessary, e.g. .ucce 33 adb shell run-as $PACKAGE sqlite3 /data/data/org.sahanafoundation.eden_mobile/databases/emdb.db 34 }}} 35 36 Steps to copy the file to your PC: 31 37 32 38 1. Connect your device via USB … … 37 43 {{{ 38 44 #!/bin/bash 45 # Add extension at the end, if necessary, e.g. .ucce 39 46 PACKAGE=org.sahanafoundation.eden_mobile 40 47 FILENAME=emdb.db 41 48 adb shell run-as $PACKAGE chmod 777 /data/data/$PACKAGE/databases/ 42 49 adb shell run-as $PACKAGE chmod 777 /data/data/$PACKAGE/databases/$FILENAME 43 adb shell cp /data/data/$PACKAGE/databases/$FILENAME /sdcard/50 adb shell run-as $PACKAGE cp /data/data/$PACKAGE/databases/$FILENAME /sdcard/ 44 51 adb pull /sdcard/$FILENAME 45 52 }}}