Android decides where your audio goes. AudioLock overrules it: rank your Bluetooth devices — a motorcycle headset above a pair of hearing aids — and the top one that's connected stays the output for media, notifications and calls, for as long as it's there.
Waiting
Watching for a guarded device to connect.
Connected
Device is here, but audio is elsewhere — or you've paused the guard.
Locked on
Everything routes to the top-ranked device.
The same three icons appear in a home-screen widget, a Quick Settings tile and an Android Auto screen on the car display. The guard's notification carries Re-assert now for the moment audio ends up somewhere it shouldn't be, and Pause 30 min for when you want the phone speaker on purpose. Tapping the tile does the same.
The moment a guarded device connects, a route guard starts watching every audio profile — classic headsets, ASHA hearing aids, LE Audio — and it stands down only when they're truly gone. Rank your devices and the highest one that's present wins: the helmet outranks the hearing aids on the road, and hands back when you park.
It asks the audio policy where media would play right now. If that isn't your device, it moves the system route back through the same call the Output Switcher makes, then checks again and logs exactly what happened. Hearing aids, LE Audio sets and the phone speaker all yield. Plug in wired headphones and the guard yields instead: nobody plugs in by accident.
When the media route moves, Android moves the call profile with it, so phone and VoIP calls land on the same headset without a second mechanism to go wrong.
A companion-device association means Android itself wakes AudioLock when your device reappears — after a ride, a reboot, or a night in the charging case.
An Android Auto view puts the lock status on the head unit, with the per-device toggles and re-assert and pause buttons right there, so there's no reaching for the phone at 60 mph. Want the phone speaker for a bit? Pause for thirty minutes and the guard watches without acting.
Nothing plays in the background. The guard sleeps between Bluetooth and audio events, and the optional hold-the-link stream for headsets that drop their media link when idle is off unless you switch it on. Options are remembered per device, because a helmet headset and a pair of hearing aids want different things.
Locked on
Shoei Cardo
A2DP · HFPLINKS
DEVICES · PRIORITY ORDER
Shoei Cardo
wins whenever it's connected
Phonak hearing aids
takes over when the helmet's off
OPTIONS
Hold media link open
Compatibility fallback for headsets that drop their media link. Off by default
Saved per device. Calls follow the media route on their own.
Like everything here, AudioLock is built for myself first, which keeps it honest: no account, no ads, no tracking, no store listing. It exists because a motorcycle helmet and a pair of hearing aids both deserve better than Android's routing whims.
end of the route
v1.6.0 · Android 14+ · direct APK · about 2 MB
Sideload it. There's no store and no updater — every build is signed with the same key, so a new version installs straight over the top of the old one.
Download APK