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
Loading
Please register or sign in to comment