[automerger] Limit IsSeparateProfileChallengeAllowed to system callers am: 9061fcc46b
Change-Id: Ia35b381b55199cc0c3b516ccc5091993a2c3d488
This commit is contained in:
@@ -3014,6 +3014,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
||||
|
||||
@Override
|
||||
public boolean isSeparateProfileChallengeAllowed(int userHandle) {
|
||||
if (!isCallerWithSystemUid()) {
|
||||
throw new SecurityException("Caller must be system");
|
||||
}
|
||||
ComponentName profileOwner = getProfileOwner(userHandle);
|
||||
// Profile challenge is supported on N or newer release.
|
||||
return profileOwner != null &&
|
||||
|
||||
Reference in New Issue
Block a user