Skip to content

Instantly share code, notes, and snippets.

@erchenger
Last active September 15, 2015 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erchenger/cc719e72f52e49b5df63 to your computer and use it in GitHub Desktop.
Save erchenger/cc719e72f52e49b5df63 to your computer and use it in GitHub Desktop.
Start Logcat for a specific PID
function package {
local PCKG=$1
local PID="$(adb shell ps | grep $PCKG | cut -c10-15)"
echo "<<<<<>>>>> PID for $PCKG: $PID <<<<<>>>>>"
adb logcat | grep $PID
}
package $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment