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

Skip to content
Commit adc3add3 authored by Nikhil Kumar's avatar Nikhil Kumar
Browse files

Implement DISALLOW_GRANT_ADMIN restriction in UserManager APIs

Implement access restriction based on "DISALLOW_GRANT_ADMIN" restriction for preventing the use of setUserAdmin and revokeUserAdmin functions.
This change is particularly important for child unicorn users who have this restriction in place. It guarantees that they are never elevated to admin privileges or grant admin access to others.

Also implemented the same restriction in the createUser flow to restrict the child users having DISALLOW_GRANT_ADMIN restrictions in place to create new ADMIN users.

Bug: 357636075
Test: UserMangerTest -c
Flag: android.multiuser.unicorn_mode_refactoring_for_hsum_read_only

Change-Id: I69bd4bf34c8c3a21947637d3246c5b9e280d5833
parent cc25ceda
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