Merge "Add missing check in getKeyguardDisabledFeature" into sc-v2-dev

This commit is contained in:
Ayush Sharma
2021-12-22 16:44:34 +00:00
committed by Android (Google) Code Review

View File

@@ -8270,6 +8270,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 {