What to do if you blocked Xiaomi: 7 ways to unlock and restore access

Locking a Xiaomi smartphone is one of the most frustrating situations a user can face, ranging from a banal forgotten password to an IMEI lock by a telecom operator or activating Mi Account protection after resetting. Unlike other brands, Xiaomi phones have a unique security system that can turn unlocking into a real quest.

In this article, we will look at all possible lock scenarios, from software to hardware, and offer proven ways to restore access. It is important to understand that not all methods are universal: for example, unlocking through Fastboot will work for models on Qualcomm Snapdragon, but will not work on devices with Mediatek chipsets. We will also pay attention to the risks of data loss when reset via EDL (Emergency Download Mode) – this mode can save the brick, but requires caution.

If your Xiaomi is locked, don't panic: 90 percent of the time, it's possible to bring the device back to life, and the key is to identify the type of lock correctly and choose the appropriate method, and start by diagnosing the problem.

1. How to determine the type of lock on Xiaomi

Before you start unlocking, you need to know exactly which lock you are facing, which determines how you can restore access. Here are the main types of locks on Xiaomi devices:

  • πŸ”’ Screen locking (PIN, pattern lock, password – appears after several failed attempts to enter.
  • πŸ“± Mi Account Lock – requires login and password from Xiaomi account after resetting settings.
  • πŸ“‘ Lock-in IMEI β€” the operator has blocked the device for non-payment or at the request of law enforcement agencies.
  • 🚫 Hard Brick – the device does not turn on, does not respond to charging, is not detected by the computer (often after a failed firmware).
  • πŸ”„ Soft Brick – The phone turns on but only loads to the Mi logo or reboots cyclically.

To diagnose the problem:

  1. Connect the device to charge. If the charging indicator is on, the lock is software.
  2. Try to pin Power + Volume up for 10 seconds. If the Fastboot menu comes up, the device is in working order.
  3. If the message β€œThis device is locked” or β€œMi Account Verify” appears on the screen, this is the account lock.
  4. If the phone doesn’t respond to buttons and isn’t detected by a PC, it’s a Hard Brick.

⚠️ Warning: If you see a message saying "This device is bound to a Mi Account" after resetting, do not try to enter random data. After 5 failed attempts, the device will lock for 72 hours.

πŸ“Š Your Xiaomi is blocked because of
Forgotten password
Mi Account after reset
Blocking by the operator
Failed firmware.
Other causes

2. unlock the Xiaomi screen without data loss

If you forgot. PIN-A code, a pattern lock, or a password, but remember the Mi Account data, you can try unlocking the device without resetting. This method works on most Xiaomi models (except the Redmi Note 12 and newer with HyperOS).

Method 1: Find Device (official method):

  1. Go to i.mi.com and log in.
  2. Select the locked device in the list.
  3. Click Unlock Device and confirm the action via SMS.
  4. The device unlocks within 5 minutes (internet connection required).

Method 2: via ADB (requires USB debugging enabled):

adb shell rm /data/system/gesture.key


adb shell rm /data/system/password.key




adb shell rm /data/system/locksettings.db




adb reboot

If USB debugging is disabled, only hard reset via Recovery or Fastboot remains. On HyperOS models (such as Xiaomi 14), this method will not work – you will need official confirmation through Mi Account.

β˜‘οΈ Preparation for unblocking through ADB

Done: 0 / 4

3.How to Unlock Mi Account After Resetting

Mi Account locking is one of the hardest to bypass, and it activates after resetting if the device was tied to a Xiaomi account, and you can officially unblock it only with your username and password. If you forget the data, try:

  • πŸ“§ Recover passwords via an attached email or phone at account.xiaomi.com.
  • πŸ“± Use the backup email or phone number specified during registration.
  • πŸ”‘ If your account is linked to Google, try logging in via Google Smart Lock.

If official methods do not help, there are still informal ways to:

MethodSuitable modelsRisks.Required SOFTWARE
Bypassing through FastbootRedmi Note 8/9, Mi 9/10Possible Soft BrickMi Flash Tool, firmware
EDL-regimen (Qualcomm)Poco X3, Mi 11Data loss, the risk of Hard BrickQFil, an authorized account
Mediatek chip (SP Flash Tool)Redmi 9A, Poco M3Loss of IMEISP Flash Tool, scatter file
TWRP bypassDevices with unlocked loaderLoss of guaranteeTWRP, Magisk

For Qualcomm Snapdragon devices (e.g. Xiaomi 12 Pro) you can use it. EDL-The mode, but it requires authorization through an official Xiaomi account, without it, the firmware will be blocked at the verification stage.

⚠️ Note: Since HyperOS (2026), Fastboot bypassing Mi Account has become virtually impossible.The only working method is official proof of ownership through Xiaomi support.

What happens if you enter Mi Account password 10 times wrong?
The device will be locked for 72 hours, after which you will need to wait or contact the service center with proof of purchase.

4. Unlock Xiaomi by IMEI (operator lock)

If your Xiaomi is blocked by a carrier (for example, MTS, Beeline or MegaFon), the screen will display a message like β€œSIM card blocked” or β€œDevice in the blacklist”, This lock is imposed for default on the loan, at the request of bailiffs or when buying a phone β€œfrom hand” with unpaid time share.

Official ways to remove the blockage:

  1. Contact the operator with a passport and a purchase agreement (if blocked for non-payment).
  2. Pay the debt through the operator’s personal account.
  3. If the phone is bought from hand – ask the seller to remove the lock or return the money.

Informal methods (risky and not always legal):

  • πŸ”§ Flashing the modem part (may lead to loss of network).
  • πŸ”„ Replacement IMEI (illegally in most countries, including Russia).
  • πŸ“± Engineering Mode (not working on all models).

To check the status of the IMEI blocking:

  1. Type *#06# and your IMEI will appear.
  2. Check it out on sites like imei.info.
  3. If the status of "Blacklisted" is a device in the blacklist.

⚠️ Attention: Change IMEI In Russia, it is punishable by law (Article 272 of the Criminal Code), even if you are offered a "clean" IMEI For money, this can lead to problems with the law.

5. Xiaomi's recovery from the brick (Hard/Soft Brick)

If your Xiaomi has turned into a brick after a failed firmware, first identify the type of problem:

  • 🧱 Hard Brick – phone does not respond to buttons, does not charge, is not detected by PC.
  • πŸ”„ Soft Brick – The device is turned on but only loaded to the logo or rebooted cyclically.

For Soft Brick:

  1. Press Power + Volume up to enter the Fastboot.
  2. Connect your phone to your PC and run the official firmware through the Mi Flash Tool.
  3. Select the "Clean All" mode.

For Hard Brick (Qualcomm only):

  1. Transfer the device to EDL-Mode (close test points or use adb reboot edl if the phone reacts at all).
  2. Fluidify through QFil or Mi Flash Pro.
  3. Use an authorized firmware account (without it, the process will be interrupted by 99%).

On Mediatek devices (e.g. Redmi 10A), hard Brick recovery requires a SP Flash Tool and a scatter file. Importantly, the wrong firmware can damage NVRAM, resulting in loss of IMEI and Wi-Fi.

πŸ’‘

If it's gone after the firmware. IMEI, Try to restore it through Maui. META (for Mediatek or QCN-file (for Qualcomm). Make sure to backup the original IMEI before manipulation!

6.How to avoid blocking Xiaomi in the future

To avoid getting blocked again, follow these guidelines:

  • πŸ” Use biometric authorization (fingerprint or facial recognition) in addition to PIN-code.
  • πŸ“ Write your Mi Account data in a secure location (such as a password manager).
  • πŸ”„ Before resetting settings untie the device from Mi Account in the settings.
  • πŸ“± Buy phones only from official sellers to avoid blocking the IMEI.
  • πŸ”§ Do not install custom firmware without unlocking the bootloader (this will lead to Hard Brick).

If you often experiment with firmware, unlock the bootloader in advance through the official Xiaomi website:

  1. Go to en.miui.com/unlock.
  2. Link the device to your account.
  3. Wait 7 days (a mandatory requirement of Xiaomi)
  4. Use the Mi Unlock Tool to unlock.

⚠️ Note: Starting in 2026, Xiaomi has tightened its policy of unlocking the bootloader.Now some models (for example, Xiaomi 14 Ultra) require proof of ownership through a check or warranty card.

πŸ’‘

The most reliable way to avoid blocking is to link your device to your Google and Mi Account account, and to create backups regularly through the Mi Cloud.

Frequently Asked Questions (FAQ)

Can I unlock Xiaomi without losing data?
Yes, but only if you had USB Debugging enabled and you can use ADB. Otherwise, unlocking the screen or resetting the Mi Account will delete all data. On HyperOS devices (2026), even ADB may not work due to enhanced protection.
How much does it cost to unlock Xiaomi in the service center?
Cost depends on the type of lock: Screen unlock: 1000-2 500 β‚½. Mi Account reset: 2,000–5,000 β‚½ (Recovery from Hard Brick: 3,000–10,000 β‚½ (Xiaomi official service centers may refuse to unlock if you do not provide a check or warranty card.
What to do if Xiaomi is blocked after firmware?
If the device boots to the logo and restarts (Soft Brick): Log in to the Fastboot (Power) + Volume down. Swipe the official firmware through the Mi Flash Tool (select "Clean All"). If the phone doesn't respond (Hard Brick): Use EDL-(a) the mode (for Qualcomm) or SP Flash Tool (for Mediatek) EDL You will need an authorized account (you can buy on forums for 500-1 500) β‚½).
Can I bypass Mi Account on Xiaomi 2026?
On HyperOS devices (e.g. Xiaomi 14, Redmi Note 13), it is almost impossible to bypass Mi Account via Fastboot or EDL. The only working methods are: Official proof of ownership through Xiaomi support (you need a check); Contacting a service center with a warranty card; Unofficial methods (like persist firmware) can lead to the loss of IMEI or Hard Brick.
How to check if Xiaomi is blocked by IMEI before buying?
Before buying a hands-on phone, be sure to: Ask the seller to dial *#06# and show you IMEI. Check the IMEI on imei.info or imei-pro.info. Make sure that the status of "Clean" (not "Blacklisted"). Ask the seller to reset your settings - if after the reboot a Mi Account request appears, the phone is tied to someone else's account.