Where to enter the unlock code Xiaomi: a complete guide with photos and nuances

Unlocking the bootloader on Xiaomi smartphones is a must for custom firmware installation, root rights or brick recovery. But even after successfully obtaining the code from the manufacturer, many users face the problem: where exactly to enter this code? The official documentation of the Mi Unlock Tool often keeps silent about the nuances, and incorrect actions can lead to an account lock or reset the device.

In this article, we will look at all possible scenarios for entering an unlock code, from the standard path through the Mi Unlock Tool to alternative methods for devices with a blocked Mi Account. Particular attention will be paid to typical errors (for example, Couldn’t unlock or Current account is different from the account info on the device) and how to circumvent them. If you have already received the code via SMS or in the personal account of Xiaomi, but do not know what to do next – this guide is for you.

1. Standard method: Entering code through Mi Unlock Tool

The official Mi Unlock Tool is the only legal way to unlock the bootloader on most Xiaomi, Redmi and POCO devices. The code you received from the manufacturer is typed here.

Preparation of the device:

Transfer the smartphone to Fastboot mode (turn it off, then pinch Power + Volume down).

- Connect your phone to your PC through the original USB-cable (check that drivers are available) ADB/Fastboot fixed).

- Launch the Mi Unlock Tool (download the latest version from the official website).

2. Authorization and verification of the account:

Log in to the same Mi Account to which your smartphone is tied (if you have not previously done a binding - unlocking will be impossible).

Make sure that the phone settings (Settings β†’ Xiaomi Account β†’ Mi Cloud) have synchronization enabled and the device binding confirmed.

Entering the unlock code:

After successful authorization, the tool will show the Phone Connected message and the Unlock button.

The unlock code is entered automatically - you don't have to copy it manually! The system itself checks for permission from Xiaomi and starts the unlocking process.

If you request manual code entry (rarely), it will be in a separate window with the Verification Code field.

Install the Mi Unlock Tool with the latest version|Link the Mi Account to the device in the settings|Enable debugging on USB unlock OEM|Transfer the phone to Fastboot mode|Connect the original USB-cable-->

Important! If you click Unlock and you have a Couldn't unlock error. Wait 72/168/360 hours, it means you've previously tried to unlock the bootloader and you've got a temporary lock.

2. Alternative ways to enter code (if the Mi Unlock Tool does not work)

In some cases, the official tool may not recognize the code or give out errors. Consider 3 proven alternative methods that will help to bypass typical problems:

  • πŸ”§ Through ADB-Commands: If the Mi Unlock Tool is stuck in the device verification phase, you can manually send the unlock code via the command: fastboot oem unlock-go [your code] Note: this method only works on devices with Global firmware ROM And they may claim root rights.
  • πŸ“± Through the recovery menu (TWRP): In some models (for example, POCO F3 or Redmi Note 10 Pro) the code can be entered in the custom Recovery. TWRP Fastboot Flash Recovery twrp.img. Go to Advanced. β†’ Terminal. Enter the echo command] > /sys/block/mmcblk0boot0/force_unlock.

Through the Xiaomi web interface

i.mi.com

Unlock Status

Mi 8

Redmi Note 7

Mi Unlock Tool|ADB-team|TWRP|Another way.-->

⚠️ Attention: Use of informal unlocking methods (e.g. through EDL-regime) may result in loss IMEI or locking the serial number of the device in the Xiaomi database!

3. Typical code entry errors and how to fix them

Even with the right code entry, users often encounter errors, and here is a table of common problems and solutions:

Mistake.Reason.Decision
Couldn’t unlock. Wait 72 hoursExceeded number of attempts to unlockWait until the time is set (the countdown starts after the last failed attempt).
Current account is different from the account info on the deviceMi Unlock Tool account does not match the phone accountSign in to the same account as in Settings β†’ Xiaomi Account. If your phone is not turned on, restore access via account.xiaomi.com.
Device is not supportedThe phone model does not support unlockingCheck the list of supported devices on en.miui.com/unlock. For Redmi. 6A, Mi A2 Lite and others may be required. EDL-unlock.
Network errorProblems with connecting to Xiaomi serversUse a VPN (we recommend Hong Kong or Singapore). Disable the antivirus and firewall.

πŸ’‘

If Mi Unlock Tool gives Mi Account login failed, try changing your account region to China in your profile settings.

4.Where to enter the unlock code on a locked phone (without access to the system)

This becomes more complicated if your smartphone is locked (for example, after a reset or failed firmware) and you cannot log in to link your account, in which case the unlock code is entered via Fastboot mode, but with additional steps:

1. Account binding check:

If the phone was previously linked to a Mi Account but is no longer turned on, use the Mi Unlock Tool as standard – the code will be applied automatically.

- If you do not have an attachment, you will first have to unlock your Mi Account through Find Device (access to the device is required). email/SMS).

2. Unlock through EDL-The mode (for experienced users):

- Connect your phone to your PC in mode EDL (To do this, press the volume up. + Loudness down + USB-cable).

Use tools like Mi Flash Pro or QFil to firmware a firehose file with an unlock code.

-

⚠️ Attention: Incorrect actions in EDL-The mode can turn the phone into a β€œbrick” without the possibility of recovery even in the service center!

What to do if the unlock code does not come to the mail?
If you requested an unlock code but it didn’t arrive within 10 minutes: 1. Check the Spam folder in your email. 2. Make sure that your Xiaomi account has the current email. 3. Try to request the code again after 24 hours (the system can block frequent requests). 4. If you use a VPN, disable it – Xiaomi servers can block suspicious IP. 5. To speed up the process, link the phone number to your Mi Account – the code can come SMS.

5. Unlock on new Xiaomi models (2023–2026)

Starting with Xiaomi 13, Redmi Note 12 and POCO F5, the company has tightened its unlock policy, requiring:

  • πŸ“… Wait 7 days after linking your account to your device (previously 72 hours).
  • πŸ”’ Proof of identity through passport scan (for some regions).
  • πŸ“± Active use of the phone for at least 30 hours (the system tracks the time of operation).

The unlock code on new devices is entered exclusively through the Mi Unlock Tool, alternative methods (such as ADB or TWRP) are blocked at the firmware level. If you see this device cannot be unlocked error, it means that:

  • The phone model does not support unlocking (e.g. Xiaomi Civi 3 or Redmi K60 Ultra for the Chinese market).
  • The device was purchased less than 30 days ago (check the date of the first activation in Settings β†’ About Phone).
  • The Mi Account has limitations (e.g., it has been blocked for suspicious activity).

πŸ’‘

On 2023-2026 devices, it is impossible to unlock a bootloader without waiting 7 days. Even with an official code, the system will block the attempt if the time condition is not met.

6.What to do after successfully unlocking the bootloader

Once you enter the code and the Unlocked successfully message appears, your Xiaomi smartphone will be reset to factory settings.

  • πŸ”„ Installation of custom firmware: - Download TWRP For your model with twrp.me. - Sweeve the recavers through fastboot flash recovery twrp.img. - Install firmware (such as LineageOS or Pixel Experience) via TWRP.
  • πŸ› οΈ Getting root rights: - Install Magisk through TWRP patchy boot.img. - Check the SafetyNet (Use the Universal SafetyNet Fix module).
  • πŸ”§ Brick recovery: - Sweeve the official firmware through the Mi Flash Tool in Clean All mode. - If the phone doesn't turn on, use EDL-Authorized account mode.

After unlocking the bootloader:

  • Mi Pay and Widevine L1 are disabled (Netflix, Disney+ will work in 480p resolution).
  • MIUI Air Updates (OTA) may not be installed – you will have to sew manually.
  • Some banking applications (for example, Sberbank Online) can block work on unlocked devices.

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock the bootloader without linking the Mi Account?
No. Starting in 2018, Xiaomi requires that the device be linked to an account without it, the unlock code will not be generated. If the phone is locked (for example, after a hand purchase), try to restore access to the previous owner's account or contact the service center with proof of purchase.
How long does it take to unlock the bootloader?
The process of entering the code takes 5-10 minutes, but before that it takes: 7 days of waiting after the account is linked (for new devices). Up to 72 hours to process the code request (sometimes longer). 30+ active phone hours (for models 2023-2026) if the process is interrupted (for example, turn off) USB-cable, the timer will reset and you will have to wait again.
Can I unlock a bootloader on Xiaomi with Chinese firmware (China ROM)?
Technically yes, but there are nuances: On some models (e.g. Redmi) K50 Unlocking is possible only through the Chinese version of the Mi Unlock Tool. SMS-Once unlocked, it is recommended to immediately flash Global. ROM, Otherwise, there may be problems with Google services.
What if the phone doesn’t turn on after unlocking?
If the screen is black or only the Mi logo is lit, try: Swipe the official firmware through the Mi Flash Tool in Clean All mode. TWRP and make a complete reset (Wipe) β†’ If nothing helps, the phone could have moved to the Format Data. EDL-To restore, you will need an authorized Xiaomi account and the Mi Flash Pro program. If you are not sure of your actions, it is better to contact the service center - self-manipulation can aggravate the problem.
How to check if the bootloader is unlocked on Xiaomi?
There are 3 ways: Reboot your phone to Fastboot (Power + Volume Down). If the bottom of the screen says Unlocked, the bootloader is unlocked. Enter the command in the ADB terminal: fastboot oem device-info Look for Device unlocked: true. Install the Bootloader Checker app from Google Play (not all models).