diff options
| author | 2024-03-12 19:27:26 +0000 | |
|---|---|---|
| committer | 2024-03-15 18:35:45 +0000 | |
| commit | 0ab3623ebe2a3a2605044595bf2f13346bd8abdf (patch) | |
| tree | 836277d22418573d603f7ea2712af116e858db3d /libs/androidfw/StringPool.cpp | |
| parent | ac919c27422d5b89f4b0508abba7800cc0051831 (diff) | |
Handle MEDIA_ROUTING_CONTROL runtime revocation
When the app op permission is revoked, MR2SI must unregister the
relevant manager records and invalidate the matching proxy router
instances.
We need to add a new listener so that apps get notified of a proxy
router invalidation and know when to stop using it. The alternative
approach of listening directly to app-op permission changes from
AppOpsManager would create a race condition between the permission
change and the invalidation + cleanup of the instance, leading to
undefined behaviour.
getInstance(Context, String) was promoted from system to public API for
Android V ag/25997373, but the promotion becomes unnecessary with the new
getInstance() overload. Reverting getInstance(Context, String) back to
SystemAPI.
Bug: 326387864
Test: atest CtsMediaBetterTogetherTestCases
Change-Id: I417eb09cd08a3b61388c69f1a33a4116b399d61d
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions