Xiaomi phone is locked – what to do: 7 working ways to unlock

A blocked Xiaomi smartphone is a situation that thousands of users face every day, and the reasons can be different: a forgotten password, a pattern lock input error, activation of Mi Account protection after resetting, or even a software failure. Unlike other brands, Redmi, POCO and Mi phones have a unique lock system associated with the manufacturer's account, which makes unlocking difficult, but does not make it impossible.

In this article, we’ll look at all the ways you can unlock for 2026, from official (through identity verification) to technical (using Fastboot or EDL). Importantly, some methods can lead to data loss or warranty cancellation, so try the safe options first. If your Xiaomi requires you to enter a password from Mi Account after a reset, this is a separate case, and the whole section below is devoted to it.

1 Unlocking through Mi Account (official method)

If your phone is locked because of a link to your Xiaomi account (for example, after resetting or buying a used device), first try logging in.

  • πŸ”‘ Enter. email/phone and password from Mi Account, which was linked to the phone. If you don't remember, use the password recovery function at account.xiaomi.com.
  • πŸ“§ If the device requests confirmation of SMS/email, Check your emails or messages to the number associated with your account. 5 minute.
  • πŸ›‘οΈ If the error "Device not recognized" try to connect to another Wi-Fi network or use mobile data.

If the previous owner has not untied the account, contact him and ask him to remove the device from the list in Settings Mi Account β†’ Devices. Without this, official unlocking is impossible – Xiaomi does not provide access to other accounts even on request.

⚠️ Warning: When buying used Xiaomi, always check the Mi Account undock before payment. Once reset, the phone can turn into a brick"!

πŸ“Š Your Xiaomi phone is blocked because of the
Forgotten password
pattern lock
Mi Account after reset
Other causes

2. Reset pattern lock or password (without Mi Account)

If only the screen (password, PIN, or pattern lock) is locked and Mi Account is not activated, try these methods:

Method 1: Unlocking through Google (for Android 9 and below)

On older versions of MIUI, after 5 failed attempts, a button appears "Forgot your password?". Press it and enter data from the Google account that was synced with the device. This method does not work on MIUI 12+ and Android 10+ phones.

Method 2: Hard Reset with Recovery

A full reset will delete all data, but unlock the device.

  1. Turn off the phone.
  2. Press Volume Up + Power (on some models Volume Down + Power) before the Mi logo appears.
  3. In the Recovery menu, select Wipe Data β†’ Wipe All Data (manage volume buttons, confirmation – power button).
  4. After resetting, reboot (reboot).

If after resetting the phone requires a password from Mi Account, go to the section about official unlocking.

β˜‘οΈ Preparation for Hard Reset

Done: 0 / 4

3. Unlock via Fastboot (for advanced users)

If Recovery resets don't work or the menu is blocked, you can try flashing your phone in Fastboot mode, USB-Mi Flash Tool and cable tool.

Step-by-step:

  1. Download the official firmware for your model (choose the Fastboot version).
  2. Unpack the archive into a folder without Cyrillic characters (e.g., C:\Xiaomi\flash).
  3. Install Xiaomi and Mi Flash Tool drivers.
  4. Turn off the phone, press Volume down + Power to enter the Fastboot (a hare in a hat-eared hat will appear).
  5. Connect your phone to your PC, open the Mi Flash Tool, select the firmware folder and press Refresh β†’ Flash.

It takes 5-10 minutes. Once you restart, the phone will be in factory condition. Attention: this method does not bypass the Mi Account lock if it has been activated!

What to do if the Mi Flash Tool can't see your phone?
1. Check the cable - use the original from Xiaomi. 2. Install drivers manually through Device Manager (select Device Manager "ADB Interface. 3. Try another one. USB-port (preferably 2.0). 4. Disable the antivirus - it can block the connection.

4. bypassing the Mi Account lock via EDL (emergency mode)

EDL (Emergency Download Mode) allows you to flash your phone low, bypassing some locks. This method is risky and can lead to hard-brick if you do something wrong. Use it only if other methods have not worked.

What you need:

  • πŸ–₯️ Windows PC 10/11.
  • πŸ”Œ Original Xiaomi Cable (better of the kit).
  • πŸ“¦ Firmware in.tgz format for your model.
  • πŸ› οΈ Mi Flash Pro or QFilm.
  • πŸ”§ Qualcomm Driver HS-USB QDLoader 9008 (manually installed).

How to log into EDL:

  1. Turn off the phone.
  2. Press Volume up + Volume down and connect the cable to the PC. Hold the buttons for 10-15 seconds.
  3. In Device Manager should appear a new device Qualcomm HS-USB QDLoader 9008.

Next, run your phone through the Mi Flash Pro by selecting a firmware file. The process is similar to Fastboot, but works at a lower level. On some models (for example, Redmi Note 10 Pro) after firmware is run through EDL, you may need to log in to the service center to unlock the bootloader.

⚠️ Attention: Firmware through EDL deletes all data, including IMEI. They can be restored only through a backup or service center.

5. Official Unlocking Through Xiaomi Support

If the phone is locked because of the previous owner’s Mi Account and you can’t contact him, you can only contact Xiaomi for support, and the process is slow and requires confirmation of purchase:

  • πŸ“„ Prepare a check (electronic or paper) confirming the purchase of the device.
  • πŸ“§ Write in support on the official website or through the form in the Mi Community application.
  • πŸ•’ The time limit for the request is 3 to 14 days, and if the decision is positive, you will be sent instructions to unlock the request.

Important: Xiaomi can request additional documents, such as a photo of a box with a serial number or IMEI. If the phone is bought with hands without a check, the chances of unlocking are minimal.

Unlocking methodSuitable forPC requiredLoss of dataThe risk of a brick
Entering the Mi Account passwordPost-discharge locking❌ No.❌ No.❌ No.
Hard Reset via RecoveryA forgotten pattern lock❌ No.βœ… Yes.❌ No.
Firmware through FastbootSystem failures, freezesβœ… Yes.βœ… Yes.⚠️ Medium.
Firmware through EDLCritical blockagesβœ… Yes.βœ… Yes.βœ… High-pitched
Appeal of supportMi Account of the previous owner❌ No.❌ No.❌ No.

6. Alternative methods (for individual cases)

If standard methods don’t work, try these options:

Unlocking through ADB (if debugging is enabled)

If you have enabled USB Debugging in Settings β†’ About Phone β†’ MIUI Version (7 times click) β†’ Additional Settings β†’ For developers, you can try to delete the password file:

adb shell rm /data/system/gesture.key


adb shell rm /data/system/password.key




adb reboot

After the reboot, the screen lock will reset.

Use of service codes

Some models (Redmi 4X, Redmi Note 5) have a service code for resetting:

  • πŸ“ž Type #7378423## (to check the lock status).
  • πŸ“ž Try ##3646633## β†’ Connectivity β†’ USB Settings β†’ Manufacture Mode (can help bypass lock when connecting to a PC).

πŸ’‘

If your phone is locked after you have firmware, try pressing the power button for 20-30 seconds to force you to restart, sometimes helping you get out of the bootloop.

7 What NOT to do (common mistakes)

Some actions can make things worse or completely disable your phone.

  • πŸ”‹ Relieving the phone to 0% can cause memory loss and inability to recover.
  • πŸ”¨ Independently disassemble the device without experience - the risk of damage to plumes or battery.
  • πŸ’» Use unofficial firmware (for example, with 4PDA) Without understanding the process, a high chance of getting a brick".
  • πŸ”‘ Trying to hack Mi Account through third-party services is a scam and you risk losing access forever.

If you are not sure about your actions, you should contact the service center.The cost of unlocking Mi Account in the official Xiaomi STS is from 1,500 to 3,000 rubles (2026), but it is guaranteed to be safer than experiments.

πŸ’‘

Before any unblocking, check if your model is in the β€œblack list” Xiaomi (for example, some Redmi Note 4/5 after firmware requires authorization in the SC).

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, but only if the lock is not connected to Mi Account, for example, if you forget the pattern lock on Android 9 and below, you can use the unlock through your Google account. In all other cases, the data will be lost.
The phone asks for the old Mi Account password after the reset.
This means that the previous owner did not untie the device from his account. The only options: Contact the seller and ask to untie the phone in the Mi Account Settings β†’ Devices. Contact Xiaomi with a check to buy (if the phone is new). Take it to the service center for official unlocking (paid).
After you've run it through Fastboot, the phone doesn't turn on. What do you do?
There's probably a firmware error. Try: Repeat the firmware with another version of MIUI (download the Fastboot firmware for your model from the official website); Use EDL mode (see section above); Connect your phone to charge for 30 minutes - sometimes helps with a dead battery. If nothing works, contact the service - perhaps memory is damaged (eMMC).
Can you unblock Xiaomi through service centers unofficially?
Technically, yes, but it violates Xiaomi's policy: πŸ”“ Passage EDL substituted IMEI (illegally). πŸ“± Firmware with deleted Mi Account (may lead to account bans). πŸ’° Paid code generators (often fraud) Risks: loss of warranty, blocking IMEI The operator, problems with updates.
How to avoid blocking Xiaomi in the future?
Follow these rules: πŸ” Untie Mi Account before selling your phone (Settings) β†’ Mi Account β†’ Devices). πŸ“± Backup important data (via Settings) β†’ Additionally. β†’ Backup). πŸ”§ Do not update the software through third-party sources – use only official firmware. πŸ“ Write passwords from the lock screen and Mi Account to a secure location (for example, to the password manager).