Advertisement

TWRP now officially supports Xiaomi’s first Android One device. Follow this guide to easily install TWRP recovery and root Xiaomi Mi A1 (Tissot) on Android Pie and Oreo using Magisk.

The rooting scene has been pretty challenging since Google released the first generation Pixel devices in 2016. The devices brought the all-new A/B partitioning system to support seamless system updates. Overall, this was a great innovation and prevents any scenario of an unbootable device after an OTA update. But the new partition scheme brought enough obstacles for the development community to overcome. Since the release of the Mi A1 in September 2017, the developers have been trying the best to find a working solution for root and TWRP.

After a lot of testing and updates, the Mi A1 gained the official support of TWRP in 2018. Ever since then, the recovery has been constantly updated and is now compatible with Xiaomi Mi A1 running Android Pie, Oreo, and Nougat. TWRP for Mi A1 is being maintained and developed by XDA Recognized Developer nicknitewolf. An unofficial version of the recovery is also available, which supports Treble-based custom ROMs and is being maintained by XDA Senior Member Giovix92.

Root Xiaomi Mi A1 and Install TWRP Recovery

The instructions below will help you install TWRP on Xiaomi Mi A1. It will begin by temporarily booting the TWRP recovery image and then installing the image using the ‘Install Recovery Ramdisk’ option. Once installed, you can flash the Magisk installer zip file to easily root Xiaomi Mi A1.

Table of Contents

Prerequisites

  • Before you do anything, make sure to backup your device completely. You can follow our guide on how to backup Android phones.
  • In order to install TWRP and root, you must first unlock your phone’s bootloader. Note that unlocking the bootloader will wipe all the data stored on the phone. So make sure that you have backed-up all your data beforehand.
    • To do so, boot your phone into Fastboot Mode. Then connect it to the PC using the USB cable and execute the following command via the CMD/PowerShell:
      fastboot oem unlock
  • Download and install Xiaomi USB Drivers on your PC.
  • Charge your Mi A1 to at least 50-60% battery level. This shall help avoid any sudden shutdowns during the process.
  • Install ADB and Fastboot on your PC. You can also use Minimal ADB and Fastboot alternatively.

Make sure that you have fulfilled all the requirements listed above before you head below to the instructions to install TWRP recovery and root Xiaomi Mi A1.

Downloads

Note: Starting with TWRP 3.3, there’s no need to download a separate installer zip. You can simply use the ‘Install Recovery Ramdisk’ option to permanently install the recovery.

How to Install TWRP Recovery on Xiaomi Mi A1

  1. Download TWRP recovery image for your Xiaomi Mi A1.
  2. Connect your phone to the PC and transfer the downloaded file to the phone’s storage.
  3. Power off your phone completely.
  4. Press and hold the Volume Down + Power buttons altogether to boot your Mi A1 into Fastboot Mode.
    Install TWRP Recovery on Xiaomi Mi A1 - Boot into Fastboot Mode
  5. Copy the TWRP recovery image (e.g. twrp-3.3.1-0-tissot.img) file to the folder where all the ADB and Fastboot binaries are present (e.g. C:\adb).
  6. Press the SHIFT key and right-click on an empty space inside this folder.
  7. Select ‘Open PowerShell window here’ from the menu that appears.
    Open PowerShell on Windows
  8. Enter the following command to make sure that your device is being detected properly. If you’re using Linux/macOS, make sure to add dot and front-slash (./) prior to the command(s).
    fastboot devices
  9. The command shall return a device ID, along with the ‘fastboot’ message.
    Root Xiaomi Mi A1 - Fastboot Devices command
  10. Now, enter the following command to temporarily boot TWRP recovery on Mi A1:
    fastboot boot twrp-recovery-image.img
  11. Make sure to replace “twrp-recovery-image.img” with the actual filename of the TWRP recovery image.
    • For example:
      fastboot boot twrp-3.3.1-0-tissot.img
  12. The device should now boot into TWRP recovery mode.
  13. Go to the ‘Advanced’ menu in TWRP and tap on the ‘Install Recovery Ramdisk’ option.
  14. Select the TWRP recovery image file (twrp-3.3.1-0-tissot.img).
  15. Finally, swipe the button to confirm the flashing process and permanently install TWRP recovery on your Xiaomi Mi A1.

Now with TWRP installed, you can follow the instructions below to root Xiaomi Mi A1 using Magisk.

Recommended: Enable Camera2 API and Download GCam Port for Xiaomi Mi A1.

Instructions to Root Xiaomi Mi A1

  1. First, download the latest Magisk installer zip file.
  2. Power off your Xiaomi Mi A1 completely.
  3. Press and hold the Volume Up and Power button to enter TWRP recovery mode.
  4. Go to the ‘Mount’ menu in TWRP.
  5. Tap on the ‘Enable MTP’ button and connect your phone to the PC using the USB cable.
  6. Download the Magisk installer zip file and transfer it to your phone’s storage.
  7. Once transferred, disconnect the phone from the PC.
  8. Go back to the TWRP main screen and tap on the ‘Install’ button.
  9. Navigate to the storage and select the Magisk installer zip file (Magisk-v20.3.zip).
    Flashing Magisk in TWRP to Root Xiaomi Mi A1
  10. Finally, swipe the button to flash the file and root Xiaomi Mi A1 using Magisk.
  11. Press the ‘Reboot System’ button.

Once your Mi A1 boots into the OS, you shall see “Magisk Manager” in the app drawer. You can leverage it to hide root from certain apps or install modules to customize almost any aspect of the software. You can now also use root-enabled apps on your device, install mods like ViPER4Android and Dolby Atmos, and customize it to your needs.

If you have any trouble while performing the instructions to install TWRP and root Xiaomi Mi A1, then feel free to drop a comment.

TWRP source: 1, 2

Comments

  1. HELP ME MY PHONE IS STUCK IN FASTBOOT MODE WITH SOME KINDCOF IMAGE OF A RABBIT TRYING TO FIX AN ANDROID

    1. Yash, it appears that your phone has entered Fastboot Mode.

      Simply hold the Power key for 10-12 seconds to exit out of Fastboot Mode. If, in case, that doesn’t work, try holding the Volume Down and Power keys together for 10-12 seconds.

      Either of these should help you get your phone out of Fastboot Mode.

  2. Hello Dhananjay, As soon as the TWRP booted , the screen of my device froze. I’m new at this all rooting and installing TWRP. The boot ends at asking Unmodified System Partition and makes me swipe to allow modifications. Unfortunately the swipe and the whole screen doesn’t work now. What to do? I downloaded the official one (TWRP).

    1. Hi Anand. Please reboot your phone back into Fastboot Mode and try the unofficial TWRP. The official TWRP is pretty much outdated and doesn’t work as expected, especially on newer Android versions.

  3. Hi..Dhananjay.
    I was succesfull with this methods on Mi A1 pie (November update), everything is work good. But, I have some litle question after rooting, did we have received update OTA for next time? FYI, I am in Indonesia.
    And the second question is, what the effect of we relock bootloader?
    Thanks.

    1. Hi Ricky. Taking official OTAs wouldn’t be possible with rooting and a custom recovery like TWRP installed. However, there is a working way to install OTAs on rooted devices. All the explanations and instructions for the same can be found in this post.

      Do not re-lock the bootloader at all if your phone has a modified software, your device will end up in a bootloop. It’s best to keep it unlocked.

    1. Hi, that’s because the storage is encrypted. In order to decrypt it and to be able to access the storage/files, you will need to enter the password.

    2. You will need the password/PIN of the lockscreen (That you have set) to decrypt the /data partition in TWRP.

  4. I followed your guide and rooted my mi a1 perfectly. The problem is i can’t install July OTA update.

    I tried to update July pack by following these steps but failed.

    Couldn’t install Magisk Manager after OTA update “Install to Second Slot” option is missing. So I chose not to install Magisk Manager.

    After reboot, the phone went to TWRP screen. I flashed magisk. After another reboot, My M1 showed this message “couldn’t update Installation problem”. Fortunately, the phone works fine so far.

    What do i have to do to update and root my phone properly. Thanks for the answers.

    1. Upgrading your phone using OTA and still maintaining root is more of a hassle in my opinion. I do plan on covering a tutorial on that as well.

      What I’d suggest is, you can simply use TWRP flashable ZIP or Fastboot image to update your phone (We always have a post for that, you can find the July 9.6.4.0 update on the homepage itself). In both the cases, the data will not be wiped, if you follow everything correctly.

      As for root, all you have to do is simply flash the latest Magisk ZIP using TWRP, that’s all.

Leave a Reply to Robba Sudrajat Cancel reply

Comment Policy: We welcome relevant and respectable comments. Only input your real first name and valid email address if you want your comment to appear. Read our comment policy fully before posting a comment.