Forgetting the password from Xiaomi smartphone is a bad situation, but it is not a hopeless one. PIN-code too many times and the phone is locked for 24 hours (or forever), there are official and informal methods of restoring access, the main thing is not to panic or try to "hack" the device in artisanal ways that can lead to loss of warranty or break the hardware.
In this article, we will look at all the ways Xiaomi, Redmi and POCO unlock for 2026, from the simplest (via the Mi Account tied) to the complex (EDL mode and Fastboot firmware). We will focus on the methods that allow you to save data on your phone (photos, contacts, messages) β this is not possible in all cases, but there are chances, you will also learn how to avoid locking in the future and what to do if the phone requires an old password after reset.
We warn you right away: some methods require technical skills (working with ADB, firmware via PC) or official documents (passport to confirm ownership of your Mi Account). If you are not sure about your abilities, you should contact the Xiaomi service center (the list of addresses is available on the mi.com website).
1 Unlocking with Mi Account (the safest way)
If your Xiaomi is tied to your Mi Account and you remember the username and password, this is your chance to unlock your phone without losing data.The method works on most models, including the Redmi Note 12, Xiaomi 13, POCO X5 and other devices with MIUI 12-14.
How does it work: After 5 false attempts to enter a password, the system will offer the option "Forgot your password?" Click on it and follow the instructions:
- π Enter the email or phone number associated with the Mi Account.
- π§ Postal or SMS The confirmation code will come.
- π Enter the code in the appropriate field - the phone is unlocked.
β οΈ Note: If you have previously disabled Find Device in your security settings, this method may not work. Also note that once unlocked, your phone may require you to enter an old password for some applications (such as Mi Wallet or banking services).
2. Recovery Mode reset (data loss)
If the Mi Account is not tied or you don't remember the data from it, the next option is hard reset via Recovery Mode, which removes all data from the phone (photos, videos, messages, apps), but returns access to the system, suitable for Xiaomi models based on MIUI and HyperOS.
Instructions:
- Turn off the phone (press the power button for 10 seconds).
- Press the combination of Loudness up + Power and hold for 10-15 seconds until the Mi logo appears.
- In the Recovery menu, select Wipe Data (use volume buttons for navigation, power for confirmation).
- Confirm the reset by selecting Wipe All Data.
- Once completed, select Reboot β the phone will reboot in factory condition.
β οΈ Note: On some models (POCO F5, Redmi K60) After reset, you may need to enter the old Mi Account password (protection) FRP). If you donβt remember it, youβll need to use the methods in Section 4 or 5.
βοΈ Preparing for resetting through Recovery
3. Unlock through ADB (for advanced users)
If the phone is debugging on USB (USB Debugging, you can try unlocking it through ADB (Android Debug Bridge without data loss. MIUI 11-14, but requires pre-preparedness (e.g. if you have previously connected your phone to a PC).
What you need:
- π₯οΈ A computer with installed Xiaomi drivers and ADB.
- π USB-cable (preferably original).
- π± Phone with debugging enabled USB (Check in the settings β The phone. β Version. MIUI, Press 7 times, then return to Additional β For developers).
Instructions:
1. Connect the phone to the PC.
2. Open the command line (Windows) or the terminal (macOS/Linux).
3. Enter the commands in order:
Adb devices (you should display your device)
adb shell
su
rm /data/system/gesture.key (or password.key for PIN)
4.Reboot phone: adb rebootβ οΈ Note: On newer models (Xiaomi 14, Redmi Note 13), this method may not work due to enhanced protection, and after unlocking, some applications may experience errors (for example, Google Pay will stop working before resetting).
What if the ADB canβt see the device?
4. Firmware via Fastboot (for power users)
If previous methods didn't work, you can try flashing your phone through Fastboot mode, which is a radical way to delete all data, but restores the device to work, and is suitable for models with an unlocked bootloader.
What you need:
- π₯οΈ PC with Mi Flash Tool and Xiaomi drivers installed.
- π¦ Official firmware for your model (download from the official website).
- π§ Unlocked bootloader (if not, read section 5).
Step-by-step:
- Turn off the phone and press Volume Down + Power to log into the Fastboot.
- Connect the phone to the PC.
- Open the Mi Flash Tool, select the downloaded firmware (.tgz format).
- Press Refresh β the program must detect the device.
- Select Clean All mode and press Flash.
- Wait for the finish (5-10 minutes) and restart the phone.
| Model phone | Supports Fastboot? | Do you need to unlock the bootloader? | Data loss? |
|---|---|---|---|
| Xiaomi 13/13 Pro | Yes. | Yes. | Yes. |
| Redmi Note 12 | Yes. | Yes. | Yes. |
| POCO X5 | Yes. | Yes. | Yes. |
| Xiaomi 11T | Yes. | No (on some firmware) | Yes. |
β οΈ Note: Firmware via Fastboot voids warranty if the bootloader was unblocked. Also on some models (Xiaomi) 12S Ultra) after firmware may require authorization Mi Account even after reset.
π‘
Before you run your firmware, check the MIUI version on Xiaomiβs website. Installing an inappropriate firmware can lead to a βbrickβ (complete failure) of the phone.
5. EDL mode (emergency firmware)
EDL (Emergency Download Mode) is the βlast frontierβ for unlocking Xiaomi when other methods have failed. It allows you to flash the phone at a low level even if the bootloader is locked. However, it requires an authorized Xiaomi account (or help from a service center).
How to log into EDL:
- π Connect the phone to the PC.
- π§ Close the Test Point contacts on the motherboard (requires disassembly of the phone).
- π₯οΈ In the Device Manager should appear port Qualcomm HS-USB QDLoader 9008.
For firmware, use the Mi Flash Tool or QFil with official firmware in.mbn format. This method is guaranteed to unlock the phone, but:
- β Deletes all data.
- β Requires disassembly of the device (risk of damage).
- β Can block it. IMEI on some models.
β οΈ Attention: Incorrect firmware in mode EDL If you're not a seasoned user, you should contact a service center.
π‘
EDL mode is the only way to unlock Xiaomi with the bootloader locked and the Mi Account disabled, but requires technical skills and official tools.
6. Contact the Xiaomi Service Center
If self-unlocking attempts fail, the most reliable way is to contact the official Xiaomi service center, which is especially true for new models (Xiaomi 14, Redmi Turbo 3), which have enhanced protection against unauthorized access.
What will be required:
- π Passport (to confirm possession of the device).
- π± Checks or box from the phone (if preserved).
- π³ Payment for the service (the cost of unlocking is from 1000 to 3000 rubles depending on the model).
Advantages of using the service:
- β Data retention guarantee (in some cases).
- β Unlocking without risking damage to your phone.
- β Recovery capability IMEI, if he was lost.
β οΈ Note: Unofficial service centers may offer cheaper unlocking, but the risk of getting scammed is high. Xiaomiβs official partners work under contract and provide a guarantee for the service.
7.How to avoid blocking in the future
To avoid having to deal with a forgotten password, follow these tips:
- π Use biometric unlocking (fingerprint or facial recognition) in addition to PIN-code.
- π Write your password to a secure location (for example, Mi Password Manager or Google Passwords).
- π Link your phone to your Mi Account and enable Find Device.
- π Regularly back up through Settings β System system β Backup.
We also recommend that you disable the option βAutomatic lock after incorrect inputβ (you can find it in Settings β Lock screen β Additional), which will prevent the phone from completely locking in case of accidental errors.
π‘
In the Mi Account settings, you can enable the option βRestore via SMSβ β this will allow you to unlock your phone with a code from the message, even if you forgot your password.