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

Commit 0750ae92 authored by Iván Budnik's avatar Iván Budnik Committed by Android Build Coastguard Worker
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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:334e4e883bee7b3a422d5d889d7f190081d2caf6)
Merged-In: I482b315fd3eba48a5b10e877fec3754e051826d4
Change-Id: I482b315fd3eba48a5b10e877fec3754e051826d4
parent 56fce494
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment