How to lock the bootloader on Xiaomi Mi Max 2: all working methods

Xiaomi Mi Max 2 is still a popular device among Android customization enthusiasts, but not all users know that an unlocked bootloader can cause serious security problems. If you previously unlocked the bootloader to install custom firmware or root rights, but now want to return the device to a factory state, locking the bootloader will be a must. In this article, we will analyze all the current ways of blocking, taking into account changes in Xiaomi policy over the past years, including bypassing typical errors like Couldn't lock or Device is not bound.

It is important to understand that the process of locking the bootloader on the Mi Max 2 (codename oxygen) has nuances associated with the version. MIUI, For example, since 2021, Xiaomi has tightened the verification of device association to the account, so the standard instructions from 2018-2019 may not work. MIUI 12.5โ€“14 and prepared step-by-step guides to address these changes.

Before you start, check:

  • ๐Ÿ”น Version MIUI: Settings โ†’ The phone. โ†’ Version. MIUI. If you are below 12.0, update first.
  • ๐Ÿ”น bootloader status: Turn off the phone, press Volume down + Power โ€“ if you see the Unlocked sign, the bootloader is unlocked.
  • ๐Ÿ”น Account binding: Device must be tied to Mi Account for at least 72 hours (rule in force from 2020).

Why you should block the bootloader on Xiaomi Mi Max 2

Unlocked bootloader opens up wide opportunities for customization, but at the same time creates risks:

  • ๐Ÿ›ก๏ธ Malware Vulnerability: Attackers can install malware via fastboot even without unlocking the screen.
  • ๐Ÿ”„ Problems with OTA-Updates: Xiaomi blocks automatic updates on devices with unlocked bootloader.
  • ๐Ÿ“ฑ Warranty breach: Official service centers may refuse repairs if they find traces of unlocking.
  • ๐Ÿ”‹ Unstable work: Some functions MIUI (Find Device or Second Space, for example, are not allowed to unlock devices.

On the Mi Max 2 with the unlocked bootloader, you canโ€™t activate Mi Pay (contactless payments) โ€“ a hardware limitation that canโ€™t be circumvented even by flashing it, and itโ€™s worth considering that some banking applications (such as SberBank Online or Tinkoff) can block work on devices with the unlocked bootloader, recognizing them as โ€œunsafeโ€.

If you plan to sell or transfer your phone, locking the bootloader is a must, the new owner will not be able to fully use the device without being linked to your Mi Account, which is fraught with conflict, and once the bootloader is locked, all settings are automatically reset. TWRP Magisk, which makes it easier to prepare your phone for transmission.

๐Ÿ“Š You have unlocked the bootloader on your Xiaomi for
Custom firmware installations
Obtaining root rights
Software testing
The other.
I didn't unlock it.

Preparing for the lock: what to do in advance

Before locking the bootloader on the Xiaomi Mi Max 2, several critical steps must be taken, neglecting them can lead to a "brick" (complete failure) of the device.

โ˜‘๏ธ Preparation for loader lock

Done: 0 / 5

Backup is the most important step. Locking the bootloader will result in a complete reset of the phone. Use Mi Cloud or third-party utilities like Swift Backup.

  • ๐Ÿ“ pup DCIM (photo).
  • ๐Ÿ“ž Contact and SMS (export to.vcf and.xml).
  • ๐ŸŽฎ Save games (use Helium or root backup).
  • ๐Ÿ”‘ Wi-Fi passwords (save the list of networks in a text file).

With version MIUI 13+ Xiaomi has introduced an additional firmware stability check. If your device is running custom or modified firmware (such as LineageOS or Pixel Experience), you must return the stock before locking the bootloader. MIUI. For that:

  1. Download the latest fastboot firmware for Mi Max 2 (oxygen code) from en.miui.com.
  2. Unpack the archive and use the Mi Flash Tool to run your phone in clean all mode.
  3. After the firmware wait for the first system boot and link the device to Mi Account.

โš ๏ธ Note: If you block the bootloader on the firmware with modified boot.img (For example, after installing Magisk, the device is guaranteed to go to bootloop state, in which case you will need to re-unlock and firmware stock boot.

Method 1: Lock the bootloader through the Mi Unlock Tool (official method)

This is the most reliable method recommended by Xiaomi. It works on all versions. MIUI, requires compliance with several conditions:

  • ๐Ÿ“ฑ Device tied to Mi Account for at least 72 hours.
  • ๐ŸŒ Mobile Internet or Wi-Fi enabled (for check by Xiaomi servers).
  • ๐Ÿ–ฅ๏ธ Mi Phone Manager drivers installed on PC and antiviruses disabled.

Step-by-step:

  1. Download the latest version of the Mi Unlock Tool (at 2026 โ€” v6.5.406.24).
  2. Install the program and run it on behalf of the administrator.
  3. Sign in to your Mi Account (should match your phone account).
  4. Turn off the Mi Max 2 and press the Volume down + Meals to enter the Fastboot.
  5. Connect your phone to your PC through the original USB-cable.
  6. In Mi Unlock Tool, press Unlock โ€“ the program will automatically determine the status of the bootloader.
  7. If the device is tied correctly, a Lock button will appear (in older versions of tools it is not โ€“ use fastboot oem lock manually).
  8. Confirm the lock and wait for the reboot (it will take 2-5 minutes).

If you see a Couldn't lock error instead of a Lock button, the device is not bound to this account, follow these steps:

  • ๐Ÿ”„ Re-connect the device to your account: Settings โ†’ Xiaomi account โ†’ Get out, then come back in.
  • โณ Wait 72 hours from the moment of binding (even if the device was previously tied).
  • ๐Ÿ“ก Check your phoneโ€™s internet connection (Fastboot doesnโ€™t need internet, but itโ€™s a must at the binding stage).

๐Ÿ’ก

If the Mi Unlock Tool gives you a No command error when connecting your phone, try using another one. USB-cable or port on a PC, often the problem is an unstable connection.

Mistake.Reason.Decision
Couldn't lockThe device is not tied to the accountRe-tied and wait 72 hours
Device is not boundAccounts on PC and phone are differentLog in to one account everywhere
Mi Unlock stuck at 50%Blocking with antivirus or firewallDisable protection on PC
This device is lockedThe bootloader is already locked.Check status on Fastboot

Method 2: Locking through Fastboot (manual method)

If the Mi Unlock Tool doesn't work or it's not working, you can lock the bootloader manually through fastboot, which requires command line knowledge, but is 100% reliable.

  • ๐Ÿ–ฅ๏ธ PC with installation ADB Fastboot (you can download it in Android) SDK).
  • ๐Ÿ“ฑ Xiaomi Mi Max 2 in Fastboot mode.
  • ๐Ÿ”Œ Original. USB-cable (important for stable connection).

Instructions:

  1. Open the command line (Win) + R โ†’ cmd) on behalf of the administrator.
  2. Go to the folder from fastboot (for example, cd C:\platform-tools).
  3. Connect your phone in Fastboot mode and check the connection with the command: fastboot devices must display the serial number of the device.
  4. Block the bootloader with the command: fastboot oem lock
  5. Confirm the action on the phone (if you receive a request).
  6. Reboot the device: fastboot reboot

If there is an error after the fastboot oem lock command FAILED (remote: oem lock is not allowed, which means that:

  • ๐Ÿ” Device not tied to Mi Account (solution: tether and wait 72 hours).
  • ๐Ÿ“ฆ Unofficial firmware installed (solution: flash stock MIUI via Mi Flash Tool).
  • ๐Ÿ”„ The bootloader has already been blocked before (check the status in Fastboot).

โš ๏ธ Note: On some versions MIUI 14 command fastboot oem lock can lead to reset IMEI. To avoid this, save before blocking. IMEI (type *#06# and folder EFS (use TWRP or ADB).

To check the status of the loader after blocking, use the command:

fastboot oem device-info

In the conclusion, find the lines:

(bootloader) Device unlocked: false


(bootloader) Device critical unlocked: false

If both parameters are false, the bootloader is successfully blocked.

๐Ÿ’ก

The manual method via fastboot oem lock works even on devices where the Mi Unlock Tool is emitting errors, but requires prior firmware stock. MIUI.

Method 3: Blocking through EDL Mode (for "bricked" devices)

If the Mi Max 2 stopped turning on after a failed lock (for example, got stuck on the Mi logo or left for bootloop), recovery may be required through the system. EDL Mode (Emergency Download Mode) allows you to flash the device at a low level even if the bootloader is damaged. EDL.

Step-by-step:

  1. Download the Mi Flash Tool and EDL-Firmware for Mi Max 2 (look for files with the.tgz or.tar extension).
  2. Turn off the phone and connect it to the PC, holding Volume up + Loudness down + Food (to be defined as Qualcomm) HS-USB QDLoader 9008).
  3. In the Mi Flash Tool, select the downloaded firmware and press Refresh โ€“ the device should appear as COM-port.
  4. Press Flash and wait until the process is completed (it will take 5-10 minutes).
  5. After the firmware, the loader will be automatically blocked.

If the Mi Flash Tool is an error SLA Auth Error means your account is not authorized. EDL. Decisions:

  • ๐Ÿ”‘ Buy authorization from official Xiaomi resellers (cost) ~$10โ€“20).
  • ๐Ÿ› ๏ธ Contact the service center with a request to flash the device in EDL.
  • ๐Ÿ”ง Use informal EDL-Loaders (risky, can lead to a full breeze).

What if the phone doesnโ€™t turn on after EDL?
If, after the firmware in EDL Mi Max 2 does not respond to the power button, try: 1. Turn off the battery for 10 minutes (take the phone apart or wait for the full discharge). 2. Connect to charging for 30 minutes, then try to turn on. 3. Repeat the firmware in EDL different version MIUI. If nothing helps, the hardware module is defective (for example, PMIC), repair.

Frequent mistakes and their solutions

When blocking a bootloader on Xiaomi Mi Max 2, users face typical problems, and we have collected the most common errors and ways to fix them:

Mistake.Probable causeDecision
Couldn't receive hello packetProblems with USB-joiningTry another cable/port, turn off hubs
This device is bound to another accountPhone tied to another Mi AccountReset your phone via Fastboot (fastboot erase userdata)
Anti-rollback check failTrying to flash the old version of MIUIUpdate to the latest version before blocking
Device is not unlockedThe bootloader is already locked.Check the status in Fastboot (fastboot oem device-info)
Mi Unlock stuck at 99%Blocking with antivirus or network screenTurn off the protection on the PC and try again

The anti-rollback check fail error is particularly noteworthy. It occurs when you try to flash the version. MIUI It's older than the one that's installed right now, like if you're on a phone. MIUI 14, and you're trying to get it back. MIUI 12, the system will block the firmware:

  1. Download the latest available version MIUI For the Mi Max 2.
  2. Fastboot with a full reset (clean all in the Mi Flash Tool).
  3. Only then do you block the loader.

If the phone is locked on the Mi logo, it means the firmware has been damaged.

  • ๐Ÿ”„ Enter Fastboot (Loudness Down) + Nutrition).
  • ๐Ÿ“ฅ Swipe stock firmware through the Mi Flash Tool (select clean all and lock).
  • ๐Ÿ”‘ If it doesnโ€™t help, use it. EDL Mode (see previous section).

What to do after successful blocking

Once the bootloader is locked, the Xiaomi Mi Max 2 will return to factory condition.

  • ๐Ÿ”„ Restore data from backup (use Mi Cloud or local backups).
  • ๐Ÿ”’ Set up protection: Set up PIN-Activate Find Device in Settings โ†’ Xiaomi Account. Enable data encryption (Settings) โ†’ Additionally. โ†’ Encryption).
  • ๐Ÿ“ก Update your firmware to the latest version through Settings โ†’ Updating the system.
  • ๐Ÿ›ก๏ธ Check Security: Start Google Play Protect (Settings) โ†’ Google โ†’ Install antivirus (e.g. Malwarebytes).

If you blocked the bootloader before selling the phone, do a full reset:

  1. Go to Settings โ†’ Additional โ†’ Recovery and Reset.
  2. Select Reset and mark Clear Internal Memory.
  3. After reset, untie Mi Account in the account settings.

To make sure that the bootloader is actually locked, do:

  1. Turn off the phone.
  2. Press Volume Down + Power to enter Fastboot.
  3. Check status: If there is no Unlocked label at the bottom of the screen, the bootloader is locked.

โš ๏ธ Warning: Once the bootloader is locked, all data on the phone will be deleted, including files in the internal memory. If you do not backup, it will be impossible to restore them. Also, please note that some banking applications (e.g. SberBank Online) may require additional security checks after a reset.

FAQ: Answers to Frequent Questions

Can I block the bootloader without linking to the Mi Account?
No, from 2020, Xiaomi requires that you bind your device to your account at least 72 hours before locking. Without that, neither the Mi Unlock Tool nor the manual commands of fastboot oem lock will work. If the phone is not tied, first do the binding and wait 3 days.
What happens if the blocking process is interrupted?
If you break the lock (for example, turn off the cable or pull out the battery), the device can go to a soft-brick state (cyclic reboot) or completely stop turning on (hard-brick). EDL Mode or contacting a service center.
How to know if the bootloader is locked without turning off the phone?
Check the status through ADB: Connect the phone to the PC with debugging enabled USB (Settings โ†’ For developers โ†’ Debugging by USB). Enter the command: adb shell getprop ro.boot.verifiedbootstate If the output of orange - the bootloader is unlocked if green - blocked.
Can I unlock the bootloader after blocking?
Yes, but it will require a Mi Account binding and 72 hours waiting (if the account is not authorized).The unlocking process is identical to the original: Apply for unlock through Xiaomi's website. Connect your phone to Fastboot and use the Mi Unlock Tool. Confirm unlock. Keep in mind that after unlocking all data will be deleted again.
Why do some functions (such as Mi Pay) not work after blocking?
Certain functions MIUI, Mi Pay, Find Device or Second Space require a locked bootloader and official firmware.If they don't work after locking: Make sure the phone has a stocking device installed. MIUI (Check the firmware region: Mi Pay requires firmware for Global or EEA. Update all apps via Google Play. reset settings (Settings) โ†’ Additionally. โ†’ If the problem persists, contact Xiaomi support with the model and firmware version.