Confirmed users
360
edits
(we no longer have to pretend to be a video file, and the permission is no longer prompted for) |
|||
| Line 55: | Line 55: | ||
== Dumping log files to disk == | == Dumping log files to disk == | ||
We write log files to device storage so you can grab them via adb. | We write log files to device storage so you can grab them via adb using the sdcard permission. We name our files along the lines of | ||
gem-log-TIMESTAMP.json | gem-log-TIMESTAMP.json where "TIMESTAMP" is Date.now(). | ||
* (Bring up the secret debug menu) | * (Bring up the secret debug menu) | ||
* Press the button labeled "Dump log to storage" | * Press the button labeled "Dump log to storage". | ||
* Your file should now be named gem-log-TIMESTAMP.json and be in devicestorage somewhere. There should be a console.log that tells you the path to the file that was logged. | |||
* Your file should now be named gem-log-TIMESTAMP.json | |||
== Getting the log files out == | == Getting the log files out == | ||
| Line 72: | Line 71: | ||
# maybe grep instead of | # maybe grep instead of | ||
logpath=`adb shell ls /mnt/sdcard/gem-log-*. | logpath=`adb shell ls /mnt/sdcard/gem-log-*.json | head -1 | tr -d '\n\r'` | ||
echo I am grabbing: $logpath | echo I am grabbing: $logpath | ||
adb pull ${logpath} /tmp/gem-log.json | adb pull ${logpath} /tmp/gem-log.json | ||
| Line 84: | Line 83: | ||
# maybe grep instead of | # maybe grep instead of | ||
logpath=`ls ~/Videos/gem-log-*. | logpath=`ls ~/Videos/gem-log-*.json | head -1 | tr -d '\n\r'` | ||
echo I am grabbing: $logpath | echo I am grabbing: $logpath | ||
mv ${logpath} /tmp/gem-log.json | mv ${logpath} /tmp/gem-log.json | ||