Limit output of `adb shell dumpsys alarm`

adb, alarmmanager, android

Solution

I want to use the adb shell dumpsys alarm to debug some alarms I'm setting but it is producing a huge amount of data is there any way to limit the output to just a certain app?

No, but command line utilities like `grep` and `fgrep` can show you snippets of the output that refer to some string, such as your package name.

Problem

I want to use the `adb shell dumpsys alarm` to debug some alarms I'm setting but it is producing a huge amount of data is there any way to limit the output to just a certain app? I tried this to no avail: `adb shell dumpsys com.mypackage`

Original source