Gaining root access unlock the door of an Android device towards customization and modification. You get system file access of your device as you become a superuser. Once you root your phone, you will be able to install Custom Recoveries like TWRP with which you can try out some custom build ROMs and MODs. XDA developer forum is the big source of Custom ROMs, MODs, Themes, etc., handled by many developers. Most of their Applications need root access. So, in order to get the full benefit of the developer community, you must root your device and install a Custom Recovery like TWRP. In this guide, you will be able to learn how to root Xiaomi Mi A2 and install TWRP recovery on it.
Xiaomi Mi A2 is the successor of Mi A1. Like Mi A1, this device comes with stock Android too. Those who prefer pure Android over Xiaomi’s Chinese MIUI skin, show go for Mi A2 over other devices from Xiaomi.
Anyway, come back to the topic, and proceed with rooting this phone. After rooting, you will be able to install TWRP image file to get the recovery installed. This recovery will not only help in installing Custom ROM but also gives some option to create a full backup of a device. In case anything goes wrong, you can simply restore the backup and get your device life back.
WARNING: All the custom ROMs, Official Firmware, How-to guides, tutorials, roots, hacks, and tricks mentioned on our site belong to the respective developers. We are not responsible if anything goes wrong with your device. Perform it at your own risk.
Root Xiaomi Mi A2
For rooting, we will be using Magisk Systemless root utility. The latest version is 16.7 right now, and you can download from the link below.
Make sure your phone has at least 80 – 85% charge. If not, please do charge it before starting the experiment.
You need to enable USB Debugging mode to connect your Android phone to computer. (Settings > About Phone > Build number > Tap it 7 times to become developer; Settings > Developer Options > USB Debugging).
But before starting the tutorial, we suggest you to backup your important documents from the device and make a copy of it to your computer. On performing our experiment, your device will get wiped, and you will lose everything from the phone. We don’t want that. in that case, we have a list of Application that may help you on creating backup within the phone. Later on, you can copy the files to computer for a safe side.
Once you are sure that you are done with the backup stuff, please proceed to the tutorial below on How to Root Xiaomi Mi A2 quickly.
How to root Xiaomi Mi A2 and Install TWRP
We have mentioned the full step-by-step instructions on How to root Xiaomi Mi A2 using Magisk tool and install TWRP Custom recovery. If you are entirely new to rooting, flashing a Custom ROM or an Official Firmware, please read the entire tutorial once before actually performing it on your device.
Tutorial: How to install TWRP on Xiaomi Mi A2
Download all the required files from the above-given links to your device. Also, keep a copy of the TWRP image file on your computer.
Connect your phone to the computer using compatible USB cable (preferably, the official one, provided by Xiaomi with the phone box).
Open Command Prompt on the same directory as TWRP file. Press the SHIFT key and right-click on an empty space. Select “Open PowerShell window here” or “Open command window here” from the pop-up menu.
On the PowerShell Window, type the following command and HIT enter:
adb reboot bootloader
(This will reboot the device into fastboot/bootloader mode.)
└ If you get a permission pop-up on your device to “Allow USB debugging”, tap OK.
(The command ends with the file name. If the file name changes in a newer version, type “fastboot flash boot_b <your-changed-name here.img”)
Set the B partition as the active partition by using the following command:
fastboot set_active b
Once the file is flashed, reboot your device! Carefully hold the Volume Up button now. While holding, type the following command and HIT enter to reboot into TWRP recovery.
TWRP Recovery: In order to reboot into recovery mode, use Volume rockers to select “Recovery mode” option and press Power button to select. You will get access to TWRP.
You will be asked to enter your device Password/PIN/Pattern. Enter it to let system decrypt in recovery mode. If you don’t have any password, it won’t ask.
⌊ To change language from Chinese to English, use this guide.
Now, go back to main menu (TWRP Home) and tap on “Install” button. From the list, choose the DM verity disabler ZIP file that you have copied in Step 1. This step will prevent your device from boot-looping.
So, you are done here! No further steps are required for TWRP image file.
Activate Slot A
Go to main menu (TWRP home). Then, Reboot > and Activate slot A now!
Tutorial: How to root Xiaomi Mi A2
There are two methods to root Xiaomi A2 using Magisk:
Patch the stock boot image of your current firmware and flash it using fastboot.
However, the second method is not recommended for novice users since it is quite tricky. You need to familiarize with the steps before you proceed with it. Both methods are described in our detailed tutorial below:
So you are done with this tutorial! You had successfully rooted Xiaomi Mi A2 and installed TWRP using our guide. If you faced any problem with performing this tutorial, please let us know by dropping a comment below. Our team will reply you back as soon as possible.
Is this post helpful? Please do share it on Social Media to THANK US.
Saeed Ashif Ahmed is a Blogger who has a keen interest in how emerging technology can help the world become a more just, equitable, and kind place. He enjoys interviewing CEOs of tech startups asking them what they are doing to bring greater opportunity and equity to our society.