Loading services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +3 −11 Original line number Diff line number Diff line Loading @@ -14673,7 +14673,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { @Override public void setSecondaryLockscreenEnabled(ComponentName who, boolean enabled, PersistableBundle options) { if (Flags.secondaryLockscreenApiEnabled()) { if (Flags.secondaryLockscreenApiEnabled() && mSupervisionManagerInternal != null) { final CallerIdentity caller = getCallerIdentity(); final boolean isRoleHolder = isCallerSystemSupervisionRoleHolder(caller); synchronized (getLockObject()) { Loading @@ -14684,16 +14684,8 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { caller.getUserId()); } if (mSupervisionManagerInternal != null) { mSupervisionManagerInternal.setSupervisionLockscreenEnabledForUser( caller.getUserId(), enabled, options); } else { synchronized (getLockObject()) { DevicePolicyData policy = getUserData(caller.getUserId()); policy.mSecondaryLockscreenEnabled = enabled; saveSettingsLocked(caller.getUserId()); } } } else { Objects.requireNonNull(who, "ComponentName is null"); Loading
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +3 −11 Original line number Diff line number Diff line Loading @@ -14673,7 +14673,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { @Override public void setSecondaryLockscreenEnabled(ComponentName who, boolean enabled, PersistableBundle options) { if (Flags.secondaryLockscreenApiEnabled()) { if (Flags.secondaryLockscreenApiEnabled() && mSupervisionManagerInternal != null) { final CallerIdentity caller = getCallerIdentity(); final boolean isRoleHolder = isCallerSystemSupervisionRoleHolder(caller); synchronized (getLockObject()) { Loading @@ -14684,16 +14684,8 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { caller.getUserId()); } if (mSupervisionManagerInternal != null) { mSupervisionManagerInternal.setSupervisionLockscreenEnabledForUser( caller.getUserId(), enabled, options); } else { synchronized (getLockObject()) { DevicePolicyData policy = getUserData(caller.getUserId()); policy.mSecondaryLockscreenEnabled = enabled; saveSettingsLocked(caller.getUserId()); } } } else { Objects.requireNonNull(who, "ComponentName is null");