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

Commit 52820d8c authored by Felipe Leme's avatar Felipe Leme
Browse files

Changed setMainUser() so it checks for create_initial_user flag.

Ideally it should only check for demote_main_user, but then an admin
user couldn't be promoted when rolling back that flag.

Test:  atest FrameworksMockingServicesTests --test-filter=".*UserManagerServiceMockedTest.*testSetMainUser.*"
Fixes: 441582871
Flag: android.multiuser.create_initial_user

Change-Id: If719068a1f5ab3acd1eb130abbe20d716502f870
parent 109ce60c
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