Loading services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +15 −10 Original line number Diff line number Diff line Loading @@ -13804,8 +13804,6 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { admin, new BooleanPolicyValue(hidden), userId); Boolean resolvedPolicy = mDevicePolicyEngine.getResolvedPolicy( PolicyDefinition.APPLICATION_HIDDEN(packageName), userId); result = mInjector.binderWithCleanCallingIdentity(() -> { try { // This is a best effort to continue returning the same value that was Loading Loading @@ -18973,7 +18971,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { admin, MANAGE_DEVICE_POLICY_RESET_PASSWORD, caller.getPackageName(), UserHandle.USER_ALL); userId); Long currentTokenHandle = mDevicePolicyEngine.getLocalPolicySetByAdmin( PolicyDefinition.RESET_PASSWORD_TOKEN, enforcingAdmin, Loading Loading @@ -19037,7 +19035,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { admin, MANAGE_DEVICE_POLICY_RESET_PASSWORD, caller.getPackageName(), UserHandle.USER_ALL); userId); Long currentTokenHandle = mDevicePolicyEngine.getLocalPolicySetByAdmin( PolicyDefinition.RESET_PASSWORD_TOKEN, enforcingAdmin, Loading Loading @@ -19083,7 +19081,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { admin, MANAGE_DEVICE_POLICY_RESET_PASSWORD, caller.getPackageName(), UserHandle.USER_ALL); userId); Long currentTokenHandle = mDevicePolicyEngine.getLocalPolicySetByAdmin( PolicyDefinition.RESET_PASSWORD_TOKEN, enforcingAdmin, Loading Loading @@ -19135,7 +19133,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { admin, MANAGE_DEVICE_POLICY_RESET_PASSWORD, caller.getPackageName(), UserHandle.USER_ALL); userId); Long currentTokenHandle = mDevicePolicyEngine.getLocalPolicySetByAdmin( PolicyDefinition.RESET_PASSWORD_TOKEN, enforcingAdmin, Loading @@ -19161,11 +19159,18 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { } if (result) { if (isPermissionCheckFlagEnabled()) { DevicePolicyEventLogger .createEvent(DevicePolicyEnums.RESET_PASSWORD_WITH_TOKEN) .setAdmin(callerPackageName) .write(); } else { DevicePolicyEventLogger .createEvent(DevicePolicyEnums.RESET_PASSWORD_WITH_TOKEN) .setAdmin(caller.getComponentName()) .write(); } } return result; } Loading
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +15 −10 Original line number Diff line number Diff line Loading @@ -13804,8 +13804,6 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { admin, new BooleanPolicyValue(hidden), userId); Boolean resolvedPolicy = mDevicePolicyEngine.getResolvedPolicy( PolicyDefinition.APPLICATION_HIDDEN(packageName), userId); result = mInjector.binderWithCleanCallingIdentity(() -> { try { // This is a best effort to continue returning the same value that was Loading Loading @@ -18973,7 +18971,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { admin, MANAGE_DEVICE_POLICY_RESET_PASSWORD, caller.getPackageName(), UserHandle.USER_ALL); userId); Long currentTokenHandle = mDevicePolicyEngine.getLocalPolicySetByAdmin( PolicyDefinition.RESET_PASSWORD_TOKEN, enforcingAdmin, Loading Loading @@ -19037,7 +19035,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { admin, MANAGE_DEVICE_POLICY_RESET_PASSWORD, caller.getPackageName(), UserHandle.USER_ALL); userId); Long currentTokenHandle = mDevicePolicyEngine.getLocalPolicySetByAdmin( PolicyDefinition.RESET_PASSWORD_TOKEN, enforcingAdmin, Loading Loading @@ -19083,7 +19081,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { admin, MANAGE_DEVICE_POLICY_RESET_PASSWORD, caller.getPackageName(), UserHandle.USER_ALL); userId); Long currentTokenHandle = mDevicePolicyEngine.getLocalPolicySetByAdmin( PolicyDefinition.RESET_PASSWORD_TOKEN, enforcingAdmin, Loading Loading @@ -19135,7 +19133,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { admin, MANAGE_DEVICE_POLICY_RESET_PASSWORD, caller.getPackageName(), UserHandle.USER_ALL); userId); Long currentTokenHandle = mDevicePolicyEngine.getLocalPolicySetByAdmin( PolicyDefinition.RESET_PASSWORD_TOKEN, enforcingAdmin, Loading @@ -19161,11 +19159,18 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { } if (result) { if (isPermissionCheckFlagEnabled()) { DevicePolicyEventLogger .createEvent(DevicePolicyEnums.RESET_PASSWORD_WITH_TOKEN) .setAdmin(callerPackageName) .write(); } else { DevicePolicyEventLogger .createEvent(DevicePolicyEnums.RESET_PASSWORD_WITH_TOKEN) .setAdmin(caller.getComponentName()) .write(); } } return result; }