First, a small but important correction: you cannot switch off or remove a Xiaomi bootloader. It is the startup program that checks and launches Android. What people usually mean by “disable the bootloader” is relock it—return the phone to its locked state after it has been unlocked.
Relocking can improve the device’s security and restore some normal startup protections, but it is not a harmless toggle. If Android, the recovery image, or another critical partition has been modified—or if the installed firmware is for the wrong model or region—the phone may fail to boot. Follow the steps below only if you understand that risk and have a verified backup.
Before you begin: decide whether relocking is right for you
A locked bootloader helps prevent unauthorized changes to the operating system. It may also be required for certain services or for a phone you plan to sell. On the other hand, relocking removes the freedom to boot custom software. If you use a custom ROM, root access, a custom recovery, or modified system partitions, do not relock yet.
- Back up your data. Relocking commonly triggers a factory reset, which erases local files, apps, and settings.
- Check the exact model. “Xiaomi” is not enough: record the complete model name and codename, and confirm the device’s sales region.
- Make sure the phone is stable. It should boot normally, have sufficient battery, and be recognized by a reliable computer and USB cable.
- Keep account details handy. After a reset, Android may ask for the Google or Xiaomi account previously used on the phone.
The safest route: restore official firmware, then relock
The safest general approach is to return the phone to complete, official firmware made for that exact device, and only then use Xiaomi’s supported relocking option. Xiaomi’s tools and policies can change between models, regions, and software versions, so read the instructions supplied for your particular device rather than assuming that one command works for every phone.
- Identify the device and firmware. Check the model in Settings, on the original packaging, or in the manufacturer’s device information. Match the firmware to both the model and its intended region. Similar-looking model names are not proof of compatibility.
- Download an official fastboot ROM. Use Xiaomi’s official support resources or another source you can independently verify. Avoid repacked packages, “one-click” relock utilities, and files advertised for a different model.
- Restore stock software. If the phone has a custom ROM, root, custom recovery, or modified partitions, restore the full official ROM using Xiaomi’s documented method for that model. A partial restoration may leave an incompatible component behind.
- Inspect the flashing options carefully. Where Xiaomi’s official flashing tool offers choices such as “clean all” and “clean all and lock,” the latter is specifically intended to restore the locked state—but use it only with the correct, complete official ROM. “Clean all” alone may leave the bootloader unlocked.
- Let the process finish without interruption. Do not unplug the phone, close the tool, or let the computer sleep while flashing. The first reboot can take several minutes.
- Complete setup and verify. After the reset, set up Android and check the device’s bootloader status using the method documented for your model. Do not treat a successful boot alone as proof that every partition is original.
What about using a Fastboot command?
Guides on the internet may suggest commands such as fastboot flashing lock or fastboot oem lock. These are not interchangeable guarantees for every Xiaomi model, firmware version, or region. Running a locking command against a phone with mismatched or modified firmware can make it unbootable. Do not copy a command simply because it worked for someone else. Use a command only when Xiaomi’s instructions for your exact device explicitly call for it, and only after restoring the complete matching stock software.
Likewise, avoid scripts that claim to relock a phone without checking its model or installed partitions. A short command can make a long repair—or data recovery—impossible.
What relocking does—and does not do
Relocking changes the bootloader’s security state. It does not remove the bootloader, turn off Android’s startup process, or automatically restore modified software. Think of it as closing the gate, not rebuilding the road behind it. The firmware must already be suitable for a locked device.
Relocking also does not guarantee that every banking app, payment service, or integrity check will work. Those services can consider many factors, including software version, security updates, region, and device certification. Do not rely on a bootloader change alone to solve an app’s security warning.
If something goes wrong
- The phone returns to Fastboot: do not keep trying random lock commands. Confirm the model and firmware, then consult Xiaomi support or a reputable repair service.
- It asks for account verification: use the Google or Xiaomi account previously associated with the phone. A factory reset does not remove account-protection checks.
- The tool reports a region or model mismatch: stop. Do not force the flash or select a ROM just because its version number looks close.
- The phone will not start: avoid repeated attempts that could erase further data. Seek help from a qualified technician familiar with Xiaomi devices.
Quick checklist
Before relocking, you should be able to answer “yes” to all of these: Is this the exact official ROM for my model and region? Are all custom modifications removed? Have I backed up everything important? Am I following instructions for this specific device? If any answer is “no” or “not sure,” stop and keep the bootloader unlocked until you can verify the details.
In short: you cannot disable a Xiaomi bootloader; you can relock it. The safe order is back up → restore complete, matching official firmware → use the model-specific official relock method → verify. When in doubt, do not lock: an unlocked phone that still boots is generally easier to recover than a locked phone with incompatible software.





1 Comment. Оставить новый
This guide does the rare, useful thing: it turns a dangerous button into a decision tree, and explains why “relock” is not the same as “disable.” The backup and exact-model warnings are the seat belt before the engine starts. One loose thread: the final sentence cuts off just as the supported relocking option comes into view—an abrupt cliffhanger for a guide about avoiding unpleasant surprises.