Merge "Do not set profile owner on guest users on headless system user." into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
356b103c6f
@@ -10685,7 +10685,10 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
|
||||
}
|
||||
}
|
||||
|
||||
if (!mOwners.hasDeviceOwner() || !user.isFull() || user.isManagedProfile()) return;
|
||||
if (!mOwners.hasDeviceOwner() || !user.isFull() || user.isManagedProfile()
|
||||
|| user.isGuest()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mInjector.userManagerIsHeadlessSystemUserMode()) {
|
||||
ComponentName admin = mOwners.getDeviceOwnerComponent();
|
||||
|
||||
Reference in New Issue
Block a user