AutoDND
AutoDND is an Android app that automatically turns on Do Not Distrub mode when a selected app is opened.
Features
- Per-app DND control — select any installed app to trigger DND when opened
- Three DND modes — Total Silence, Priority Only, or Alarms Only
- Persistent monitoring — foreground service survives screen off and app switching
- Boot resilience — automatically restarts after device reboot or app update
- DND flicker prevention — switching between two monitored apps keeps DND active
- Battery efficient — 1-second polling using
UsageStatsManagerevents (no Accessibility Service) - Material 3 UI — clean, native Android look following Google design guidelines
- Zero tracking — no analytics, no telemetry, no internet permission
Build Instructions
- Clone the repository:
git clone https://github.com/rekaapps/autodnd.git
- Open in Android Studio Hedgehog (or newer).
- Sync Gradle and run on a device or emulator running Android 10 (API 29)+.
Note:
UsageStatsManagerrequires a real device or an emulator with usage stats populated. Grant Usage Access and DND Access in the app's Settings screen before starting the service.
Source code
The source code is freely available on GitHub