Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a276f7ed authored by George Lu's avatar George Lu
Browse files

Fix for b/126739800: Enforce aggressive open policy on TunerSessions.

BroadcastRadioService currently enforces a 1 ITuner (AIDL) to 1 ITunerSession
(HAL) relationship, so because ITunerSession.openSession() mandates an
"aggressive open" policy, a similar policy must be enforced on ITuners. Failure
to apply this policy resulted in RadioAppService holding onto an invalid
ITuner, which caused the radio app to crash when it tried to use it.

When an ITuner is closed due to the "aggressive open" policy, that
client is notified through a callback to
RadioTuner.Callback.onError(ERROR_HARDWARE_FAILURE).

Fixes: 126739800
Test: Manually verified radio app usable after switching users
Change-Id: I8769f7c41c8f92f024666341ff02e1fe9f137acc
parent d9ee5557
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment