How to reset a locked Xiaomi smartphone: from Mi Account to engineering menu

A forgotten pattern lock, a mistyped password 10 times in a row, or a software failure after a firmware crash β€” the reasons for blocking Xiaomi can be different. But the result is the same: the phone turns into a brick that does not respond to touch, and the main mistake users make in this situation is trying to hack into the device through third-party programs or multiple reboots, which not only does not help, but can lead to complete loss of data or damage to system files.

In this article, 5 proven ways to unlock (including official and alternative) relevant to the 2018-2026 models: from Redmi Note 10 Pro to Xiaomi 14 Ultra. Each method is illustrated with screenshots and accompanied by warnings about risks. If your smartphone is locked after upgrading to MIUI 15, pay special attention to the section about Fastboot - there are nuances for new versions of firmware.

Spoiler: Xiaomi can only be unlocked 2 times out of 5 without data loss, but even if files are not saved, they can often be restored through the Mi Cloud (if sync was enabled).

πŸ“Š Xiaomi has been blocked because of...
Forgot your password/pattern lock
Too many wrong attempts
Firmware update
Breakdown after falling/water hit
Other causes

1 Unlocking through Mi Account (official method)

If you had a Mi Account attached to your phone (even if you don't remember the password), this method will work 90% of the time. Condition: the device must have Internet access (Wi-Fi or mobile network). On models with MIUI 12 and later, the algorithm has changed a little bit, now you need to confirm via SMS or email.

Step-by-step:

  1. On the lock screen, tap Forgot password? (or Forgot password? on English firmware).
  2. Choose Restore through Mi Account.
  3. Enter the email or phone number associated with the account.
  4. Confirm the entrance through SMS-mail-code.
  5. Create a new unlock password.

⚠️ Note: If you don’t remember the Mi Account, don’t try to guess the password – after 5 wrong attempts, the account will be blocked for 24 hours).

What to do if you do not have access to the Internet?

  • πŸ“Ά Connect your phone to another Wi-Fi network (even if the screen is locked, you can sometimes swipe down and turn on Wi-Fi via the notification panel).
  • πŸ”Œ Connect the charger - on some models (Redmi) 9A, Poco X3) When charging, mobile Internet is automatically turned on.
  • πŸ“± Put it in. SIM-card with active tariff (if the phone supports 2) SIM, Try both slots).
How to get around Mi Account lock if your phone is not connected to the network?
If Xiaomi is not catching Wi-Fi and mobile network due to a failure of the communication module, try: 1. Reboot the phone in Safe Mode (press the power button + increase the volume when turned on). 2. In Safe Mode, you can sometimes turn on data transfer. 3. If it does not help, use the Fastboot method (section 4).

2.Reset via Recovery Mode (Hard Reset)

This is the only way to unlock without a password from Mi Account, but it completely erases data from the phone, suitable for devices that disable Find My Device (otherwise, after reset, you will need to enter the data of the old account).

How to log in to Recovery Mode:

  • πŸ”„ Turn off the phone (press the power button for 10 seconds).
  • πŸ”§ Squeeze the power. + Increase the volume before the appearance of the Mi logo.
  • πŸ“± Release the buttons when the recovery menu appears (in English or Chinese).

Further action:

  1. Select Wipe Data (or Chinese firmware) using volume buttons.
  2. Confirm the choice of the power button.
  3. Select Wipe All Data (full reset).
  4. After completion, press Reboot.

⚠️ Attention: On models with MIUI 14+ After Hard Reset, you may be asked to enter your previous Mi Account (even if you don't remember it (FRP). In this case, go to the Fastboot method.

β˜‘οΈ Preparation for Hard Reset

Done: 0 / 4

3. Restoring access to Mi Account

If you don't remember the password from your Xiaomi account, you can restore it through the official website. Importantly, this requires access to the email or phone number specified during registration. On models older than 2020 (for example, Redmi Note 8 Pro), additional confirmation via SMS may be required.

Instructions:

  1. Go to the Mi Account login page.
  2. Press Forgot Your Password?
  3. Enter your email or phone number.
  4. Choose the method of recovery: SMS or mail.
  5. Follow the instructions in the message.

What to do if you do not have access to email/phone?

  • πŸ“§ Try to restore access to email (for example, through Google Account, if it is Gmail).
  • πŸ“ž Contact the mobile operator to restore the number (if you have a phone number). SIM-missing).
  • πŸ› οΈ If nothing helps, use Fastboot (Section 4), but be prepared to lose data.

⚠️ Attention: After you restore your account, wait 15-30 minutes before unlocking your phone. Xiaomi servers sometimes delay syncing, and trying to log in immediately after changing your password can lead to a new lock.

4. Unlock via Fastboot (for advanced users)

The Fastboot method is suitable if:

  • πŸ”’ Phone locked after failed update.
  • πŸ“± Hard Reset did not work because of the FRP.
  • πŸ”§ You are ready for possible data loss.

What you need:

  • πŸ’» Computer with Windows/macOS/Linux.
  • πŸ”Œ Original. USB-cable (poor cables may interrupt the connection).
  • πŸ“₯ Platform Tools (from Google).
  • πŸ“„ Firmware for your model (download from the official Xiaomi website).

Step-by-step:

  1. Turn off the phone.
  2. Press Power + Volume Down to Enter Fastboot Mode.
  3. Connect the phone to the PC.
  4. Open the command line in the folder with Platform Tools and type: fastboot devices (should display the serial number of the device).
  5. To unlock the bootloader, enter: fastboot oem unlock (new models may require binding to Mi Account).
  6. Swipe the stock firmware command: fastboot flash all [name file firmware.zip]

⚠️ Attention: On models with MIUI 13+ The fastboot oem unlock command may not work without first linking the account to the developer settings. If the phone does not unlock, try first logging into Mi Account through another device and linking it to the phone.

πŸ’‘

Before you run your Fastboot firmware, check the phone model with the fastboot getvar product command. Using firmware from another model can turn the device into a brick!

5. Alternative methods (for specific cases)

If the standard methods didn’t help, try these options:

A. Unlocking via ADB (if USB debugging is enabled)

  • πŸ”§ Connect your phone to your PC and open the command line.
  • Enter: adb shell rm /data/system/gesture.key (to delete the pattern lock) or adb shell rm /data/system/password.key (to delete the password).
  • Reset the device.

B. Bypassing the lock through the engineering menu (for older models)

  1. Enter the dial keyboard: ##4636##
  2. Go to Testing. β†’ Reset.
  3. Select Wipe App Data.

B. Contacting the service centre

  • 🏒 If the phone is warranty, contact the official service Xiaomi.
  • πŸ’° The cost of unlocking without warranty: 1,500–3,000 rubles (depending on the model).
  • ⏳ Timeline: 1-3 days.

⚠️ Warning: Don't trust "masters" who promise to unlock a phone in 5 minutes through "secret software" -- often scammers who either steal data or permanently damage the device.

πŸ’‘

If the phone is locked after falling or getting water, DO NOT try to unlock it software. First check the motherboard at the service center!

Comparison of Unlocking Methods

MethodAre the data stored?You need a Mi Account?DifficultySuitable for MIUI 14/15
Through the Mi Account.βœ… Yes.βœ… Yes.β­βœ… Yes.
Hard Reset❌ No.❌ No (but may be required after resetting)⭐⭐⚠️ Partially (risk) FRP)
Fastboot❌ No.⚠️ Sometimes.β­β­β­βœ… Yes.
ADBβœ… Yes.❌ No.⭐⭐⭐⭐❌ No, only for MIUI 11 and older)
Service centre⚠️ Depends on the master.❌ No.β€”βœ… Yes.

Frequent Mistakes and How to Avoid Them

Error 1: Phone is not included in Recovery Mode

πŸ”Ή Reason: Faulty volume buttons or damaged software.

πŸ”§ Decision:

  • Try to press the buttons with force (sometimes the contacts are oxidized).
  • Use ADB to upgrade to Recovery: Adb Reboot Recovery

Error 2: After Hard Reset asks for old Mi Account

πŸ”Ή Reason: Factory Reset Protection is activated (FRP).

πŸ”§ Decision:

  • Enter your old account details (if you remember).
  • Use Fastboot to run the stock version of MIUI.
  • Contact the service center with proof of purchase.

Error 3: Fastboot doesn't see the device

πŸ”Ή Reason: There are no drivers or faulty cables.

πŸ”§ Decision:

  • Install Google USB Driver drivers.
  • Try another one. USB-port (preferably) USB 2.0).
  • Disable the antivirus (it can block adb).
Can I unlock Xiaomi without losing data?
Yes, but only if: πŸ”“ The phone had a Mi Account attached and you remember the password from it. πŸ“± Debugging is on. USB (ADB). πŸ–₯️ You have a backup in Mi Cloud, and in all other cases, the data will be erased.
What if, after unlocking, the phone asks for the account of the previous owner?
This means that Factory Reset Protection is activated on the device (FRP). Solutions: Contact the previous owner and ask for details from his Mi Account, provide a check for the purchase to the service center (if the phone is officially purchased), flash the phone through Fastboot with a full reset. FRP (instructions are available on the forums 4PDA).
How to unlock Xiaomi if the screen is not working (black screen, broken display)?
If the phone is responding to a PC connection (vibrates, makes sounds), try it: πŸ’» Connect the mouse through OTG-adapter (on some models, the cursor will be displayed even when the screen is bit). πŸ”Š Use voice control (Okay Google or Hey Xiaoai for Chinese firmware). πŸ“‘ Swipe your phone through a Fastboot (if you don't need a screen to confirm your actions), if the screen is completely dead and the phone is not detected by the PC, only repair or replace the display.
How much does it cost to unlock Xiaomi in the service center?
Type of Unblocking Cost (β‚½) Password reset (without data loss) 2,000–3,500 1–2 hours Fastboot 1,500–2,500 2–3 hours Firmware FRP (if you ask for an old account) 3,000–5,000 1-2 days Repair after unsuccessful unlocking from 5,000 3–7 days ⚠️ Attention: Prices are relevant for Moscow and St. Petersburg, in the regions the cost can be 20-30% lower.
Can you unlock Xiaomi with Mi Flash Unlock?
Mi Flash Unlock is officially designed to unlock the bootloader, not reset the password. It only helps if you can: πŸ”“ You want to install custom firmware. πŸ“± The phone is locked after a failed update, it is not suitable for resetting a password or pattern lock, and incorrect use of Mi Flash Unlock can lead to a loss of the user's ability to reset the password or pattern lock: 🚫 Total loss of data. πŸ”§ Damage to the loader (bootloop). πŸ“΅ Poose. IMEI (on some models).