Dev Tools · 2h ago
Android dev builds sound manager that survives Doze mode
A developer created Muffle, an Android app that automates silencing the phone based on context like time or location. It uses a Foreground Service and AlarmManager with setExactAndAllowWhileIdle to bypass Doze mode. The app requires NotificationPolicyAccess permission to change ringer mode and uses Geofencing API for location triggers.
Meridian48 take
The piece highlights a common pain point but the solution is niche; the real takeaway is the technical workaround for Android's battery optimizations.
Read the full reporting
Architecting a background-controlled sound manager that actually survives Doze mode →
DEV Community
android-developmentbackground-services