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

Commit 75eade8a authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

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
parent 887968cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment