Temporarily increase timeout for devices with buggy driver
Some devices don't properly respond to cancel() which must return a cancel notification. This workaround shortens the timeout for those devices so they're functional until this is fixed. Workaround for bug 28201240 Change-Id: I9a5b41e400c217444b8df97ebee2b60f5b879d76
This commit is contained in:
@@ -96,7 +96,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe
|
||||
|
||||
private static final long FAIL_LOCKOUT_TIMEOUT_MS = 30*1000;
|
||||
private static final int MAX_FAILED_ATTEMPTS = 5;
|
||||
private static final long CANCEL_TIMEOUT_LIMIT = 3000; // max wait for onCancel() from HAL,in ms
|
||||
private static final long CANCEL_TIMEOUT_LIMIT = 300; // max wait for onCancel() from HAL,in ms
|
||||
private final String mKeyguardPackage;
|
||||
private int mCurrentUserId = UserHandle.USER_CURRENT;
|
||||
private final FingerprintUtils mFingerprintUtils = FingerprintUtils.getInstance();
|
||||
|
||||
Reference in New Issue
Block a user