Confirmed users
360
edits
(→Getting the log files out: update the scripts for flame v2.0 and v2.2) |
|||
Line 67: | Line 67: | ||
== Getting the log files out == | == Getting the log files out == | ||
Here is a script that works for me on a computer with a device attached to grab the file to /tmp/gem-log.json: | Here is a script that works for me on a computer with a Flame v2.0 device attached to grab the file to /tmp/gem-log.json: | ||
#!/bin/bash | #!/bin/bash | ||
Line 73: | Line 73: | ||
set -o pipefail | set -o pipefail | ||
logpath=`adb shell ls /storage/sdcard0/gem-log-*.json | head -1 | tr -d '\n\r'` | |||
logpath=`adb shell ls / | |||
echo I am grabbing: $logpath | echo I am grabbing: $logpath | ||
adb pull ${logpath} /tmp/gem-log.json | adb pull ${logpath} /tmp/gem-log.json | ||
adb shell rm $logpath | adb shell rm $logpath | ||
chmod a+r /tmp/gem-log.json | |||
Here is the same script that works for me on a Flame v2.2 device (the sdcard mount point changed): | |||
#!/bin/bash | |||
set -o errexit | |||
set -o pipefail | |||
logpath=`adb shell ls /sdcard/gem-log-*.json | head -1 | tr -d '\n\r'` | |||
echo I am grabbing: $logpath | |||
adb pull ${logpath} /tmp/gem-log.json | |||
adb shell rm $logpath | |||
chmod a+r /tmp/gem-log.json | |||
Here is a script that works for me when using b2g-desktop on linux: | Here is a script that works for me when using b2g-desktop on linux: |