Use a longer fingerprint cancel signal
Fingerprint cancellation after user switching may take too long (more than DEFAULT_CANCEL_SIGNAL_TIMEOUT), so SysUI is setting its fingerprint state to NOT_RUNNING, assuming that the fingerprint manager will not be sending it a cancellation. However, the cancellation may come shortly after DEFAULT_CANCEL_SIGNAL_TIMEOUT. If the cancellation does come in, then SysUI and FingerprintManager end up in a bad state since SysUI is no longer in sync with FingerprintManager. This CL is a mitigation that increases DEFAULT_CANCEL_SIGNAL_TIMEOUT to be 2s longer. A more robust fix is recommended in the future. Flag: com.android.systemui.fingerprint_cancel_race_mitigation Bug: 398973663 Test: atest KeyguardUpdateMonitorTest Change-Id: I7276975a2b0c9317dc56f21a279cb0ab3ce0213d
Loading
Please register or sign in to comment