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

Skip to content
Commit c7712cbb authored by Felipe Leme's avatar Felipe Leme
Browse files

Improvements on UserManagerService.

- Uses ActivityManagerInternal to get current user id.
- Removed permission checks from
  isCurrentUserOrRunningProfileOfCurrentUser().
- Added unit tests for these 2 methods.

Test: atest FrameworksMockingServicesTests:com.android.server.pm.UserManagerServiceTest
Test: atest CtsMultiUserTestCases:android.multiuser.cts.UserManagerTest

Bug: 244452695
Fixes: 244765233

Change-Id: Icc13b315f138235152cc2aca988dfe38ca914c67
parent 6b86e2cb
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