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

Skip to content
Commit 024ec168 authored by Weilin Xu's avatar Weilin Xu
Browse files

Add user control for broadcast radio HAL client

For opening tuner and adding announcement listener methods in HAL
clients, an illegal state exception is thrown if the user calling
methods is not the current user or system user. Calls from
non-current on other public methods in HAL clients which can modify
HAL state are rejected silently, to avoid crash radio apps when
the current user is switched.

Meanwhile, public methods in radio modules are changed to non-public
since there is no need to access them outside their package. HAL
2.0 client code is also refactored.

Bug: 240344065
Test: atest com.android.server.broadcastradio.aidl
Change-Id: I62147a5d68b1f6a0314941ab65d0faedb78bfa7d
parent 5c0c1f5f
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