Fingerprint reboot on MIUI 12


Voyagerscout

Members
Sep 3, 2020
2
3
Hi Everyone

I have scoured the internet for a solution, but so far I have only found people with the exact same problem.
People who have the Xiaomi Mi 9T Pro / Redmi K20 Pro, report reboots/crashes when trying to use the fingerprint scanner when the following conditions are met:

-They have had their screen replaced
-They have got MIUI 12 installed

With MIUI 11, and other ROMs, the fingerprint scanner works fine. However, after updating to MIUI 12, the device reboots when trying to use the fingerprint scanner.
I have MIUI by Xiaomi.eu 12.0.3 stable installed. but I have seen the same problem with people who have 12.0.1 or 12.0.2 installed, no matter if it is Global, China, EU or xiaomi.eu rom.

Not working:
-Registering Fingerprints in the settings menu
-Unlocking the device with registered fingerprints
-Completing the "FOD fingerprint calibration" in the "Additional Tools" menu of CIT. It fails at the final step, "PERFORMANCE_CHART Test"

Working (albeit buggy):
-The tests in "com.goodix.fingerprint.setting.MainActivity", which can be launced with the app "Activity Launcher"
-CIT Fingerprint Sensor check
-CIT FOD Fingerprint Input Test (I encountered that this test actually registers your fingerprint. After this, the phone immediately crashes, reboots, and your phone is locked! Trying to unlock it reboots the phone. However, you can unlock it with the numerical code "0000", apparently the default password. Unfortunately, this also crashes the phone. To avoid this problem, go into e.g. TWRP, decrypt the storage with "0000", go to Advanced>Filemanager, then go to /data/system/user/0 and delete "settings_fingerprint.xml". After reboot your phone is unlocked)

It seems to me that this is a software issue, since the FOD was working fine in MIUI 11. So far, reports of this issue go back since the first release of MIUI 12 for the Mi 9T Pro.
Xiaomi says the warranty is void once your screen is broken, or replaced.

The only report I found of someone who solved this problem, said the technician who replaced his screen told him he had to "Copy the firmware codes from his old screen to his new screen", but so far no-one was able to follow up on this.

Here are a few links with threads of people reporting the same problem:
Xiaomi.eu
XDA
Baidu

If the xiaomi.eu would be able to fix this issue as opposed to the global/EU/China rom, it would be a major advantage for everyone who has had their screen replaced (which over time will ofcourse be more and more people)
I hope this a bit more comprehensive thread will help us get to a solution.

Thanks :)
 
Last edited:
  • Like
Reactions: madf78 and IronSam

Voyagerscout

Members
Sep 3, 2020
2
3
Have you tried other custom ROMs, not MIUI ones?
Is the behavior the same?
Yes, I tried Corvus OS and with that the fingerprint is working (a bit slow but working nonetheless).
With MIUI 11 it works very fast. It is only MIUI 12 that causes the problems.
 

vasil_d

Members
Aug 28, 2018
51
20
I see.
I doubt it that the guys/developers from xiaomi.eu will be able to help you in any way.
Firmware stuff is very tricky.
I hope for any of you with that issue that xiaomi will fix the issue, because it seems that only they can.
 
  • Like
Reactions: Voyagerscout

Sebasyoung

Members
Feb 5, 2020
10
15
I have the same issue, yes i replaced my screen, i only made it work miui12 with the stable one, but fod doesnt work
 

vasil_d

Members
Aug 28, 2018
51
20
Have any of you tried to flash the miui10.3.17 fastboot rom/files? And after that to upgrade to v12 check then?
 

black

Members
Oct 7, 2013
116
40
CIT menu <= dial this : * # * # 6 4 8 4 # * # *
Please go to the CIT menu press the 3 dot in the top right of screen scroll down calibrate the FOD -> place a white thing on FOD click start before next step put somthing black on FOD and press next...wait until finish close restart and add your fingerprint :) have a nice day
 

Craigj90

Members
Nov 1, 2020
10
15
CIT menu <= dial this : * # * # 6 4 8 4 # * # *
Please go to the CIT menu press the 3 dot in the top right of screen scroll down calibrate the FOD -> place a white thing on FOD click start before next step put somthing black on FOD and press next...wait until finish close restart and add your fingerprint :) have a nice day
I have tried this and gotten through the first two steps of putting something white then putting something black. However, the test then says 'flesh chart horizontal' and it fails KB calibration. Any suggestions for what to do, to fix this?
 
  • Like
Reactions: madf78

Craigj90

Members
Nov 1, 2020
10
15
You need to flash passreset file. Just Flash and reboot . Flash DFE with it if you're encrypted. //cloud.tapatalk.com/s/5fd7fb5534768/PassReset.zip

Sent from my Redmi K20 Pro using Tapatalk
I somehow missed this reply and found it by accident.
I flashed the file you linked, however this has not sorted the issue.
The phone I have is the mi 10 ultra running latest 12.5 weekly ROM. I have previously installed the stock ROM with locked boot loader with no luck.
I have tried to flash stock persist image, with no luck.
Honestly, at a loss on how to resolve this. I simply can't get past the third stage of the calibration process detailed previously.
 

madf78

Members
Dec 3, 2020
5
13
I somehow missed this reply and found it by accident.
I flashed the file you linked, however this has not sorted the issue.
The phone I have is the mi 10 ultra running latest 12.5 weekly ROM. I have previously installed the stock ROM with locked boot loader with no luck.
I have tried to flash stock persist image, with no luck.
Honestly, at a loss on how to resolve this. I simply can't get past the third stage of the calibration process detailed previously.
Same Issue here, please elaborate if possible.
Thank you in advance for your time and support :)
 

patryn

Members
Aug 24, 2016
37
20
Xiaomi Mi10 Ultra here, latest weekly rom after screen replacement. Fingerprint sensor not working. Can't add fingerprints, fails to add. On CIT menu, fails fingerprint test, pass SPI, RST, OTP tests, but fails on CALI test. Tried calibration, also fails on third step (Put the FLESH FLAT then click START). Don't know what to do on these steps, but this third one always fails with different errors.
After screen replacement tried to hard reset, fastboot install and then update, tried to root and delete goodix folder. Nothing works. Any help? Thank you.
 

patryn

Members
Aug 24, 2016
37
20
Xiaomi Mi10 Ultra here, latest weekly rom after screen replacement. Fingerprint sensor not working. Can't add fingerprints, fails to add. On CIT menu, fails fingerprint test, pass SPI, RST, OTP tests, but fails on CALI test. Tried calibration, also fails on third step (Put the FLESH FLAT then click START). Don't know what to do on these steps, but this third one always fails with different errors.
After screen replacement tried to hard reset, fastboot install and then update, tried to root and delete goodix folder. Nothing works. Any help? Thank you.
I answer to myself, I have managed to solve it by following these indications. My sensors were not working so persist partition corrupted.

  1. I have a Xiaomi Mi 10 Ultra with the latest weekly, so I have downloaded the latest fastboot from the Chinese weekly (https://bigota.d.miui.com/20.12.25/cas_images_20.12.25_20201225.0000.00_11.0_cn_0f41459073. tgz).
  2. Extracted package and copy persist.img from images folder to internal storage of Mi 10 Ultra.
  3. Reboot to TWRP and launch Terminal
  4. simg2img /sdcard/persist.img /sdcard/persist_EXT4.img (this code returns error in my case)
  5. dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist
  6. dd if=/sdcard/persist_EXT4.img of=/dev/block/bootdevice/by-name/persist
  7. Reboot
After that, still have to calibrate fod sensor before I can add fingerprint, in CIT advanced menu.
  1. cover fod sensor with white paper
  2. cover fod sensor with something black
  3. cover fod sensor with my finger just after pressing next (almost cry when test finish ok).
  4. Reboot again
Add fingerprints OK.
Hope it helps.
 
  • Like
Reactions: Anvith raj

Cristhian C.

Members
Feb 9, 2021
2
13
I answer to myself, I have managed to solve it by following these indications. My sensors were not working so persist partition corrupted.

  1. I have a Xiaomi Mi 10 Ultra with the latest weekly, so I have downloaded the latest fastboot from the Chinese weekly (https://bigota.d.miui.com/20.12.25/cas_images_20.12.25_20201225.0000.00_11.0_cn_0f41459073. tgz).
  2. Extracted package and copy persist.img from images folder to internal storage of Mi 10 Ultra.
  3. Reboot to TWRP and launch Terminal
  4. simg2img /sdcard/persist.img /sdcard/persist_EXT4.img (this code returns error in my case)
  5. dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist
  6. dd if=/sdcard/persist_EXT4.img of=/dev/block/bootdevice/by-name/persist
  7. Reboot
After that, still have to calibrate fod sensor before I can add fingerprint, in CIT advanced menu.
  1. cover fod sensor with white paper
  2. cover fod sensor with something black
  3. cover fod sensor with my finger just after pressing next (almost cry when test finish ok).
  4. Reboot again
Add fingerprints OK.
Hope it helps.
Do you loose your stored data on the phone on the process ?