diff options
| author | 2024-06-18 19:46:17 +0100 | |
|---|---|---|
| committer | 2024-06-20 13:59:17 +0100 | |
| commit | 334e4e883bee7b3a422d5d889d7f190081d2caf6 (patch) | |
| tree | bdbac4091e4437de828307848582bdc5cc4bba47 /libs/androidfw/StringPool.cpp | |
| parent | ee6d33f4e29fe196c262a3c7051d34ef8f93a62f (diff) | |
Sanitize system route types to TYPE_UNKNOWN for non-system providers
Non-system route providers should not be able to publish routes of any
system route type (e.g. wired headset, bluetooth, etc). The routing
framework will treat any route from a non-system route provider with a
system route type as TYPE_UNKNOWN and log a warning.
Ideally, we should introduce a compat change on the next API bump to just
rethrow a SecurityException instead of switching the route type.
Bug: 347499404
Test: atest CtsMediaBetterTogetherTestCases and manually via
MediaRouting demo app
Flag: EXEMPT bugfix
Change-Id: I482b315fd3eba48a5b10e877fec3754e051826d4
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions