Unlock the bootloader of Xiaomi Mi A1

NOTE: Unlocking the bootloader of Xiaomi Mi A1 won’t void the warranty.

  1. First of all download and install the ADB drivers linked here.
  2. Download and extract the contents of ADB and Fastboot archive linked here and move it to C:/ drive.
  3. Open the ADB directory present in C: drive. Inside the folder, hold Shift key and right click, then select “Open command window here” or “Open Powershell window here”.
  4. Turn off your phone. Press and hold “Vol -” + “Power” buttons together for 3-4 seconds to boot into fastboot mode.
  5. Then connect your phone to PC.
  6. In the command window of your PC, type the command fastboot oem unlock and press Enter. Then type fastboot reboot to reboot your phone normally.
  7. That’s it. Now you’ve successfully unlocked the bootloader of your Mi A1.

 

Root the Xiaomi Mi A1 via Magisk

  1. Download the latest TWRP from the XDA thread linked here and Magisk linked here. NOTE: (1) Its assumed that you’ve setup adb and fastboot drivers and executables as mentioned above. (2) There are two types of file, one is a .img file and other one is a .zip file. For now, only the .img file is required.
  2. Copy the magisk flashable zip file to the internal storage of your device.
  3. Open the ADB directory present in C: drive. Inside the folder, right click and select “Open command window here” or “Open Powershell window here”.
  4. Turn off your phone. Press and hold “Vol -” + “Power” buttons together for 3-4 seconds to boot into fastboot mode.
  5. Then connect your phone to PC.
  6. Copy the downloaded TWRP to the adb folder.
  7. In command window, type fastboot boot twrp-recovery-file-name.img
  8. Then your phone will boot to recovery mode.
  9. Goto Install, select ther Magisk zip file and swipe to flash it.
  10. Then click on Reboot System and now you’re rooted.
  11. You can now find Magisk Manager application present on your device which manages the root permissions.

Leave a Reply