Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1140f9d authored by Mike Lockwood's avatar Mike Lockwood Committed by Android (Google) Code Review
Browse files

Merge "Disable car mode should not require DISABLE_KEYGUARD permission"

parents 61b09cbc 9f93881f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -347,11 +347,13 @@ class UiModeManagerService extends IUiModeManager.Stub {
                }
            }
            if (mKeyguardLock != null) {
                long ident = Binder.clearCallingIdentity();
                if (enabled) {
                    mKeyguardLock.disableKeyguard();
                } else {
                    mKeyguardLock.reenableKeyguard();
                }
                Binder.restoreCallingIdentity(ident);
            }
        }
    }