summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Sarup Dalwani <sarup@google.com> 2022-01-04 08:43:09 +0000
committer Sarup Dalwani <sarup@google.com> 2022-01-20 11:59:41 +0000
commita47d72c3c2622c544c09fb60f74d6f411106532f (patch)
tree218629f2ad953f378fbb9b7b9e0eda299edf9299 /libs/androidfw/StringPool.cpp
parentb9003c2aff4923c46601f58af37176e9728bc7ed (diff)
Restricting creation of Clone Profile when the device owner is set
As part of Android S, the restriction was enforced by CDD but the user creation flow did not block creation of clone profile. Creating changes that will add user restriction of type UserManager.DISALLOW_ADD_CLONE_PROFILE while setting up device owner. This restriction is checked while user creation flow and throws UserManager.CheckedUserOperationException. When the device owner is removed, the user restriction UserManager.DISALLOW_ADD_CLONE_PROFILE is removed and creation of clone profile is allowed. Bug: 211862605 Test: 1. atest FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest 2. atest FrameworksServicesTests:com.android.server.pm.UserManagerTest 3. Manually tried creation of clone profile before setting device owner, able to create clone profile 4. Manually set device owner and tried to create clone profile, unable to create clone profile 5. Manually removed device owner and tried to create clone profile, able to create clone profile. Change-Id: Id87756601a25323e06036a3193f6a7f8f53fa71d
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions