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

Commit 2cda9f6b authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Adb command to authenticate earlier

Test: adb shell setprop persist.sysui.wake_performs_auth 1
Fixes: 133447404
Change-Id: I89a5a97c1b5dc7664f65241c535cc18ee6264e65
parent 4060eeac
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -3890,6 +3890,8 @@ public class StatusBar extends SystemUI implements DemoMode,
        private boolean mAnimateWakeup;
        private boolean mAnimateScreenOff;
        private boolean mIgnoreTouchWhilePulsing;
        private boolean mWakeLockScreenPerformsAuth = SystemProperties.getBoolean(
                "persist.sysui.wake_performs_auth", false);

        @Override
        public String toString() {
@@ -3945,7 +3947,9 @@ public class StatusBar extends SystemUI implements DemoMode,
                mStatusBarWindow.suppressWakeUpGesture(true);
            }

            boolean passiveAuthInterrupt = reason == DozeLog.PULSE_REASON_NOTIFICATION;
            boolean passiveAuthInterrupt = reason == DozeLog.PULSE_REASON_NOTIFICATION || (
                    reason == DozeLog.PULSE_REASON_SENSOR_WAKE_LOCK_SCREEN
                            && mWakeLockScreenPerformsAuth);
            // Set the state to pulsing, so ScrimController will know what to do once we ask it to
            // execute the transition. The pulse callback will then be invoked when the scrims
            // are black, indicating that StatusBar is ready to present the rest of the UI.