I have an application that listens to receiving notifications. After installation, I should enable notification access to it from Setting -> Security -> Notification Access
I install this app on an emulator and run it using ADB. But I don't know how to enable notification access setting for it using the command line in ADB.I saw this question and guess its general answer is right but I can not find the actual setting name. Thanks for your consideration.
Since Android 9 the accepted answer is not working anymore. What worked for me was to use :
adb shell cmd notification allow_listener com.mypackage.app/com.mypackage.app.mylistener
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With