Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 583
MishaP Avatar asked Aug 12 '13 19:08

MishaP


People also ask

How do you clear the screen on adb shell?

when on the terminal screen try ctrl+l to clear the whole screen -or- type 'adb shell clear' to 'push' all the text up and the first showing line will be c:\etc... Save this answer.

What are adb shell commands?

Android Shell Commands. ADB is Android Debug Bridge which is a command line utility included with Google's Android SDK. It provides a terminal interface to control your Android device connected to a computer using a USB. ADB can be used to run shell commands, transfer files, install/uninstall apps, reboot and more.


1 Answers

Try:

adb shell service call notification 1
like image 74
Alex P. Avatar answered Sep 20 '22 04:09

Alex P.