If you are running the MIUI 9 Stable Official Rom 9.2.1.0+, you can have thefeature (Recieved by Redmi Note 5 Pro in the Latest Update) enabledHere is the procedure-1. Download the zip file(link below)2. Flash it using TWRP Recovery.No need to clear any cache3. Reboot.1. Flash theusing Magisk Manageron Redmi Note 4(Mido) running the latestandor- Working on these devices as well-Fori'have made another port, here Test on your devices at your own risk.oc01 & Siemens92 on 4pda.ruon XDA for helping in Magisk Module.Screenshots- https://imgur.com/2jPzsA7 1- Works on MIUI8?It doesn't work on MIUI8, Kindly update it to the latest firmware and flash this.2- On custom roms?For custom roms either this function is already there( if it's not why are you still on it, come back to stock guys, it's quite nice here.) or you can use the Trusted Face Unlock from google( For near vanilla roms).3- On other Devices?Regarding any other device, I really don't know.4- Trouble after flashing this?If you are facing problem after flashing this, kindly dirty flash the rom again and try this, most likely your earlier mods to firmware are causing trouble.ForTWRP-Rollback for TWRP(Restore the default files)-Magisk Module- 9.2.1.0 or you can download thefrom Magisk manager.. Hitif it was useful.