Alex Johnston
9ace11127c
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
2020-05-07 13:58:31 +01:00
..
2020-03-23 15:15:17 -07:00
2020-01-13 12:39:59 +00:00
2020-02-24 17:13:20 +08:00
2020-04-22 00:49:05 -07:00
2020-04-29 14:54:44 -06:00
2020-05-01 18:25:32 +00:00
2020-01-14 17:03:06 -08:00
2020-01-13 12:39:59 +00:00
2020-01-13 12:39:59 +00:00
2020-02-14 13:43:53 -08:00
2020-03-28 12:39:29 +00:00
2020-01-13 12:39:59 +00:00
2019-08-29 17:15:44 -07:00
2020-01-13 12:39:59 +00:00
2020-03-05 10:34:24 -08:00
2020-04-23 21:05:46 +00:00
2020-04-01 16:37:51 +02:00
2020-01-13 12:39:59 +00:00
2020-04-23 18:14:57 +08:00
2020-05-03 09:58:54 -07:00
2020-01-13 12:39:59 +00:00
2020-01-13 12:39:59 +00:00
2020-03-20 15:13:37 -07:00
2020-02-19 16:25:25 -08:00
2020-01-13 12:39:59 +00:00
2020-01-13 12:39:59 +00:00
2020-04-29 18:53:13 +00:00
2020-01-30 11:30:04 -08:00
2020-01-15 16:15:41 -08:00
2020-02-19 14:45:12 -08:00
2020-01-29 21:29:56 -08:00
2020-04-23 11:20:43 -07:00
2020-01-17 11:27:41 -08:00
2020-02-28 13:01:24 -08:00
2020-01-13 12:39:59 +00:00
2019-11-21 15:19:47 -08:00
2020-01-27 13:19:46 +00:00
2020-01-13 12:39:59 +00:00
2020-02-04 22:58:57 +00:00
2020-01-08 14:16:54 -08:00
2020-01-14 16:45:33 -08:00
2020-01-14 16:45:33 -08:00
2020-03-30 17:13:39 -07:00
2019-08-29 17:15:44 -07:00
2019-11-19 15:05:35 +00:00
2020-03-25 11:00:27 -07:00
2020-01-07 08:18:02 -08:00
2020-01-07 15:17:40 -08:00
2020-02-19 16:25:25 -08:00
2020-01-27 20:14:59 +00:00
2019-10-17 15:23:23 -07:00
2020-03-26 21:39:17 +00:00
2020-02-11 00:02:37 +00:00
2020-03-20 12:06:53 -07:00
2020-04-29 14:54:44 -06:00
2020-03-13 14:51:29 +08:00
2020-01-13 12:39:59 +00:00
2020-01-13 12:39:59 +00:00
2020-04-23 11:20:43 -07:00
2020-02-11 00:02:37 +00:00
2019-10-04 17:58:36 -07:00
2020-04-29 14:54:44 -06:00
2020-01-13 12:39:59 +00:00
2020-03-06 14:42:00 -07:00
2020-01-13 12:39:59 +00:00
2019-12-05 11:28:11 -08:00
2020-01-13 12:39:59 +00:00
2020-01-09 00:33:44 +00:00
2020-04-09 14:07:22 +01:00
2020-04-06 19:28:55 +01:00
2020-04-02 13:10:33 +00:00
2020-03-26 12:23:11 -07:00
2020-01-13 12:39:59 +00:00
2020-04-29 15:19:52 -07:00
2020-01-13 12:39:59 +00:00
2020-01-13 12:39:59 +00:00
2020-01-13 12:39:59 +00:00
2019-11-30 10:06:23 +00:00
2020-01-20 19:17:39 -08:00
2020-01-13 12:39:59 +00:00
2020-04-24 16:12:27 +02:00
2020-04-24 16:12:27 +02:00
2019-08-29 17:15:44 -07:00
2020-02-07 12:27:07 -05:00
2020-01-13 12:39:59 +00:00
2020-01-13 12:39:59 +00:00
2020-02-11 16:26:18 -08:00
2020-05-01 18:25:32 +00:00
2020-01-13 12:39:59 +00:00
2020-01-07 15:17:40 -08:00
2020-01-13 12:39:59 +00:00
2020-01-13 12:39:59 +00:00
2020-03-26 21:39:17 +00:00
2020-03-20 17:34:49 -07:00
2020-02-19 16:25:25 -08:00
2020-02-04 21:21:34 +00:00
2020-02-12 17:35:15 +00:00
2019-09-26 16:45:43 -07:00
2020-01-13 12:39:59 +00:00
2020-04-28 14:41:50 -07:00
2020-01-03 13:08:46 -08:00
2020-01-13 12:39:59 +00:00
2020-01-13 12:39:59 +00:00
2020-05-07 13:58:31 +01:00
2020-03-13 00:52:22 +00:00
2020-01-06 16:16:27 +00:00
2020-01-29 13:00:41 -08:00
2020-01-27 18:53:55 +00:00
2020-05-01 18:25:32 +00:00
2020-03-26 21:39:17 +00:00
2019-12-18 16:30:07 -08:00
2020-01-29 15:32:27 -08:00
2020-04-02 13:10:33 +00:00