diff options
| author | 2022-10-27 21:45:22 +0000 | |
|---|---|---|
| committer | 2022-11-16 01:48:45 +0000 | |
| commit | 024ec1687e81ba8df7d9bb8800fc9d4e0fd67423 (patch) | |
| tree | 1b7eef7fc2fe265c5ea2c49bc7259e299be29ded /libs/androidfw/StringPool.cpp | |
| parent | 5c0c1f5ff3804a4db0d7c55cf1bf83715ad48fdd (diff) | |
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions