Skip to content

Commit 1fe620f

Browse files
author
Alex Johnston
committed
Restrict creation of secondary users TestDPC
Background * Secondary users should be disabled when the device is an organization-owned managed profile device. * This is because supporting secondary users would complicate the semantics of user restrictions. Changes * Remove 'Disallow add user' from list of user restrictions the profile owner of an organization-owned managed profile device can set on the parent profile. Manual Testing Steps * Provision an organization-owned managed profile device. * Check WP TestDPC 'Set user restrictions on parent' and verify 'Disallow add user' is not present. Bug: 155281701 Test: Manual testing Change-Id: I4706cda0aa2b72c786daf08a03502406b3819cf8
1 parent f2bdc59 commit 1fe620f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/src/main/java/com/afwsamples/testdpc/policy/UserRestriction.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ public UserRestriction(String key, int titleResId) {
221221
R.string.disallow_data_roaming),
222222
new UserRestriction(DISALLOW_DEBUGGING_FEATURES,
223223
R.string.disallow_debugging_features),
224-
new UserRestriction(DISALLOW_ADD_USER,
225-
R.string.disallow_add_user),
226224
new UserRestriction(DISALLOW_BLUETOOTH,
227225
R.string.disallow_bluetooth),
228226
new UserRestriction(DISALLOW_BLUETOOTH_SHARING,

0 commit comments

Comments
 (0)