Forgot the password from the Xiaomi phone? 7 ways to unlock (2026)

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).

πŸ“Š Your phone is tied to your Mi Account?
Yeah, I remember the login/password.
Yeah, but I don't remember the data.
No, not tied.
I don't know.

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:

  1. Turn off the phone (press the power button for 10 seconds).
  2. Press the combination of Loudness up + Power and hold for 10-15 seconds until the Mi logo appears.
  3. In the Recovery menu, select Wipe Data (use volume buttons for navigation, power for confirmation).
  4. Confirm the reset by selecting Wipe All Data.
  5. 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

Done: 0 / 4

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?
Make sure that Xiaomi drivers are installed (download from the site) en.miui.com/a/drivers). Try another one. USB-Enable File Transfer mode when you connect. If the phone is locked, you may need to unlock it. OEM Developer settings (but this is not possible without access to the system).

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:

  1. Turn off the phone and press Volume Down + Power to log into the Fastboot.
  2. Connect the phone to the PC.
  3. Open the Mi Flash Tool, select the downloaded firmware (.tgz format).
  4. Press Refresh – the program must detect the device.
  5. Select Clean All mode and press Flash.
  6. Wait for the finish (5-10 minutes) and restart the phone.
Model phoneSupports Fastboot?Do you need to unlock the bootloader?Data loss?
Xiaomi 13/13 ProYes.Yes.Yes.
Redmi Note 12Yes.Yes.Yes.
POCO X5Yes.Yes.Yes.
Xiaomi 11TYes.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.

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, but only if: The phone is tied to Mi Account and you remember the data from it, USB debugging (ADB) is enabled and you have previously connected the phone to a PC, in all other cases, the data will be deleted.
What if the phone asks for the old Mi Account password after resetting?
This is FRP (Factory Reset Protection) Solutions: Enter the Mi Account that was linked to the phone. If you don't remember the password, restore it through account.xiaomi.com. If the account is not yours, contact the service center with the documents on the phone.
How much does it cost to unlock in the Xiaomi service center?
Cost depends on the model and complexity: Xiaomi Redmi (budget models) β€” 1000–1500 Xiaomi. 12/13 (flagship) β€” 2000–3000 Unlocking through EDL β€” before 5000 Official prices can be found on the website mi.com.
Can I unlock Xiaomi through my Google Account?
Unlike older versions of Android, Xiaomi on MIUI does not support unlocking through Google Account. The only official way is Mi Account.
What to do if your phone is locked after the MIUI update?
Sometimes, after an update, the system requires you to enter the old password. Solutions: Try entering the last PIN or pattern lock you use. If it doesn't work, reset via Recovery (section 2). Contact Xiaomi support via the feedback form.