Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lock screen without disabling fingerprint

I have the following problem. I'm trying to make an app that locks the screen. The method via DevicePolicyManager works very well. So far so good. But when I lock my phone with DPM the fingerprint unlocking method is disabling and I have to enter my pattern (or PIN or whatever I set) to unlock the phone. If I lock it the normal way (ie with power button) the fingerprint unlocking works.

So my question is How to lock the screen programmatically and be able to unlock it afterwards via fingerprint?

PS: I have an galaxy s5 mini with marshmallow lineage os

like image 603
ChesterKing Avatar asked Mar 19 '17 12:03

ChesterKing


People also ask

Can I lock screen with fingerprint?

Fingerprint Lock Screen is a third-party mobile app that features your fingerprint scanner prominently. Using it, you can set up a lock screen that only accepts your fingerprint so no one else can open your device without your permission.

Can you bypass fingerprint?

The report says a fingerprint scanner can be "hacked" by using a picture of the target's fingerprint, creating a negative in Photoshop, printing the resulting image, and then putting some wood glue on top of the imitated fingerprint so it can be used to trick many commercial scanners.


1 Answers

I would like to add some points to the JerryGoyal's excellent answer.


Below is the screenshot from Microsoft Launcher which shows the two ways to lock the screen. It clearly states that the method via Device Policy Manager will not work with fingerprint.

A work around is done by showing a black screen until the screen times out.

In the next screen it asks for permission to Modify system settings to alter the screen timeout period.

Microsoft Launcher

like image 121
Kolappan N Avatar answered Oct 12 '22 23:10

Kolappan N