The Ultimate Guide to Android Do Not Disturb Exceptions
Understanding Priority Mode, Interruption Filters, and why "Starring" contacts isn't enough.
Android's notification system is powerful, but its "Do Not Disturb" (DND) logic has become increasingly fragmented across manufacturers (Samsung OneUI vs Pixel UI vs MIUI). This guide breaks down the technical hierarchy of silence and how to manage exceptions effectively.
1. The Three States of DND
Under the hood, Android's NotificationManager handles interruptions in three tiers:
- Total Silence: Blocks everything. Alarms, media, touch sounds. Nothing gets through.
- Alarms Only: The default for most users. Alarms ring; calls do not.
- Priority Mode: This is where the configuration happens. It filters based on the `ZenModeConfig` XML internally.
2. The "Star Contacts" Limitation
The standard advice is to "Star" a contact to allow them through DND. This utilizes the contacts_starred system setting. However, this creates a logic conflict:
"I want my best friend on Speed Dial (Starred), but I don't want them waking me up at 4 AM."
Android links UI Favorite status to DND Bypass status. You cannot separate them natively.
3. The VoIP Gap (WhatsApp, Telegram)
This is the most searched technical issue in 2025. Third-party apps like WhatsApp use CallStyle notifications, but DND often treats them as generic "Messages" rather than "Calls".
Result: You set DND to allow "Calls", but WhatsApp calls are silenced because the System UI sees them as data notifications, not telephony events.
The Solution: An Automation Layer
To fix this, you need an app that sits above the System UI logic. This is where AlertFlow operates.
Instead of relying on Android's native exception list, AlertFlow uses a NotificationListenerService to inspect the incoming packet metadata.
- Incoming Packet: "com.whatsapp" + "Incoming Voice Call"
- Logic Check: Is "Mom" in local DB? -> Yes.
- Action:
audioManager.setStreamVolume(STREAM_RING, max)
This programmatic override is the only way to guarantee exceptions across different OEM skins and VoIP apps.