Skip to content

Instantly share code, notes, and snippets.

View fvrodas's full-sized avatar

Fernando V. Rodas R. fvrodas

View GitHub Profile
@fvrodas
fvrodas / logkitten.sh
Last active April 1, 2019 20:10
A script for filtering the Android Logcat output just with the app package name
#!/bin/bash
USAGE="Usage: logkitten -p <your.app.package.name>"
while getopts "p:h:" OPTION; do
case "${OPTION}" in
p)
PID=$(adb shell pidof -s ${OPTARG})
if ! [[ "$PID" =~ ^[0-9]+$ ]]
then
echo "Verify if the app is running on your device."
else