Turn off notification category of an App using ADB Shell

Viewed 1124

I'm writing a shell script that turns off a notification category from specific applications. some built-in apps doesn't allow to turn off some of their notification without root access. for example com.google.android.dialer doesn't allow to turn off Google Play service availability. I hope this can do via adb shell.

first, I tried this command:

$ adb shell dumpsys notification | egrep Phone
  mDefaultPhoneApp=ComponentInfo{com.google.android.dialer/com.android.incallui.InCallServiceImpl}

and if I filter phone:

$ adb shell dumpsys notification | egrep phone
  NotificationChannel{mId='phone_ongoing_call', ...}
  NotificationChannel{mId='phone_incoming_call', ...}
  NotificationChannel{mId='phone_low_priority', ...}
  NotificationChannel{mId='phone_voicemail_account', ...}
  NotificationChannel{mId='phone_missed_call', ...}
  NotificationChannel{mId='phone_default', ...}

So is there any command for disable/enable specific notification for a application via adb shell?

0 Answers
Related