home-assistant / home-assistant/android

Investigate DND changes

Open
#5,334 5 comments 0 reactions 0 assignees View on GitHub
enhancement sensor-tracking
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

Starting with API 35 Google is changing what we can do with DND.

> Apps that target Android 15 (API level 35) and higher can no longer change the global state or policy of Do Not Disturb (DND) on a device (either by modifying user settings, or turning off DND mode). Instead, apps must contribute an [AutomaticZenRule](https://developer.android.com/reference/android/app/AutomaticZenRule), which the system combines into a global policy with the existing most-restrictive-policy-wins scheme. Calls to existing APIs that previously affected global state ([setInterruptionFilter](https://developer.android.com/reference/android/app/NotificationManager#setInterruptionFilter(int)), [setNotificationPolicy](https://developer.android.com/reference/android/app/NotificationManager#setNotificationPolicy(android.app.NotificationManager.Policy))) result in the creation or update of an implicit AutomaticZenRule, which is toggled on and off depending on the call-cycle of those API calls.

We need to verify that it doesn't break our current features if it does we need to adjust or disable the feature if there are no workaround.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.