Got your new smartphone? Read ahead to find out how to unlock bootloader on Xiaomi Mi A2. The new Mi A2 is an Android One device made by popular Chinese brand, Xiaomi. Straight off, Android One devices run Google’s vanilla Android OS which leads to faster updates and support. As with all Xiaomi phones, Mi A2 also ships with a locked bootloader which disables any sort of system modification. To unlock it, read our guide ahead. After implementing the procedure, your device will be eligible to install custom ROMs, stock firmware flashing and other system mods.

Unlocking the bootloader compromises security in the form that the phone can be tinkered with when outside the normal OS. Nonetheless, the benefits it comes with do outweigh the downsides. Also, it is to be noted that when you unlock bootloader for the first time, it initiates a factory reset so make sure all your crucial data is safely stored. Read ahead for a step by step tutorial on how to unlock bootloader on Xiaomi Mi A2.

Unlock Bootloader on Xiaomi Mi A2

Disclaimer: All the tools, mods or ROMs mentioned below belong to their respective owners/developers. We ( or the developers are not to be held responsible if you damage or brick your device. We don’t have you on gun point to try out this tutorial 😉

There are tons of useful articles and how-to guides on Team Android for the Xiaomi Mi A2, but we think you might be interested in the following posts:

Xiaomi Mi A2 USB Drivers

You will need to connect your Android phone with the computer. For that, please make sure you have installed the USB drivers for Xiaomi Mi A2 properly. If not, you can download the latest official drivers from our Android USB Drivers section here:

Download Xiaomi Mi A2 USB drivers!

Now, let’s proceed with the tutorial below to unlock Xiaomi Mi A2 bootloader.

How to Unlock Bootloader on Xiaomi Mi A2

We have put together a detailed step-by-step instructions guide on how to unlock bootloader on Xiaomi Mi A2. The process has been revamped recently as you no longer have to fill out application form rather it is all automated.

Please read every line carefully and make sure you read the tutorial once before actually performing it on your Android device.

To Remember:

  • This unlocking bootloader tutorial is only for Xiaomi Mi A2. Please don’t try this on any other variants of the phone.
  • This tutorial has been performed on Windows, but anyone familiar with Fastboot on Mac or Linux can perform this as well. [Read: Download Xiaomi Mi A2 USB Drivers]
  • Make sure you backup all your data in your phone before proceeding as it will erase all data.
  • You will void your warranty by unlocking the bootloader.


  • Xiaomi Mi A2
  • USB cable – Preferably that shipped with the device.

Step 1 – Download the Android SDK / Fastboot and install all the USB drivers. How to set up? Read detailed instructions here: How to Set Up ADB / Fastboot with Android SDK.

Step 2 – Enable USB Debugging mode on your Xiaomi Mi A2 and also, OEM Unlock from Developer Options.

Step 3 – If you already have Android SDK, then you can just download Fastboot and extract it in android-sdk-windows\platform-tools directory. Create directory if not already there.

Step 4 – Make sure you have backup your data as it will be erased. Connect your Pixel 2 / Pixel 2 XL to your computer.

Step 5 – Navigate to android-sdk-windows\platform-tools directory and open Command Prompt (Shift + Right-click > Open Command Prompt).

Step 6 – Type in the following commands and press Enter.

adb reboot bootloader

Step 8 – You now have to wait for the phone to reboot to bootloader. If it doesn’t, you can try running any apps. If it still persists, please redo the previous steps.

Step 9 – Once it does, execute the following command.

fastboot oem unlock

Step 10 – Reboot your smartphone.

fastboot reboot

That’s it! Your Xiaomi Mi A2 bootloader is now unlocked!

Backup and Other Important Tips

Please take a look at the following tips and important points you need to take care of. These are important, as we don’t want anyone losing their personal data or apps.

Always backup your important data that you might need after you install a new custom ROM, an official software update or anything else. Make a backup for just in case, you never know when anything might go wrong. Read: How to Backup Android Apps, Text Messages, WhatsApp, Call History.

If you already have a custom recovery (ClockworkMod, TWRP etc.) installed on your phone, we strongly recommend a backup using that as it creates a complete image of your existing phone set up. [Tutorial: How to Backup Android Phone using TWRP]

A few more optional tips that you should remember:

1. Having problems connecting your Android phone to the computer? You need to enable USB debugging mode. See here: How to Enable USB Debugging — for Gingerbread, Ice Cream Sandwich, Jelly Bean and KitKat.

2. Make sure your Android device is charged up to 80-85% battery level. This might help you: How to Check Battery Percentage. Why? Because, if your phone goes off suddenly while installing a custom ROM, flashing an official firmware update or installing mods etc. — your phone might get bricked or go dead permanently. No one wants that, right?

4. Most of the tutorials and how-to guides on Team Android are for factory unlocked Android phones and tablets. We recommend not to try our guides if your phone is locked to a carrier, unless we have specified the carrier name or device model.

5. [IMPORTANT] Copy all the backup files from your SD card to your computer as internal memory will be wiped clean while unlocking the bootloader.

If you are a developer and would want to unlock the bootloader, we recommend doing that before you set up the Google Play Store, install apps or anything because the security feature in Android clears out everything from your phone when unlocking bootloader of a phone.

You can now install a custom recovery, a custom ROM or any system tweak you like. Just be careful with what you do! 😉


Devoted writer, enjoys developing code. Appreciates excellent food, exceptional coffee and great company. He is also into sublime design and nicely built cars.

1 Comment

  1. My Mi A2 device is stuck on Android One Boot logo screen and I cannot enabled OEM Unlocking. Is there a way to unlock device for flashing without developer options?

    If i run OEM unlock i get the following?

    C:XiaoMiAdb>fastboot.exe oem unlock

    FAILED (remote: Flashing Unlock is not allowed
    finished. total time: 0.007s

Write A Comment