Xiaomi Mi A2: unlock bootloader, TWRP installation and root permissions with Magisk | Guide

review xiaomi mi a2

Given the official landing on the European market, the Xiaomi Mi A2 represents the new chapter of the Asian company in collaboration with Google. In fact, the phone is part of the Android One program, complete with stock software. This does not mean, however, that it is not possible to modding this model. Here, then, that in this guide we will explain how to do it unlocking the bootloader, install the TWRP and get the root permissions with the Xiaomi Mi A2, codenamed "jasmine"


IMPORTANT: the procedure described presents complex operations that, if performed incorrectly, could damage your device. It is recommended to run only by users who have gained a good experience in modding. The staff of GizChina.it will not be held responsible for any damage to the device. This procedure involves formatting the phone and the consequent loss of all data: it is advisable to make a backup.

review xiaomi mi a2

CAUTION: following the latest directives from Xiaomi, DO NOT INSTALL MY PREVIOUS TO THE ALREADY INSTALLED. This is due to the Anti-Rollback mechanism initiated by the company's software team. Even if it does not affect all the models currently on the market, with the passage of time these will increase. therefore We strongly urge you to check the list of smartphones with Anti-Rollback before proceeding to flash other ROMs.

How to install TWRP and get root on Xiaomi Mi A2 | Guide

Unblocking the bootloader

Unlike the other Xiaomi house models, the Mi A2 has no waiting time to unlock the bootloader, since it is a stock software and not customized by MIUI. As a result, there is no need to use the classic procedure through Mi Unlock. The prerequisites include a Windows PC with ADB and Fastboot installed (restart if installed) and a USB cable to connect the smartphone to the PC, which must have at least the battery 75%, to avoid possible problems. Then follow these steps:

  1. Go to "Settings -> My device"And tap 7 times on"Build number"(A confirmation pop-up will appear);
  2. Go to "Settings -> Additional Settings -> Developer Options";
  3. Put the check to "Debug USB" and "OEM unlocking";
  4. Turn off the smartphone;
  5. Restart it in Fastboot mode by holding down the Power + Volume - key;
  6. Connect the smartphone to the PC;
  7. In the "adb" folder, hold down the Shift key, click with the right mouse button and select "Open PowerShell window here"Or "Open a command window here" (depending on which version of Windows you have);
  8. Check that the smartphone is detected with the command "fastboot devices", Following which an alphanumeric string should appear with the inscription"fastboot";
  9. Use the command "Fastboot oem unlock" to complete unlocking the bootloader.

TWRP installation

First you have to download the TWRP custom recovery, downloadable from this link. Once downloaded, move the file to the ADB folder (as a rule)C: \ adb“).

  1. Turn off the smartphone;
  2. Press together Power + Volume Down button to enter the Fastboot mode;
  3. Connect the smartphone to the PC;
  4. In the "adb" folder, hold down the Shift key, click with the right mouse button and select "Open PowerShell window here"Or "Open a command window here" (depending on which version of Windows you have);
  5. Check that the smartphone is detected with the command "fastboot devices", Following which an alphanumeric string should appear with the inscription"fastboot";
  6. Use the command "Fastboot getvar current-slotto check which of the two A / B partitions is active, since the TWRP must be installed on the inactive one;
  7. Assuming that the partition B is useful, write "fastboot flash boot_b - filename - .img"
  8. Then use the command "Fastboot set_active b";
  9. Hold down the Volume + key and at the same time use the command "fastboot reboot"To restart in TWRP mode;
  10. At the request "Keep System Read Only?" selected "Keep Read Only".
PS: instead of -filename- you should write the name of the TWRP file to install. This is because renewed versions of the TWRP could be released, with a different name from the previous one.

Obtain root permissions with Magisk

In case you do not want the root, you will have to install DM verity disabler instead of Magisk. But let's see how to perform the procedure for root permissions:

  1. download Magisk and copy it into the phone's memory;
  2. Turn off the smartphone;
  3. Press together Power + Volume Down button to enter the TWRP recovery screen;
  4. Select "install", Look for the Magisk file in memory and install it;
  5. In the TWRP home select "reboot"And activate slot A;
  6. Restart the phone again, download Magisk Manager and run it to verify that the root has been successful.

Discuss with us about the article and about it Xiaomi in groups Telegram e Facebook Dedicated!