Do not let device sleep after successful auth
Retrying auth, or succeeding is a strong signal that the user is present. The device should not sleep, otherwise the keyguard will be dismissed (as it should) but not automatically locked, since screen timaeouts don't lock instantly. Test: Manual Fixes: 135967964 Change-Id: I9a8bcf0ddb80536719d093aab9e00c76d87ad24b
This commit is contained in:
@@ -237,6 +237,7 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe
|
||||
MIN_DRAG_SIZE, getResources().getDisplayMetrics())
|
||||
&& !mUpdateMonitor.isFaceDetectionRunning()) {
|
||||
mUpdateMonitor.requestFaceAuth();
|
||||
mCallback.userActivity();
|
||||
showMessage(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -260,6 +260,7 @@ public class BiometricUnlockController extends KeyguardUpdateMonitorCallback {
|
||||
boolean unlockAllowed = mKeyguardBypassController.onBiometricAuthenticated(
|
||||
biometricSourceType);
|
||||
if (unlockAllowed) {
|
||||
mKeyguardViewMediator.userActivity();
|
||||
startWakeAndUnlock(biometricSourceType);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user