Merge "Add missing check in getKeyguardDisabledFeature"

This commit is contained in:
Ayush Sharma
2021-09-15 11:58:04 +00:00
committed by Android (Google) Code Review

View File

@@ -8243,6 +8243,9 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
final CallerIdentity caller = getCallerIdentity();
Preconditions.checkCallAuthorization(hasFullCrossUsersPermission(caller, userHandle));
Preconditions.checkCallAuthorization(
who == null || isCallingFromPackage(who.getPackageName(), caller.getUid())
|| isSystemUid(caller));
final long ident = mInjector.binderClearCallingIdentity();
try {