How to find or reset your Xiaomi phone password: The full guide 2026

The forgotten password from Xiaomi smartphone is a situation that thousands of users face every day. Unlike iPhones or devices running pure Android, Redmi, POCO or Mi phones have unique security mechanisms associated with Mi Account account and proprietary firmware MIUI. Attempts to find code by brute force are useless here: after 5 incorrect inputs, the system locks the device for 30 minutes, and after 10 - can completely erase all data.

In this article, we will analyze all possible ways of unlocking - from official (via an attached account) to technical (using Fastboot or Fastboot). EDL-Important: not all methods are suitable for your model, it depends on the version. MIUI, Root rights and Mi Account status, so that you do not lose your data, read the warnings carefully before each section.

1 Unlocking through Mi Account (official method)

The easiest and safest method is to use a Xiaomi account, which works if:

  • πŸ“± The phone is connected to the Internet (Wi-Fi or mobile network)
  • πŸ”‘ Remember the username and password from Mi Account
  • πŸ”„ Synchronization is enabled on the device (checked in Settings) β†’ Mi Account β†’ Synchronization)

Instructions:

  1. On the lock screen, tap Forgot password? (or Forgot password? on English firmware).
  2. Enter the email or phone number associated with the Mi Account.
  3. Confirm your identity via SMS or email (the code will come to the linked number / mail).
  4. Create a new unlock password.

⚠️ Note: If the phone previously enabled factory reset via Mi Account (Find Device option), then 10 If you fail to enter a password, the device can automatically erase all data. 12/13 series, Redmi Note 11/12 newer.

πŸ“Š What kind of Xiaomi phone is you?
Redmi Note
POCO
Mi
Black Shark
Other

2. Reset password via Find Device (remote)

If your phone is lost or you don't have physical access to it, but you have a Mi Account attached, you can reset your password remotely via Find Device.

  • 🌐 Phone's connected to the Internet.
  • πŸ”‹ Battery level of charge > 15%
  • πŸ“ Find Device is activated in the settings

Step-by-step:

  1. Go to i.mi.com and log in.
  2. Select the locked device in the list.
  3. Press Unlock Device (Unlock Device).
  4. Confirm the action via SMS or email.

⚠️ Warning: Once remotely unlocked, all data on the phone will be erased, which is not a good method for saving photos or messages, and it doesn't work on custom firmware devices like LineageOS).

β˜‘οΈ Preparation for remote discharge

Done: 0 / 4

3. Unlock via Fastboot (for advanced users)

If the official methods don't work, you can try resetting your password through Fastboot mode, which requires a computer, a USB-TypeC cable, and basic ADB/Fastboot knowledge.

Supported models:

  • πŸ“± Xiaomi Mi 10/11/12 series (except for Mi) 12 Ultra)
  • πŸ“± Redmi Note 9/10/11 (on Snapdragon processors)
  • πŸ“± POCO F3/F4/F5

Instructions:

  1. Turn off the phone. Press the Power button + Volume down to enter the Fastboot.
  2. Connect your phone to your PC and open the command line (Win + R β†’ cmd).
  3. Enter the command to check the connection: fastboot devices If the device is determined, continue.
  4. Run reset: fastboot erase userdata fastboot erase frp fastboot reboot

⚠️ Note: On new models (Xiaomi) 13T, Redmi Note 12 Pro+) This method may not work due to the blocking of Anti-Rollback, in which case you will need an authorized Mi Unlock account (see section 5).

What if the Fastboot can’t see the device?
Make sure you have the Mi Flash Tool drivers installed. Download them from Xiaomi's official website. USB-cable (original) and port USB 2.0 (not 3.0!).

4. Password bypass through Recovery Mode (without loss of data)

This method is suitable for older models (Redmi 4/5, Mi A1/A2) and allows you to reset the password without deleting data. However, on new devices (MIUI 13+), it does not work due to enhanced protection.

Instructions:

  1. Turn off the phone. Press the Power button + Volume up to enter Recovery.
  2. Select a language and go to Advanced β†’ File Manager.
  3. Delete files: /data/system/gesture.key /data/system/password.key /data/system/locksettings.db
  4. Reset the device.

⚠️ Attention: MIUI 12/13/14 This method will cause a bootloope (cyclic reboot). Use it only on firmware older than the one you use. 2019 year-end.

πŸ’‘

If the phone doesn't start after you delete the files, reset it via Wipe Data in the same Recovery, which will erase all the data, but it will return to work.

5. Unlock through EDL-mode (for technically savvy people)

EDL (Emergency Download Mode) is a service mode that allows you to flash a phone even with a locked bootloader.

  • πŸ–₯️ Windows PC 10/11
  • πŸ”Œ USB-TypeC Cable (preferably original)
  • πŸ› οΈ Mi Flash Tool and Qualcomm Drivers
  • πŸ“„ Firmware file for your model (download from xiaomifirmwareupdater.com)

Step-by-step:

  1. Install Qualcomm and Mi Flash Tool drivers.
  2. Turn off your phone. Close the Test Point contacts (location depends on the model, look for diagrams for your device).
  3. Connect the phone to a PC, and it will be defined as a Qualcomm HS-USB QDLoader 9008.
  4. In the Mi Flash Tool, select the firmware and press Flash.

⚠️ Attention: Incorrectly sliding into EDL This method is recommended only for advanced users or service centers. 8 Gen 2/3) Xiaomi is blocking EDL login.

Model phoneSupports EDL?Do you need authorization?Risk of a brick
Redmi Note 8/9Yes.No.Medium.
Xiaomi Mi 11Yes.Yes (since 2022)High-pitched
POCO X3 ProYes.No.Low.
Xiaomi 13/13 ProYes.Yes (for authorized accounts only)critical

Alternative methods (with limitations)

If none of the above methods worked, you can try:

  • πŸ”§ Google Account reset (only for Android 9 and older): on the lock screen, type in any password 5 times, then tap Forgot the password? β†’ Restore it through Google. It doesn't work on MIUI 13+.
  • πŸ“ž Contact the service center: official Xiaomi centers can unlock the phone on the passport of the owner (paid, ~1500–3000 β‚½). List of centres: mi.com/service.
  • πŸ”“ Use of third-party tools (such as Dr.Fone or Tenorshare) 4uKey). Risk: High probability of malware installation or data loss.

⚠️ Attention: Methods using bypasses through ADB (For example, adb shell rm /data/system/gesture.key) on MIUI 12+ All data is lost due to Factory Reset Protection (FRP).

πŸ’‘

On devices with MIUI 14 and later, the only reliable way to unlock is to officially reset via Mi Account or contact the service center.

7.How to avoid blocking in the future

To avoid the problem of forgotten passwords again, follow these tips:

  • πŸ” Use a fingerprint or facial recognition as an additional unlock method (configured in Settings) β†’ Password and security).
  • πŸ“ Write your password in a secure location (e.g., Google Keep or Google Keep). 1Password).
  • πŸ”„ Regularly back up through Settings β†’ System system β†’ Backup.
  • πŸ”— Link Mi Account to your phone and enable Find Device.

We also recommend disabling Auto Reset if you try too many times (available in Settings β†’ Password & Security β†’ Screen Lock settings).

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
On devices with MIUI 12 and later, no. The only chance of saving data is if the phone was unlocked through Mi Account or Find Device before locking. On older firmware (MIUI 11 and below), sometimes deleting gesture.key files via Recovery helps, but it's risky.
What to do if you forget your Mi Account password?
Restore access via account.xiaomi.com. If your phone number is linked, request an SMS with a code. If only email, check the Spam folder. At the very least, contact Xiaomi with your passport.
Why does the phone ask for an old password after reset via Fastboot?
This is Factory Reset Protection (FRP) and to remove the request, you need to enter the data from the last Mi Account that was on your phone, and if you don't remember the account, contact the service center.
Can I unlock Xiaomi through ADB?
On MIUI 14 and later, no. Xiaomi closed that loophole. You could delete password files through an adb shell before, but now it leads to a data reset or a bootloope.
How much does it cost to unlock in the service center?
Cost depends on the model and the reason for the lock: Redmi Note β€” 1500–2500 β‚½ Xiaomi 12/13 series β€” 2500–4000 β‚½ POCO custom-made 5000 β‚½ Xiaomi’s official centers charge a fixed fee (~2000 β‚½), require the owner's passport.