Forgot the password from Xiaomi or the system requires you to confirm the way to unlock after the update MIUI? This situation is familiar to many owners of smartphones Redmi, POCO or Mi, the device suddenly asks to enter the old PIN-A code, a pattern lock, or a fingerprint, even though you're sure you're entering the right data, the reasons can be different: a failure after firmware, activation of Find Device protection, or even a bug in recent versions. MIUI 14 Android-based 13/14.
In this article, we will discuss all the official and alternative ways to confirm the unlock method on Xiaomi devices, including models with Snapdragon and Mediatek processors. You will learn how to circumvent the confirmation requirement if you forgot your password, what to do when you fail to confirm the unlock method, and how to restore access without losing data.
Important: The confirmation procedure may vary depending on the version MIUI And the smartphone model. For example, on Xiaomi 13 Pro with MIUI 14.0.5 algorithm different from Redmi Note 10 MIUI 12.5.We cover all relevant scenarios, including devices with HyperOS (new firmware from Xiaomi).
Why does Xiaomi require proof of unlocking?
The requirement to confirm the unlock method is a security mechanism MIUI, which works in several cases:
- ๐ After the firmware update (especially when switching to a new version of Android or MIUI). The system checks the integrity of the unlock data.
- ๐ When changing the password/pattern lock in the settings. Xiaomi may request the old method to confirm.
- ๐ฑ After resetting your settings via Fastboot or Recovery (even if you havenโt done a full reset).
- ๐จ When you activate the Find Device function or suspect unauthorized access.
- ๐ง After replacing system files (for example, when manually deleting applications through the ADB).
On HyperOS devices (e.g. Xiaomi) 14 or Redmi K70) This mechanism works differently: the system can request confirmation even during a normal restart if inconsistencies in the files are detected. /data/system/locksettings.db. This is due to enhanced protection against hacking.
โ ๏ธ Note: If you see a message โConfirm the Unlocking Way to Continueโ after a failed firmware through the TWRP, After 5 false attempts, the device may lock for 24 hours or require Mi Account to unlock.
Official ways to confirm unlocking
If you remember yours PIN-code, pattern lock or fingerprint, follow the standard procedure:
- Enter the current unlock method (the one you normally use).
- The system will ask you to confirm it again โ use the same method (for example, if you unlock with a fingerprint, confirm with a fingerprint).
- If a combination of methods is used, for example, PIN + print), the system can request all the registered methods in turn.
On devices with MIUI 14+ HyperOS algorithm is a little more complicated:
- ๐ฑ First enter the basic method (the one that is set as primary in the settings).
- ๐ข The system may then be asked to enter a backup. PIN (Even if you didnโt explicitly install it, it could have been generated automatically when you first turned it on).
- ๐ If biometrics are used, confirm the unlock with two different fingerprints (if several are registered).
If you forgot your password but you have a Mi Account attached, try:
- On the confirmation screen, click โForgot your password?โ
- Select โUnblock via Mi Accountโ and enter your account details.
- Confirm unlocking via SMS or email (if two-factor authentication is enabled).
โ ๏ธ Note: On devices with a blocked bootloader, unlocking through Mi Account may not work if the Find Device function was not previously activated. In this case, official proof of ownership through the Xiaomi Service Center will be required.
Make sure the device is charged at least 50 times%|Connect to a stable Wi-Fi network or mobile Internet|Have Mi Account information on hand (if tied)|Check if Find Device is enabled in your security settings-->
What if Xiaomi doesnโt accept the right password?
The situation where you are sure that the password you enter is correct, but the system does not accept it, is common.
| Problem. | Possible cause | Decision |
|---|---|---|
| Password is not suitable after MIUI update | Failure in locksettings.db or gatekeeper.password.key | Reset your password via Fastboot (see section below) or roll back to the previous version MIUI |
| pattern lock is not recognized | Screen damage or sensor calibration failure | Connect the mouse through OTG and repeat the input or use ADB discharged |
| Fingerprints are not readable | Changing the sensor (for example, after repair) or damaging files /data/system/users/0/biometrics | Delete all prints through ADB and re-register |
| The system asks for an old password after it is changed | Incomplete update of unlock files in /data/system | Enter the old password, then immediately change it to a new one in the security settings. |
If neither method works and Mi Account is not tied, there are two options:
- Contact the service center with documents for the device (to confirm ownership).
On devices with Mediatek (e.g. Redmi) 9A or POCO C31) Sometimes hardware resets through a combination of power buttons help + Volume Up (clamps for 10 seconds), however, this method does not work on all models and can lead to a brick (complete failure) of the device.
adb shell rm /data/system/locksettings.db
adb shell rm /data/system/locksettings.db-wal
adb shell rm /data/system/locksettings.db-shmAfter that, restart the device โ the system can allow you to set a new password.-->
How to confirm unlocking via Fastboot (without data loss)?
If standard methods donโt work, but you have a bootloader unlocked, you can try resetting the unlock settings via Fastboot without deleting user data, POCO F3 Xiaomi 11T).
You'll need:
- ๐ฅ๏ธ Computer with installed Xiaomi drivers and fastboot tool.
- ๐ Cable USB (preferably original).
- ๐ File. persist.img from stock firmware for your model (you can download from xiaomifirmwareupdater.com).
Step-by-step:
- Turn off the device and press Power + Volume Down to log into Fastboot.
- Connect your smartphone to your PC and check the connection with the command: fastboot devices must display the serial number of the device.
- Please. persist.img (This will not delete user data, but will reset the unlock settings: fastboot flash persist persist.img
- Reboot the device: fastboot reboot
After the reboot, the system may suggest setting a new password, and if that doesn't happen, try re-entering the old password, often after the procedure, it starts to be accepted.
โ ๏ธ Note: On HyperOS devices (e.g. Xiaomi 14), this method may not work due to the changed partition structure, in which case you will need a complete reset via Fastboot with loss of data: fastboot erase userdata fastboot erase cache fastboot reboot
What if the fastboot canโt see the device?
Alternative methods of confirmation (for advanced users)
If the official methods did not help, and Fastboot reset is undesirable, alternative methods can be tried. They require technical skills and are only suitable for devices with an unlocked bootloader.
Method 1: Delete password files through TWRP
If you have a custom recavator installed TWRP, Follow the following steps:
- Download to TWRP (Pressure Power + Volume Up).
- Go to Advanced โ File Manager.
- Delete the following files: /data/system/locksettings.db /data/system/locksettings.db-wal /data/system/locksettings.db-shm /data/system/gatekeeper.password.key (if)
Reboot the device. The system should allow you to set a new password.
Method 2: Use of ADB (if debugging is enabled)
If the locking has been activated by USB, Connect the device to the PC and execute:
adb shell
su
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
rm /data/system/gatekeeper.password.key
rebootAfter rebooting, the password will be reset, but biometric data (fingerprints, face) will have to be reconfigured.
Method 3: Firmware through EDL (for locked loader devices)
If the bootloader is blocked and other methods do not work, the firmware remains through the EDL-Emergency Download Mode: This method will result in a complete data reset and can lock the device if you don't follow the instructions.
You'll need:
- ๐ฅ๏ธ Mi Flash Tool (official utility from Xiaomi).
- ๐ Fastboot firmware ROM For your model (download from the official website).
- ๐ง Authorized Xiaomi Account (for new HyperOS devices).
Instructions:
- Turn off the device and connect it to the PC, holding Volume Up + Volume Down (to enter the EDL).
- Start the Mi Flash Tool, select the downloaded firmware.
- Press Refresh โ the device should be defined as COM-port.
- Select Clean All mode (this will delete all data!) and click Flash.
โ ๏ธ Attention: Firmware through EDL on HyperOS devices (e.g. Xiaomi 14 or Redmi) K70) It requires authorization through Mi Authorized Account, and without it, the firmware will end in an error. SLA Auth Fail.In this case, contact the service center.
๐ก
Firmware through EDL โ This is an extreme method that should only be used if other methods have not worked, it results in complete data loss and can lock the device if it is not performed correctly.
How to avoid problems with confirming unlock in the future?
To avoid the requirement to confirm the unlock method, follow these recommendations:
- ๐ฑ Do not disable Find Device โ this is the only official way to restore access when blocked.
- ๐ Write down the backup. PIN It's safe, and on HyperOS devices, you might need it even if you're using biometrics.
If you frequently use the device TWRP or Fastboot, before each firmware make a backup copy of the persist partition:
adb pull /dev/block/bootdevice/by-name/persist persist.imgThis will help you quickly restore the unlock settings after a failed firmware.
On devices with MIUI 14+ And HyperOS has a function called "Backup Unlock Code" that can be generated in the security settings (Settings). โ Password and security โ Backup unlock code. This code will come in handy if the basic unlocking method stops working.
๐ก
If you plan to sell or transfer the device, be sure to untie Mi Account and reset settings via Settings. โ The phone. โ Resetting. This will save the new owner from problems with confirming unlock.
Frequent mistakes and their solutions
Letโs analyze the typical errors that occur when confirming the unlock method on Xiaomi, and how to fix them.
| Mistake. | Reason. | Decision |
|---|---|---|
| I could not confirm the method of unlocking. | Damage to locksettings.db files or mismatch of password hashes | Delete password files through ADB or TWRP (see section above) |
| Too many attempts. Repeat in 24 hours. | Exceeded the number of incorrect password inputs | Wait 24 hours or reset the attempt counter via Fastboot (fastboot erase frp) |
| Requires confirmation via Mi Account | The device is linked to an account, but it is not confirmed | Sign in to Mi Account on another device and confirm unlocking via account.xiaomi.com |
| Server error. Repeat later. | Xiaomi server problems or lack of internet | Check your network connection, switch to mobile internet or try again later |
| Device locked. Contact the service center. | Protection against theft is activated or the number of incorrect attempts is exceeded | Contact the service center with documents on the device or try unlocking through the Mi Unlock Tool |
If you see a mistake SLA Auth Fail when firmware is running through the Mi Flash Tool, this means your device requires an authorized Xiaomi account:
- ๐ง Contact Xiaomi with proof of purchase (check, box with) IMEI).
- ๐ง Use bypass scripts (e.g. Xiaomi Auth Bypass), but this is risky and can result in device locking).
- ๐ Contact the service center with a passport and documents on the device.
On devices with Mediatek (e.g. Redmi) 9C or POCO M3) Sometimes it helps to get rid of SP Flash Tool:
- Download the firmware in Scatter format for your model.
- Open up. SP Flash Tool and download scatter-file.
- Select Format All mode + Download.
- Connect the device turned off to the PC (without buttons clamping).