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

Skip to content
Commit 7317ad55 authored by youngmin0822.lee's avatar youngmin0822.lee Committed by bkchoi
Browse files

Validate the user is allowed to set UiMode

UiMode is basically managed for the current user, and there were code
locations in UiModeManagerService that make assumptions of the
requesting user being the current user.
If non-current user attempts to set UiMode, the current user's UiMode
may be changed.
For example, in 'multi-user on multiple displays' mode in Automotive,
the passenger access may be mistaken as the driver access, and it leads
to interferes with the driver experience.
To fix this, verify the calling user to ensure that only valid user can
set the mode.

Bug: 319554832
Test: atest CtsAppTestCases:UiModeManagerTest
(cherry picked from
https://partner-android-review.git.corp.google.com/q/commit:41f6fb5cc5aac722c342b4d71b73415f78fc3f71)

Change-Id: I9c9defd7966f453962f4190d2778777ec27bf110
parent a5777368
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