Since the inception of these Android One devices, many people were of the notion that we no longer need to unlock, root and perform other such operations on our device, right? Wrong! Even after the purchase of an Android One device, you would probably want to tweak your device upto the maximum possible extent- so as to extract as much from your device as possible. This is because by now you must be bored by these monthly updates.|
And I am in no way blaming the OEM's because they too cant give major UI overhaul to your device each month and as a result you are only left with these security patch updates each month.
Enough of the talks. Lets jump right into the bagon wheel and start the process of tweaking our system!
Also note that our device has two partitions, A and B, so many of the online guides would confuse you regarding chosing the inactive slot then the active and so on and on. BUT THIS GUIDE IS FREE FROM ALL SUCH THINGS! CHEERS :)
* UNLOCKING Mi A2:
fastboot flashing unlock
fastboot flashing unlock_critical
SIDE NOTE: Many sources would rather recommend you to type in the below code (and probably many of you might have even used only the below code and never heard of the above two):
fastboot oem unlock
But trust me the above two codes are the most fool-proof method of unlocking your device, be it of any Android version.
* INSTALLING CUSTOM RECOVERY:
My method involves a two step process-- first we temporarly boot the recovery and then permanently install it
In order to root our device, flash custom roms, modules, etc we need to flash a custom recovery. So follow the below steps:
fastboot boot recovery recovery.img
adb sideload recovery.zip
NOTE: If you are on Android Oreo or any version before that (Android 8.1 or less) you can skip this part and go to Rooting, otherwise if your on Andorid Pie (9.0) you need to first decrypt the data as TWRP cannot decrypt the storage (/data partition) on Android Pie. Follow the below steps:
Go to TWRP by turning off device and then pressing Vol Up + power Button together.
Thats It! Now you have successfully Unlocked the Bootloader, Installed Custom Recovery and Rooted your Device! Feel free to drop your concerns in the comment box. Happy to Help :)
Also, if I get many requests, I would write another thread regarding how to root and install custom recovery using the SLOT A/B (or Partition A/B) method.
Do Favorite This Thread If It Helped You. Thanks ;)
In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .