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

Skip to content
Commit 5ebe8acd authored by Olivier Nshimiye's avatar Olivier Nshimiye
Browse files

Add a DISALLOW_ADD_PRIVATE_PROFILE user restriction

Enforce this restriction while creating a private profile on devices
with device owner set.

Bug: 295865540
Test: atest FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest
Test: atest FrameworksServicesTests:com.android.server.pm.UserManagerTest
Test: Manual - Verify private user creation is allowed before setting
the device admin, not allowed after setting the device admin, and
allowed again after removing the device admin.

Change-Id: Ie63f3eb71898917beb5b893a0b94e024b784e564
parent 0ab2e88c
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