Created
August 5, 2014 18:47
-
-
Save flocsy/44ec95de934048975738 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PACKAGE=$1 | |
APPPID=`adb -d shell ps | grep "${PACKAGE}" | cut -c10-15 | sed -e 's/ //g'` | |
adb -d logcat -v long \ | |
| tr -d '\r' | sed -e '/^\[.*\]/ {N; s/\n/ /}' | grep -v '^$' \ | |
| grep " ${APPPID}:" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use it to list the logcat of an app/package from your android device:
applog.sh <com.example.package.name>