ObliviOS Developer portal Project site

Home / Decisions / ADR-154

At the end of an AirPods session the app puts the audio route back only if the link is still up after one second.

Accepted, recorded 11 October 2026.

Decision
ADR-154
Date
2026-10-11
Status
AcceptedAccepted
Part
AirPods
Mentions
ADR-125

1Decision

At the end of an AirPods session the app puts the audio route back only if the link is still up after one second (EarDetectionPolicy.Action.ROUTE_BACK_IF_LINKED, EarDetectionController). Supersedes the immediate route restore at session end of ADR-125. Every other restore (a pod in an ear, the switch off, Play sound) is unchanged.

2Why and evidence

Owner report 2026-10-11 (chat): with the pods in the case the music pauses, and when Bluetooth then disconnects it pauses again; the owner confirmed after the fix: "airpods s prima".

Measured on lynx (AIR-200): before the fix the AAP stream ended 4 ms after the ACL timeout, the app logged actions [ROUTE_BACK], the Bluetooth stack made the pods the active A2DP device while A2DP was already disconnecting, ACTION_AUDIO_BECOMING_NOISY was broadcast and the player paused 0.9 s after the stream ended.

After the fix the same sequence (pause, route to the phone, play on the phone speaker, disconnect) logged ROUTE_BACK_IF_LINKED, no active-device change and no noisy broadcast, and the music kept playing. Verified in source (patch 0007 of airpods/patches/packages-modules-bluetooth): the stack forgets the route when A2DP or hands-free disconnects.

3Consequences

An app-only session restart with the link up restores the route after one second instead of at once. A refused isConnected call counts as linked, because a route that is not restored leaves worn pods silent. The wait of one second is long against the 37 and 39 ms measured between the end of the stream and the A2DP disconnect (two captures, not a bound).

4Review when

The route stays away with the pods worn; the audio profiles disconnect later than the wait.

Read from docs/governance/decision-log.md, entry ADR-154.