Jump to content

Remove fingerprint lock after 5 attempts


Recommended Posts

On Lineage OS 18.1 I keep getting in situations where the fingerprint sensor won't work until I unlock to phone with PIN. That was somewhat of an issue before but since I changed my case it's annoying to the point where the fingerprint sensor is almost useless.

I'm assuming most those issues are related to the fact that the fingerprint sensor gets temporary locked after 5 failed attempts and permanently locked after 20 failed attempts. Though on stock it would show a message on the lock screen telling you your fingerprint sensor is disabled, on LOS I don't get such message. My new case enables easier access to the fingerprint sensor leading to more failed attempts.

I'm planning to make a build that fixes this issue the relevant source code is there:

https://github.com/LineageOS/android_frameworks_base/blob/7f7fc2562a95be630dbe609e8fb70383dcfada4f/services/core/java/com/android/server/biometrics/fingerprint/FingerprintService.java#L110

I guess I would just set those constants to something high enough so that fingerprint lock won't kick in.

 

Edited by Slion
  • Like 1
  • Thanks 1
Link to post
Share on other sites
19 hours ago, raymo said:

For my curiosity, what sort of case are you using ?

Custom flip bookcase based on Huawei P20 Pro, I recently switched from a thicker one to this low profile one. The former I used for over 18 months. I'm also not excluding going back to it depending on how well that later one is working out.

Edited by Slion
  • Thanks 1
Link to post
Share on other sites
20 hours ago, EskeRahn said:

,,,Or you could make a case where the flap goes the other way. Just 12h stiching... *LOL*

Actually I really enjoy that kind of manual activity, it is such pleasant change from software engineering.

  • Like 2
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms