Categories
adb android android-notifications shell

How do I clear notifications using ADB shell

I know I can unlock the screen, pull down the notifications, and press the clear notifications button, but there’s got to be a way to clear the notifications through ADB, right? I’m guessing it’s some Intent sent through the ‘am’ command, or maybe something even simpler, but I can’t seem to find anything on the net. All I’m getting is Java code for use with an apk.

Edit: I should probably mention that I’m running on 4.3, sometimes commands may vary between versions.