How to unlock Xiaomi phone after resetting to factory settings: the full guide 2026

Resetting Xiaomi to factory settings is standard procedure when selling a device, fixing system failures or preparing for firmware. But what if after a hard reset, the phone requires you to enter a password from Mi Account, a pattern lock or a computer key? PIN-This situation is familiar to thousands of users, especially after buying a used smartphone or a failed attempt to unlock the bootloader.

In 2026, Xiaomi tightened its security policy: even after completely resetting through Recovery, many models (such as the Redmi Note 12 Pro+, POCO F5 or Xiaomi 13T) require confirmation of the original Mi Cloud account. Without it, the phone turns into a brick with the words "This device is locked." Fortunately, there are legal and informal ways to get around locking - from standard tools to engineering methods for advanced users.

In this guide, we will discuss 5 working methods of unlocking, including official (via Xiaomi support) and alternative (using Fastboot, EDL and third-party utilities), as well as learn which models are most vulnerable to locking, how to avoid re-activation of protection and what to do if the phone is purchased from hand without the previous owner’s data.

Why Xiaomi is blocked after resetting settings

The reason for the lock is because of Mi Cloud Lock (aka FRP, Factory Reset Protection), which links the device to the Mi Account that was authorized on the phone before the reset, and even if you run Wipe Data through Recovery, the system stores the binding information in the protected persist section.

Since 2021, Xiaomi has introduced an additional layer of protection - OEM Lock. Now, when reset, you can see:

  • πŸ”’ Requirement to enter a password from Mi Account (if the phone was linked to the account).
  • πŸ“± Request for confirmation through SMS/email (If two-factor authentication is enabled).
  • 🚫 Message "This device is locked" (on models with locked boot loader).
  • βš™οΈ Activation error (if previously the owner was enabled Find Device).

The problem is especially common on devices with MIUI 13/14 and later, as well as on the flagships of the Xiaomi 12/13 series, Redmi K50 and POCO X5.

πŸ“Š Your Xiaomi has been blocked after
Reset via Recovery
MIUI updates
Purchases of used phones
Other causes

Method 1: Unlock with the official Mi Account

If you remember the data from the Mi Account, which was tied to the phone before the reset, this method will take no more than 5 minutes, suitable for most models, including the Redmi Note 11, Xiaomi 11T and newer ones.

Step-by-step:

  1. On the locked screen, select β€œForgot password?” (or similar option).
  2. Enter the email or phone number associated with your Mi Account.
  3. Confirm your identity through SMS-mail-in.
  4. Create a new password and try again.

If two-factor authentication is disabled, the system may request a backup email or a secret question. On some firmware (for example, MIUI Global), after successful authorization, the phone unlocks automatically.

β˜‘οΈ What to check before unlocking with Mi Account

Done: 0 / 4

⚠️ Note: If the phone is purchased with hands, the previous owner may not have deleted his account from the system, in which case official unlocking is possible only with his participation (you need to untie the device through the personal account Mi Account).

Method 2: Use Fastboot Mode (for unlocked bootloader)

If the bootloader on your Xiaomi is already unlocked, you can bypass the lock via Fastboot.This method is suitable for models with support for fastboot oem unlock, but requires a PC and installed drivers. ADB/Fastboot.

What you need:

  • πŸ’» Computer with Windows/Linux/macOS.
  • πŸ”Œ Cable USB (preferably original).
  • πŸ“¦ Utilities. ADB and Fastboot.
  • πŸ”“ Unlocked bootloader (checked by the command fastboot oem device-info).

Instructions:

  1. Turn off the phone and press Volume Down + Power to log into the Fastboot.
  2. Connect the device to the PC and open the command line (cmd).
  3. Enter the command to check the connection: fastboot devices If the device is determined, continue.
  4. Reset the protection of FRP: fastboot erase frp
  5. Reboot the phone: fastboot reboot

After the reboot, the phone should suggest configuring it as new.This method works on most Qualcomm Snapdragon devices (e.g., the POCO X3 Pro, Redmi K40), but may not work on MediaTek models (e.g., the Redmi 10C).

πŸ’‘

If fastboot erase frp is not supported, try an alternative: fastboot erase persist.This will delete your account link data, but may reset some network settings.

Method 3: Unlocking through EDL (for advanced users)

EDL-Emergency Download Mode is a firmware emergency mode that allows you to overwrite system partitions, including locking. FRP. The method is suitable for Qualcomm devices, but requires special equipment (EDL-cable or Deep Flash Cable and firmware.

Warning: The wrong actions in EDL can turn your phone into a brick. Use this method only if other methods have not worked.

Step-by-step algorithm:

  1. Download the firmware for your model from MIUI Download (select the Fastboot version).
  2. Unpack the archive and delete files with the.mbn extension from the folder (they are responsible for verifying the signature).
  3. Connect your phone to your PC in EDL mode (this may require a short circuit of contacts on the board or a special cable).
  4. Run the firmware through the Mi Flash Tool by selecting the "Clean All" option.

After successful firmware, the phone will be completely reset, including locking Mi Account. However, this method does not work on devices with a locked bootloader and the current version of the anti-rollback (for example, Xiaomi 13 Ultra or Redmi Note 12 Pro+ 5G).

What is an anti-rollback (Anti-Rollback)
This is a protection mechanism that prevents firmware from rolling back to an older version. On anti-rollback devices (such as the Xiaomi 12/13 series), firmware through the old version of the EDL can lead to a permanent lockdown of the bootloader.

Method 4: Bypassing the lock through Xiaomi service centers

If the independent methods did not work, the official service center Xiaomi can help unlock the phone if there are documents confirming the purchase.

ConditionsPossibility to unlockCost (roughly)
The phone is officially purchased (there is a check)βœ… Yes, after checking the documents.Free or ~1000 β‚½
Used device (no check, but there is data of the previous owner)⚠️ Perhaps if the owner untie the account remotely~1500–3000 β‚½
Phone with AliExpress/without documents❌ No (refusal of security policy)β€”
Device in "lost/stolen" status❌ No (blocking at level) IMEI)β€”

To contact the service center:

  1. Find the nearest authorized center on the Mi Service website.
  2. Take your passport, check (or warranty card), phone box.
  3. If the phone is used, ask the previous owner to write a statement of waiver of the rights to the device.

⚠️ Note: In 2026, Xiaomi has tightened the rules: service centers in Russia and the CIS can refuse to unlock if the device was activated in another region (for example, in China or the EU), in which case only contacting Mi Support through international support will help.

Method 5: Alternative methods (at your own risk)

If the official methods did not help, some users resort to unofficial utilities and exploits, we do not recommend using them, but for the sake of completeness, we will tell you about the most common:

  • πŸ› οΈ Availability of Mi Account Unlock Tool or FRP Bypass APK. These programs promise to bypass the lock through vulnerabilities in the MIUI, But often contain malicious code or require root rights. Risk: data theft or permanent locking of the phone.
  • πŸ”„ Custom Recovery firmware (TWRP). In some models (for example, POCO F1, Redmi Note 9 Pro) can be installed TWRP manually delete files /data/system/gesture.key or locksettings.db. Requires an unlocked bootloader.
  • πŸ“‘ Use of the SIM-Original operator cards. On older models (until 2020) insertion sometimes helps SIM-The system can miss the lock if it recognizes the "native" network.

Warning: Most alternative methods violate Xiaomi’s user agreement and may result in:

  • Lose the warranty.
  • IMEI lock (if the phone is listed as stolen)
  • Firmware malfunction.

πŸ’‘

The only legal way to unlock without risk is official Xiaomi support, and all other methods can result in data loss or device breakdown.

How to avoid blocking Xiaomi in the future

To avoid the problem again, follow these rules:

  • πŸ”‘ Untie Mi Account before resetting. Before selling or transferring your phone, go to Settings β†’ Accounts. β†’ Mi Account and click "Exit." Then delete the account through Settings β†’ Memory. β†’ Resetting settings β†’ Delete all accounts.
  • πŸ“± Don't buy used Xiaomi without checking. Before buying, ask the seller to reset with you and make sure the phone doesn't require a password entry after the reboot. Check lock status via ##4636## (Section "Phone Information").
  • πŸ”„ Update regularly MIUI. In new firmware versions, Xiaomi fixes vulnerabilities that are used to bypass the lock. Updates also add legal ways to restore access (for example, through Mi Cloud Find Device).
  • πŸ“ Save data for recovery. Take a picture or take a photo: Mi Account login and password; backup email and phone number; two-factor authentication codes (if enabled).

If you often sell or buy Xiaomi, use the Guest Mode feature (Settings β†’ System β†’ Guest Mode) to allow you to transfer your phone temporarily without the risk of blocking your main account.

Frequent Questions (FAQ)

Can I unlock Xiaomi without losing data?
Any method of unlocking (other than entering the correct Mi Account password) results in a complete reset. If your phone has important files, try retrieving them via ADB in Recovery mode (if it's on) or contact a service center to retrieve the memory chip.
What if the previous owner is not responsible and cannot untie the account?
In this case, you can't officially unlock your phone. Alternatives: Contact the service center with the purchase documents (unless the phone is blacklisted); Use the phone as a candlestick (for example, for a smart home via Mi Home, if features are supported without unlocking); Sell for spare parts (display, battery, camera); Buying used Xiaomi without checking your account is always a risk.
Why is the phone blocked after Fastboot?
This is because: Antirollback β€” firmware old version on the new locks the bootloader. Incomplete reset β€” command fastboot erase frp is not enough, you need to erase persist and metadata. Regional binding β€” some models (for example, Chinese versions) are blocked when you run the firmware global MIUI. Solution: use the full firmware through the Mi Flash Tool with the option "Clean All and Lock" (but this will block the bootloader again).
How to check if the bootloader is unlocked on Xiaomi?
Turn on your phone in Fastboot mode (Loud down + Power buttons). Connect to your PC and type in the command: fastboot oem device-info If the answer is "Device unlocked: true" - the bootloader is unlocked. If "false" is blocked, and you need to get permission from Xiaomi to unlock (via the official website).
Can you unlock Xiaomi with services like iCloud Unlock?
No. Services that offer to unlock Xiaomi for money (especially those advertised as β€œ100% working”) are often fraudulent. They can: Take a prepayment and disappear; install malware on your phone; use illegal methods that will lead to blocking IMEI. The only legal paid service is official support for Xiaomi.