[TUTORIAL] UNLOCK, RELOCK and ROOT XIAOMI MI A1


What does this tool do?An one stop solution for everything. This tool automates almost all the processes available for our device. Ranging from unlocking bootloader to rooting the mobile (even custom recovery will be added once it's available).

Requirements:• Xiaomi Mi A1 device 
• Proper drivers already installed in your computer
• ADB drivers should be installed (included in new version)
• My tool
• And finally some patience 

Instructions:1) Enable USB debugging in your mobile and connect it to your computer.
2) Download my tool, & extract the zip somewhere in your computer.
3) Run the AIO tool.
4) Navigate through the menu, & choose the option you want to execute.
5) For rooting please refer to 2nd post.
5) Sit and relax while the program will take care of the rest.

Rooting Guide: 1) Switch on the mobile.
2) Download patched boot.img (link in 1st post) of your present build, and extract that zip to image folder of my AIO Tool.
3) Open the latest version of my tool.
4) Select Root option from menu & follow the instructions.
5) After everything, when your phone boots up, use FlashFire app to install SuperSu. To do so, select the latest SuperSu zip in flashfire, & then go to EverRoot tab & enable Inject SuperSU option & then flash.
6) Voila! Your phone is rooted now. 

Download Link: 
• MiA1 AIO Tool
• Patched boot.img



FAQ:
1. Will this void my warranty?
A: According to some, unlocking bootloader doesn't affect your warranty. But there's no guarantee that you'll not lose warranty

2. Does this erase any data?
A: Nope. Nothing gets erased.

3. Will I receive OTAs after this?
A: Yes, you'll recieve official OTAs as long as you have stock recovery installed. But there are chances that after rooting if you install any OTA then it might brick your mobile.

4. Can I un-root my mobile?
A: Yes, you can. The option will be added in coming updates.
5. Will this work for Mi 5x also?
A: Nope. This is Mi A1 exclusive.


SOURCE:
XDA DEVELOPERS MI A1