Changes between Version 11 and Version 12 of DeveloperGuidelines/EdenMobile/Debugging


Ignore:
Timestamp:
02/05/20 10:20:53 (2 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/EdenMobile/Debugging

    v11 v12  
    2828  - the device allows USB debugging (Settings=>Developer Options)
    2929
    30 Steps:
     30Access the file live on the device:
     31{{{
     32# Add extension at the end, if necessary, e.g. .ucce
     33adb shell run-as $PACKAGE sqlite3 /data/data/org.sahanafoundation.eden_mobile/databases/emdb.db
     34}}}
     35
     36Steps to copy the file to your PC:
    3137
    3238  1. Connect your device via USB
     
    3743{{{
    3844#!/bin/bash
     45# Add extension at the end, if necessary, e.g. .ucce
    3946PACKAGE=org.sahanafoundation.eden_mobile
    4047FILENAME=emdb.db
    4148adb shell run-as $PACKAGE chmod 777 /data/data/$PACKAGE/databases/
    4249adb shell run-as $PACKAGE chmod 777 /data/data/$PACKAGE/databases/$FILENAME
    43 adb shell cp /data/data/$PACKAGE/databases/$FILENAME /sdcard/
     50adb shell run-as $PACKAGE cp /data/data/$PACKAGE/databases/$FILENAME /sdcard/
    4451adb pull /sdcard/$FILENAME
    4552}}}