Notification rules on Android: native controls and text matching

Android controls apps and notification channels. DND Override adds optional rules based on the app and the text a notification actually contains.

Android's built-in rule layers

Before installing another utility, review the source app's own notification settings, Android's notification channels, and Do Not Disturb or Modes filters. A well-designed app may already separate urgent alerts into their own category. Android may also allow chosen apps, people, conversations, alarms or repeat callers.

DND Override rule types

RuleMatches
Selected app onlyEligible newly posted notifications from that package
Keyword onlyVisible notification title/message from any app containing the text
App + keywordBoth package and text condition
Multiple keywordsAny listed keyword, or all of them
RegexOne case-sensitive pattern in title/message text

Rules can be enabled or disabled without deleting them. Each rule can use the default notification sound, an available system notification sound, or a custom audio file selected through Android's document picker.

What happens after a match

The notification-listener service ignores DND Override's own package and Android group-summary notifications. It extracts the current visible text, finds the first enabled matching rule and checks that DND is active and alarm volume is not muted. It then queues the selected sound using alarm audio attributes. Identical repeated posts for the same notification key and content are deduplicated; a genuinely updated notification can alert again.

What does not happen

Continue with a specific scenario: server monitoring, security cameras, or smart-home notifications.