Last active
September 15, 2015 16:44
-
-
Save erchenger/cc719e72f52e49b5df63 to your computer and use it in GitHub Desktop.
Start Logcat for a specific PID
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
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