Face Unlock


Dec 8, 2018
34
3
10
#1
Hello.

Its possible to add a feature who let us swipe to unlock the screen, because isn't a good thing when u want too see hours or want to change music it unlock instantaneous, there's a option but i think that don't work or isn't a feature that do this, you guys can do that or only xiaomi team?
 
Feb 5, 2019
44
20
10
#5
Potentially it's possible with rooted phone. I've modded my Redmi 5 Plus to map the fingerprint sensor to power button. As a side effect I can switch on power by touching FP sensor with *any* finger. An unregistered finger wakes up lock screen but doesn't unlock. A registered finger unlocks.

All I had to do is to copy /system/usr/keylayout/uinput-fpc.kl and /system/usr/keylayout/uinput-goodix.kl to /sdcard/ and change a line in boths files:

key 353 DPAD_CENTER

changed to

key 353 POWER

Then I installed Magisk module "Custom Keylayout" and reboot. Now FP sensor has an additionaly function as second power button and I can switch on lock screen with my little fingers. FP sensor works furthermore as before.

Other mods are also possible, eg: https://www.xda-developers.com/enable-fingerprint-selfie-xiaomi-redmi-3s/
 
Likes: twobit
Nov 23, 2016
6
1
15
#6
Potentially it's possible with rooted phone. I've modded my Redmi 5 Plus to map the fingerprint sensor to power button. As a side effect I can switch on power by touching FP sensor with *any* finger. An unregistered finger wakes up lock screen but doesn't unlock. A registered finger unlocks.

All I had to do is to copy /system/usr/keylayout/uinput-fpc.kl and /system/usr/keylayout/uinput-goodix.kl to /sdcard/ and change a line in boths files:

key 353 DPAD_CENTER

changed to

key 353 POWER

Then I installed Magisk module "Custom Keylayout" and reboot. Now FP sensor has an additionaly function as second power button and I can switch on lock screen with my little fingers. FP sensor works furthermore as before.

Other mods are also possible, eg: https://www.xda-developers.com/enable-fingerprint-selfie-xiaomi-redmi-3s/
Thanks, but we haven't fingerprint button and if the screen is wake up the face sensor instant unlock the phone.
 

Igor Eisberg

Patch/Mod Developer
Staff member
Oct 6, 2016
1,451
1,101
297
#7
Potentially it's possible with rooted phone. I've modded my Redmi 5 Plus to map the fingerprint sensor to power button. As a side effect I can switch on power by touching FP sensor with *any* finger. An unregistered finger wakes up lock screen but doesn't unlock. A registered finger unlocks.

All I had to do is to copy /system/usr/keylayout/uinput-fpc.kl and /system/usr/keylayout/uinput-goodix.kl to /sdcard/ and change a line in boths files:

key 353 DPAD_CENTER

changed to

key 353 POWER

Then I installed Magisk module "Custom Keylayout" and reboot. Now FP sensor has an additionaly function as second power button and I can switch on lock screen with my little fingers. FP sensor works furthermore as before.

Other mods are also possible, eg: https://www.xda-developers.com/enable-fingerprint-selfie-xiaomi-redmi-3s/
Completely irrelevant to the discussion, the OP talks about Face unlock, not fingerprint unlock.
 
Jan 8, 2019
29
3
5
#8
Potentially it's possible with rooted phone. I've modded my Redmi 5 Plus to map the fingerprint sensor to power button. As a side effect I can switch on power by touching FP sensor with *any* finger. An unregistered finger wakes up lock screen but doesn't unlock. A registered finger unlocks.

All I had to do is to copy /system/usr/keylayout/uinput-fpc.kl and /system/usr/keylayout/uinput-goodix.kl to /sdcard/ and change a line in boths files:

key 353 DPAD_CENTER

changed to

key 353 POWER

Then I installed Magisk module "Custom Keylayout" and reboot. Now FP sensor has an additionaly function as second power button and I can switch on lock screen with my little fingers. FP sensor works furthermore as before.

Other mods are also possible, eg: https://www.xda-developers.com/enable-fingerprint-selfie-xiaomi-redmi-3s/
So on an unmodified software, phone shouldn't wake up by touching fingerprint sensor with any finger? Did I understand correctly? because my Max 3 wakes up when I touch fingerprint sensor without any fingerprint added (which is little annoying and I don't see any option to disable this).
 

Conus

Members
Feb 5, 2019
44
20
10
#9
So on an unmodified software, phone shouldn't wake up by touching fingerprint sensor with any finger? Did I understand correctly?
Yes, that's true. This behavoir comes with stock global ROMs from Xiaomi and with ROMs from here.

Also I wonder why there are two active input devices running for FP sensor: "uinput-goodix" and "uinput-fpc" (see /proc/bus/input/devices)

No idea whether it's a bug or a feature. I use it as a feature to wake built-in lockscreen controls of PowerAmp music player. That works fine with Xiaomi's lockscreen without unlocking device.