Merge "Add missing check in getKeyguardDisabledFeature" into sc-v2-dev am: 2103430b56
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15950623 Change-Id: Icca4fdb910b9f5a25b5f3360c93e2c1ad52ebd6f
This commit is contained in:
@@ -8270,6 +8270,9 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
|
|||||||
|
|
||||||
final CallerIdentity caller = getCallerIdentity();
|
final CallerIdentity caller = getCallerIdentity();
|
||||||
Preconditions.checkCallAuthorization(hasFullCrossUsersPermission(caller, userHandle));
|
Preconditions.checkCallAuthorization(hasFullCrossUsersPermission(caller, userHandle));
|
||||||
|
Preconditions.checkCallAuthorization(
|
||||||
|
who == null || isCallingFromPackage(who.getPackageName(), caller.getUid())
|
||||||
|
|| isSystemUid(caller));
|
||||||
|
|
||||||
final long ident = mInjector.binderClearCallingIdentity();
|
final long ident = mInjector.binderClearCallingIdentity();
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user