How to unlock Mi Account on Xiaomi with the unlock code: official and alternative methods

Forgot the password from Mi Account or bought a used Xiaomi smartphone with a tied account? Locking the device through Mi Cloud is one of the most reliable protection systems, but also one of the most problematic for users. Even after resetting, the phone can remain locked, requiring the username and password of the previous owner. In this article, we will analyze all official and informal ways of unlocking, including the use of the unlock code that can be obtained through Xiaomi support.

It's important to understand that Mi Account's bypassing methods are constantly changing. What worked in 2022 may not be useful in 2026 because of security updates. We've gathered up-to-date data for June 2026, including nuances for devices on MIUI 14/15 and new models (Xiaomi 14, Redmi Note 13, POCO F6). If your phone is locked after a firmware or reset, here's the solution.

Why is Xiaomi blocking the device with Mi Account?

Xiaomi’s Mi Cloud Lock (or FRP) system was introduced to combat smartphone theft, and the device is automatically linked to an account when:

  • πŸ”Ή first-induction of a new phone;
  • πŸ”Ή Adding a Mi Account in the settings;
  • πŸ”Ή activation of the function Find the device;
  • πŸ”Ή reset to factory settings (if the account was previously linked).

Once reset, the phone requires you to enter the Mi Account, which was the last one on it. If you don’t know the password (for example, you bought a phone with your hands), you can only unlock it through the official unlock code or alternative methods. Xiaomi does not provide β€œmaster codes” or universal passwords – each code is generated individually for the IMEI of the device.

⚠️ Warning: Buying an unlock code from third parties (AliExpress, forums, Telegram) is fraught with fraud. The official code can only be obtained through Xiaomi support or authorized service centers. Using pirated codes can lead to complete blocking. IMEI.

Official way: Getting an unlock code through Xiaomi support

This is the only legal method that is guaranteed to work on any Xiaomi, Redmi or POCO device, which takes 3 to 14 days and requires proof of ownership.

Step 1: Preparation of documents

You'll need:

  • πŸ“„ Check or purchase invoice (if the phone is new);
  • πŸ“„ Contract of sale (if purchased from hand);
  • πŸ“„ Box with IMEI (must coincide with IMEI phone);
  • πŸ“„ Passport (for proof of identity).

Step 2: Appeal for support

Go to the official Mi Account website, select Help β†’ Unlock Device. Fill out the form by specifying:

  • πŸ“± Phone model (e.g. Xiaomi 13 Ultra);
  • πŸ”’ IMEI (You can find it in *#06# or on the box);
  • πŸ“§ E-mail for communication.

Step 3. Waiting for code

Xiaomi support checks documents manually, and if all is well, you will be sent a unique unlock code (usually 16-20 characters) and instructions for its use, which is valid once and only for the specified IMEI.

πŸ“Š How You Got a Locked Xiaomi Phone?
I bought it by hand.
Inherited/given
Forgot my password.
Another option

How to enter the unlock code on a locked Xiaomi phone

Once the code is received, you just have to apply it. MIUI:

For MIUI 12-15 (new devices):

  1. Turn on your phone and wait for the Mi Account lock screen.
  2. Click Forgot Password? or Unblock through the code.
  3. Enter the resulting code in the Unlock Code field.
  4. Confirm unlocking and the phone will restart.

For older versions (MIUI 10–11):

  • πŸ”Ή Connect your phone to Wi-Fi (if required).
  • πŸ”Ή On the lock screen tap on Additional settings.
  • πŸ”Ή Select Unlock through the code and enter it.

If after entering the code, the phone asks for a password again - check the correctness of the input (the registry is important!) or contact support again.

Internet connection (Wi-Fi/mobile data)| IMEI matching code | Correct register of characters | Battery charge > 50%-->

Alternative methods to unlock Mi Account (without code)

If the official code is not available (e.g., no documents), you can try to bypass the lock. These methods do not guarantee 100% results and can lead to data loss or a "brick" of the device. Use them at your own risk!

Method 1. Fastboot reset (for older models)

It works on devices up to Xiaomi Mi 9/Redmi Note 8 on MIUI 10–11:

  1. Turn off the phone.
  2. Press Power + Volume Down to log in to Fastboot.
  3. Connect to the PC and execute the command: fastboot oem clean_frp
  4. Reset the device.

Method 2. Bypassing EDL-Regime (requires an authorized account)

For new models (Xiaomi) 12/13/14, Redmi Note 11/12/13) need an authorized EDL-Account (can be purchased from trusted vendors:

  • πŸ”Ή Put the phone in mode. EDL (via testpoint or adb reboot edl).
  • πŸ”Ή Use the Mi Flash Tool to run the persist partition.
  • πŸ”Ή Delete the FRP files manually.

⚠️ Attention: Use EDL Without authorization, the bootloader can permanently lock on new devices (Xiaomi 14, Redmi Note 13 Pro).+) This method only works with official permission from Xiaomi.

Method 3: Programs for circumventing FRP

There are some software like Mi Account Bypass Tool or FRP Hijacker, but they are:

  • 🚫 Often contain viruses;
  • 🚫 They only work on older versions. MIUI;
  • 🚫 Could lead to a blockage. IMEI.
List of models on which FRP circumvention is possible without code
Xiaomi Mi A1/A2 (Android One) Redmi 4X/5/5A/6/6A (MIUI 9-10) POCO F1 (until upgrade to MIUI 12) Mi 8/8 Lite (requires a firmware rollback)

What to do if the unlock code does not work?

Sometimes even the official code doesn't work.

Problem.Possible causeDecision
Code doesn't fit.Error in IMEI or modelCheck the data in the support request
Phone asks for password after codeIncomplete FRP resetRepeat the code entry or make a complete reset.
The code was used earlierSingle-use codeRequest a new code in support
Network input errorRegional lockdownUse a VPN (such as Hong Kong)

If the code doesn’t work, contact Xiaomi support again with a screenshot of the error, and 80 percent of the time, the problem is solved by issuing a new code.

πŸ’‘

Before contacting the support, check if yours is blocked. IP address - some regions (e.g. Russia) may have restrictions on unlocking. VPN with servers in Hong Kong or Singapore.

How to avoid blocking your Mi Account in the future?

To avoid the problem again:

  • πŸ” Untie your account before selling your phone: Settings β†’ Mi Account β†’ Delete the account.
  • πŸ“ Keep your purchase documents (especially when buying from hand).
  • πŸ”„ Update. MIUI β€” New versions fix vulnerabilities to bypass FRP.
  • πŸ”’ Use a backup email to restore your password.

If you buy a used Xiaomi phone, be sure to check the lock status through the service IMEI.info or the official website of Xiaomi. Device with active lock Mi Cloud can not be unlocked legally without the documents of the previous owner.

FAQ: Frequent questions about unlocking Mi Account

Can I unlock Mi Account without code and without data loss?
No. Any method of circumventing FRP requires a device reset, which results in the deletion of all data. The only way to save files is to recall the password from the original Mi Account or to get an unlock code from the previous owner.
How much does the official unlock code cost?
The official code is provided free of charge, but only with proof of ownership. If you use informal services, the price can reach 1000-3,000 rubles (without guarantees).
Does unlocking through Xiaomi service centers in Russia work?
Authorized Xiaomi SCs in Russia can help with unlocking, if you have one: πŸ“„ original check or contract of sale; πŸ“± box IMEI; πŸ†” passport of the owner. The cost of the service is from 500 to 1500 rubles.
Can I unlock Mi Account on a phone with a broken screen?
Yes, but it's harder. Options: Connect your phone to your PC via ADB and use commands to enter code. If the sensor is working, connect your mouse through OTG. Contact the service center to replace the screen before unlocking.
What happens if you enter the unlock code 10 times in a row incorrectly?
On new devices (Xiaomi 12 and later), after 5-10 failed attempts, the account is blocked for 24 hours, and on older models, a full IMEI lock can work, which requires repairs at the service center.

πŸ’‘

The only legal and secure way to unlock is the official code from Xiaomi, and alternative methods can lead to loss of warranty, blocking IMEI or β€œbricking” the device.