Skip to content

Instantly share code, notes, and snippets.

@erchenger erchenger/LogPid.sh
Last active Sep 15, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.