Loading core/java/android/app/admin/DevicePolicyManager.java +5 −0 Original line number Diff line number Diff line Loading @@ -6784,6 +6784,7 @@ public class DevicePolicyManager { return null; } // STOPSHIP: Remove reference to CUR_DEVELOPMENT before shipping /** * Called by a device owner to disable the keyguard altogether. * <p> Loading @@ -6792,6 +6793,10 @@ public class DevicePolicyManager { * password, pin or pattern is set after the keyguard was disabled, the keyguard stops being * disabled. * * <p> * As of {@link android.os.Build.VERSION_CODES#CUR_DEVELOPMENT}, this call also dismisses the * keyguard if it is currently shown. * * @param admin Which {@link DeviceAdminReceiver} this request is associated with. * @param disabled {@code true} disables the keyguard, {@code false} reenables it. * @return {@code false} if attempting to disable the keyguard while a lock password was in Loading services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +3 −0 Original line number Diff line number Diff line Loading @@ -9085,6 +9085,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { return false; } mLockPatternUtils.setLockScreenDisabled(disabled, userId); mInjector.getIWindowManager().dismissKeyguard(null); } catch (RemoteException e) { // Same process, does not happen. } finally { mInjector.binderRestoreCallingIdentity(ident); } Loading Loading
core/java/android/app/admin/DevicePolicyManager.java +5 −0 Original line number Diff line number Diff line Loading @@ -6784,6 +6784,7 @@ public class DevicePolicyManager { return null; } // STOPSHIP: Remove reference to CUR_DEVELOPMENT before shipping /** * Called by a device owner to disable the keyguard altogether. * <p> Loading @@ -6792,6 +6793,10 @@ public class DevicePolicyManager { * password, pin or pattern is set after the keyguard was disabled, the keyguard stops being * disabled. * * <p> * As of {@link android.os.Build.VERSION_CODES#CUR_DEVELOPMENT}, this call also dismisses the * keyguard if it is currently shown. * * @param admin Which {@link DeviceAdminReceiver} this request is associated with. * @param disabled {@code true} disables the keyguard, {@code false} reenables it. * @return {@code false} if attempting to disable the keyguard while a lock password was in Loading
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +3 −0 Original line number Diff line number Diff line Loading @@ -9085,6 +9085,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { return false; } mLockPatternUtils.setLockScreenDisabled(disabled, userId); mInjector.getIWindowManager().dismissKeyguard(null); } catch (RemoteException e) { // Same process, does not happen. } finally { mInjector.binderRestoreCallingIdentity(ident); } Loading