mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
experimental on-device log-saving script
Add script that when copied to device and run from 'adb shell' captures all app and OS logs to file. Next: add code to XWApp.java to copy it from assets/ and run it on launch.
This commit is contained in:
parent
b1f095b56e
commit
e863cc1a4b
1 changed files with 11 additions and 0 deletions
11
xwords4/android/app/src/debug/assets/startlog.sh
Executable file
11
xwords4/android/app/src/debug/assets/startlog.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!exec sh
|
||||||
|
|
||||||
|
set -e -u
|
||||||
|
|
||||||
|
APP=${1:-APP}
|
||||||
|
|
||||||
|
mkdir -p /sdcard/${APP}_logs
|
||||||
|
cd /sdcard/${APP}_logs
|
||||||
|
|
||||||
|
FILENAME="$(date +%d-%m-%Y_%H%M%S).log"
|
||||||
|
logcat -v time >> $FILENAME
|
Loading…
Reference in a new issue