Android 7.0 supports the following do not disturb (DND) configurations.
Third-party automatic rules
Third-party applications can use the DND Access API to control DND rules:
- Applications can export and list custom DND rules, which appear next to built-in Android DND rules in the DND settings.
- Users can access all DND controls for all rules (both automatic and manually-created).
- The platform can implement DND rules from different sources without creating unexpected states.
When DND mode is enabled, the Android settings UI presents user options for configuring:
- DND end condition as next alarm time. Enables user to set the DND end condition to an alarm. Appears only if an alarm is set for a time within a week from now and the day of the week for that alarm is not the same day of the week as today. (Not supported for automatic rules.)
- Alarm can override end time. Enables users to configure the DND end condition as a specific time or next alarm (whichever comes first).
Suppressing visual distractions
The Android settings UI presents user options for suppressing visual distractions such as heads up notifications, fullscreen intents, ambient display, and LED notification lights.
Customizing DND settings
When customizing settings, OEMs must preserve the AOSP behavior of the system APIs and maintain the behavior of DND settings. Specifically, the DND settings page in system settings must include the following:
- Application-provided DND rules. These automated DND rules must include active rules instances and rule listings in the Add Rule menu.
- Pre-loaded application DND rules. OEMs can provide DND rules that appear next to end user manually-created rules.
For details on new DND APIs, refer to