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

Skip to content
Commit 334e4e88 authored by Iván Budnik's avatar Iván Budnik
Browse files

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
parent ee6d33f4
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