diff options
| author | ArenaL5 <arenal5@gmx.com> | 2019-12-02 00:04:12 +0000 |
|---|---|---|
| committer | ArenaL5 <arenal5@gmx.com> | 2019-12-02 00:04:12 +0000 |
| commit | 0c8c0d4c7908624f02b0ae9641d6d80240beccea (patch) | |
| tree | 7fa3f4f87d541ab4ea0d0c8714e9395f238c51c2 /scripts/adb.sh | |
| parent | 60e6e42f73d16be59eafdb9766c5dc5bec6e773a (diff) | |
| download | AnySoftKeyboard-0c8c0d4c7908624f02b0ae9641d6d80240beccea.tar.gz AnySoftKeyboard-0c8c0d4c7908624f02b0ae9641d6d80240beccea.tar.bz2 | |
Improve adb.sh
The help blurb was rewritten, and lines for fatal crashes are included now.
Diffstat (limited to 'scripts/adb.sh')
| -rwxr-xr-x | scripts/adb.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/adb.sh b/scripts/adb.sh index 76922f8dd..16b10c60c 100755 --- a/scripts/adb.sh +++ b/scripts/adb.sh @@ -3,9 +3,10 @@ if (( $# != 1 )); then echo "Syntax: adb.sh [E|W|I|D|V] - adb.sh discards logcat lines not related with this project. - By default, it outputs messages with priority debug and higher; - use an initial to choose another level (Error/Warning/Info/Debug/Verbose)" + adb.sh outputs a logcat and filters out lines not related with this project. + \`dalvikvm\`, \`System.err\` and \`AndroidRuntime\` are included, as those are used to debug fatal crashes. + + The only argument is the initial of your log priority. (Error/Warning/Info/Debug/Verbose)" else # These variables are just to higlight text: color="\033[0;36m" @@ -29,7 +30,8 @@ else # We can go back to our original folder now: cd "$oldpath" tags="$(echo $tags | sed -E 's![a-z/A-Z12]*\.java: (protected |private )?(static )?(final )?String [A-Z_]* = "([^\"]*)";!\4!g')" - comm="adb logcat $(echo "$tags " | sed "s/ /:$1 /g")*:S" + tags="$tags dalvikvm System.err AndroidRuntime " + comm="adb logcat $(echo "$tags" | sed "s/ /:$1 /g")*:S" echo -e "${color}Running: $nocolor$comm" # Run command: echo -e "${color}Logcat:$nocolor" |
