Filter android logcat by package name on command line

Recently, I wrote a shell script for filtering android logcat log by package name, which is a shame that it’s not a default option on logcat.

The script can be downloaded here.

Set first argument as the package name you want to match, for example

net.kevxu.example

also

net.kevxu

will match any application that starts with net.kevxu

The rest of arguments will be passed to adb.

Leave a Reply

Your email address will not be published. Required fields are marked *