commit | e9c440638e27a123a82feb5e4677ce1242785288 | [log] [tgz] |
---|---|---|
author | phweiss <phweiss@google.com> | Wed Feb 10 12:57:38 2016 +0100 |
committer | phweiss <phweiss@google.com> | Thu Feb 11 14:43:18 2016 +0100 |
tree | 4fc7e0527e8a41dbcae8263412c9649b987f5582 | |
parent | c61e102474c1fe0e16503856531106f8bff9e36b [diff] |
DPM.createAndManageUser should work even with DISALLOW_ADD_USER set For this, the DPM calls a new function UserManagerInternal.createUserEvenWhenDisallowed() instead of UserManager.createUser(). This calls UserManagerService.createUserInternalUnchecked(). Also, only the system user is allowed to call this method, otherwise a security exception is thrown. Bug: 26952210 Bug: 26786199 Change-Id: I69c16354898d68592d13f5f53b840551f7ad4779