After selecting a radio preset, what counts as tuned?
A late report for preset A cannot confirm a newer selection of B. The Android 14 radio contract separates request acceptance, reported program state and audible output.
Yahagu Research · Published 2026-11-20 · Sources checked 2026-11-20 · 4 min read
AOSP android-14.0.0_r1 AIDL broadcast radio and its framework forwarding code.
A second selection arrives
Choose preset A, then choose B before the screen settles. A station name arrives through a callback. Should the radio screen remove B's progress indicator?
The AOSP Android 14 AIDL broadcast-radio contract permits a sequence in which A has finished tuning but its callback has not finished when cancellation arrives. Cancelling at that point may leave the callback in place. A screen that treats the next program update as confirmation of the latest selection can therefore report the wrong result. [1]
This is a contract analysis of android-14.0.0_r1, including its framework forwarding code. The sequence below is an allowed ordering, not a recording from a vehicle or a measured defect in an OEM radio.
A request can finish before its notification
At the HAL boundary, tune checks the arguments and tuner state, schedules asynchronous work, and returns. A successful return establishes acceptance at that boundary. Tuning can still fail later. The callback interface provides onTuneFailed for that later failure, including timeout and cancellation. [1][2]
Now consider this ordering:
First, the HAL accepts A and completes tuning. While A's notification is still outstanding, the user selects B. B starts, but cancelling pending work cannot undo A's completed operation. The framework then delivers A's program information.
At step four, the application has information about A. It still needs evidence about B. Updating the reported current station to A and keeping B visibly pending expresses that distinction. Clearing B's indicator merely because a callback arrived loses it.
There is another reason to avoid counting callbacks as completed requests: onCurrentProgramInfoChanged also carries metadata changes. Its arrival does not necessarily correspond to a new tuning operation. [2]
What the framework forwards
The fixed-version RadioModule handler converts incoming program information, stores it as the current information, and forwards it to compatible tuner sessions through a queued task. That handler does not compare the program with an application's latest selected preset. An application cannot infer that comparison from receipt of the forwarded event. This observation concerns this handler, not a claim that every layer lacks state management. [4]
The TunerSession.tune entry point adds an earlier boundary. It checks whether the caller is the current or system user before converting the selector and calling the HAL service. For a caller outside that condition, it returns without making the tuning call. Consequently, a normal return at this framework entry point cannot be described as proof of HAL acceptance. [5]
Separate the claims on screen
Program information distinguishes logical program identity from the physical tuning identifier. Comparing only a displayed frequency can discard that distinction. Signal quality, metadata and flags also describe different attributes. None of those fields alone proves the audio output path. [3]
For a preset screen, keep the latest target, the last reported program, and progress as separate state. Show the requested preset promptly, but label it as pending until the available evidence supports a stronger status. On failure, distinguish an immediate rejection from a later timeout or cancellation. A generic weak-signal message would misdescribe several of those outcomes.
| Evidence | Supports | Does not establish |
|---|---|---|
| User selects B | Latest requested target | Reported current program |
| HAL accepts B | Work accepted | Completion or audibility |
| Update reports A | Service reported A | B succeeded |
| Update matches B | Reported identity matches | Valid station without flag check |
| FLAG_TUNABLE present | Tunable condition | Sound at a speaker |
The correlation limit
A local request counter can help an application manage its own actions. These HAL callbacks do not supply a matching request-generation field. The failed selector identifies the input for tune, while seek and step failures use an empty selector. Repeated requests for the same station can remain ambiguous even when program identity matches. [2]
The practical conclusion is to keep reported tuner state separate from confirmation of the user's latest action. Exact request completion needs a correlation policy supported by the implementation; this interface alone does not establish one. Testing should include A followed by B, repeated selection of A, metadata-only updates, and cancellation after tuning completes. Those are proposed checks, not tests performed for this analysis.
Sources & scope
No vehicle or emulator test. The sequence is permitted by the contract, not a measured OEM defect. Repeated requests for the same program remain ambiguous without further correlation.
- AOSP: IBroadcastRadio.aidlEnglish original · android-14.0.0_r1; checked November 18–20, 2026.
- AOSP: ITunerCallback.aidlEnglish original · android-14.0.0_r1; checked November 18–20, 2026.
- AOSP: ProgramInfo.aidlEnglish original · android-14.0.0_r1; checked November 18–20, 2026.
- AOSP: RadioModule.javaEnglish original · android-14.0.0_r1; checked November 18–20, 2026.
- AOSP: TunerSession.javaEnglish original · android-14.0.0_r1; checked November 18–20, 2026.
What would you add?
Share a different implementation, flag a correction, or tell us where this analysis helps with your work. A public source link is welcome.
Your message and email are stored privately for handling this request. Do not include confidential product information.






