diff options
author | Alex Johnston <acjohnston@google.com> | 2020-04-30 15:06:19 +0100 |
---|---|---|
committer | Alex Johnston <acjohnston@google.com> | 2020-05-07 13:58:31 +0100 |
commit | 9ace11127c334296ddf502ee0f6b7f908b2e7006 (patch) | |
tree | e8c4a49e8c4baea18c32cc7c6c9ae0991b17b430 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 0cdc03a772e47618258ed51ef15a24f5a1c18d63 (diff) |
Restrict creation of secondary users
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
* Add DISALLOW_ADD_USER as a base restriction
when the device is an organization-owned
managed profile device.
* Handle removal case when the device is no
longer in this mode.
* Remove the ability of other admins to apply
DISALLOW_ADD_USER.
Manual Testing Steps
* Provision an organization-owned managed
profile device.
* Check Settings > System > Multiple users
and verify that a user cannot be added.
* Check WP TestDPC 'Set user restrictions
on parent' and verify 'Disallow add user'
is not present.
Bug: 155281701
Test: Manual testing
atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: I83348fc8b854cef20383803124000540b5b130cb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions