How to root Xiaomi Mi A2 and install TWRP recovery

Xiaomi Mi A2 root

Gaining the root access unlocks the door for some serious customization. You get to totally own the devices as you become the superuser of the system when you root the device, which is why many of us just have to root our Android device.

Some of the reasons behind rooting a device are to take proper with-data backups of apps and games which makes life easier when you switch ROMs, but there is much more to it than just data backups. You can even tweak the system settings to your benefit.

Xiaomi has released the MI A2 after the spectacular success of the Mi A1 from last year. Needless to say, those who prefer a simple and pure stock OS over the company’s MIUI OS are preferring the Mi A2 over other other Android devices from Xiaomi and other popular OEMs.

Related: Best Xiaomi phones [2018]

Anyway, we think whatever be the reason behind your decision to buy the Mi A2, you may want to root the device for a number of reasons. You will need to unlock the bootloader of your Mi A2 first for this, followed by installation of TWRP recovery, which facilitates installing root.

So, without further ado, here’s how you can root the Xiaomi Mi A2.

Warning!

Do not try anything given on this page if you do not know completely what you are doing. In case any damage occurs, we won’t be held responsible.

Xiaomi-Mi-A2-TWRP

Xiaomi Mi A2 TWRP Recovery

Download the TWRP recovery file for your variant of the Xiaomi Mi A2 from below.

  • Mi A2 TWRP recovery: TWRP-3.2.3-jasmine-20180804.img
  • Mi A2 Lite TWRP recovery: TWRP (and root, thus) is not available for this device (once available, a link will be provided here)

This TWRP is the work of developer TingyiChen over at XDA, whom you shall thank for his work if it helps you.


Related articles:


Xiaomi Mi A2 and Mi A2 SE Root

Here’s an easy step-by-step guide to help you install TWRP recovery on your Xiaomi Mi A2. You can use the TWRP recovery to easily gain root access on the device.

  1. Make sure that you’ve unlocked the bootloader for the Mi A2 before proceeding.
  2. Download the required files:
    1. TWRP file from above
    2. Root file (Magisk 16.7): Magisk 16.7.zip
    3. DM verity disabler: no-verity-opt-encrypt-6.0.zip
  3. Connect your Mi A2 to the PC using the USB cable it came with.
  4. Transfer all the downloaded file (TWRP, Magisk, and DM verity disabler) to your device. Do keep a copy of TWRP IMG file on your PC too. Keep the Mi A2 connected to PC.
  5. Make sure you have enabled USB Debugging on your Mi A2, as explained in the bootloader unlock post above (step 1). You may need to re-do it after unlocking the bootloader.
  6. Now open a command window inside the folder where you have the TWRP file from above. For this, go that folder, and then type cmd in the address bar of that folder’s window, and then hit the enter key. A command window will open up, and its location will be that folder.
    open-a-command-window-in-a-folder
  7. Boot your Mi A2 into bootloader/fastboot mode. For this run this command:
    adb reboot bootloader

    └ If you get a permission dialogue on your device to “Allow USB debugging”, tap OK.
    Xiaomi-fastboot-mode

  8. Install TWRP recovery on the B partition of your device by running the command below. To run a command, simply type this in the command window and then hit the enter key.
    fastboot flash boot_b TWRP-3.2.3-jasmine-20180804.img
    Xiaomi-Mi-8-twrp
    Example command (change the filename as the need be)

    Tip: the command ends with the filename of the TWRP file. In case a newer TWRP comes along, be sure to change the filename in the command above.

  9. Set the B partition as the active partition by running the command below.
    fastboot set_active b
  10. Careful! Hold the volume up button now, and while holding the Volume up button, run the command below to reboot into TWRP recovery successfully.
    fastboot reboot
  11. Reboot into recovery mode. For this, use volume buttons to bring up ‘Recovery mode’ option, and then press the power button to select it and boot into recovery mode and access TWRP.
  12. Enter the password or PIN you are using to let system decrypt in recovery mode and get to TWRP recovery. (It won’t ask if you are not using any PIN or password on the device.)
  13. You will see TWRP recovery now. When asked to ‘Keep System Read only?’, tap on the ‘Keep Read Only’ button to not allow for system modifications.
  14. Time to root the Mi A2! You have to install the root file (Magisk ZIP file) now. Go back to the home screen of TWRP and tap on Install, > then select the ZIP file, Magisk-v16.7.zip, and confirm on the next screen.
    • In case you don’t want to root the device, be sure to install the DM verity disabler file now (in place of Magisk file) to get the Mi A2 to boot normally (prevent from bootlooping).
  15. Activate the slot A. In TWRP, press the home button, and then Reboot > and activate slot A now.
  16. Reboot now and your Mi A2 will start to Android and will be rooted too. You can verify root access on your Mi A2 using a root checker app.

That’s all.


Do let us know if you need any help over the Mi A2 root matter.

  • 2726 Posts
  • 256 Comments
Kapil still loves his Galaxy S2 i9100! No, really. And Galaxy Nexus! Need we say more what kind of guy he is? And he's also a die-hard Liverpool FC fan. Email: kapil@theandroidsoul.com

We’re hiring! Find more here.