Xiaomi recently rolled out Android Pie update for the Mi A2 and Mi A2 Lite. But due to the lack of proper TWRP support, it is not possible to flash Magisk to root the devices. So, here we are today, to help you root Xiaomi Mi A2/A2 Lite on Android Pie. Root could be achieved by temporarily booting the patched boot img and then using installing Magisk via the Magisk Manager app.
To recap, we already have a tutorial to root Xiaomi Mi A2 devices, but it is only limited to Android Oreo. That’s because TWRP recovery for both the devices doesn’t support storage decryption on Pie. And since the recoveries have not been updated yet, it prevents users from flashing Magisk to gain root. We do hope that TWRP will be updated soon. But until then, there’s only one way to root Xiaomi Mi A2/A2 Lite on Android Pie.
The method is fairly simple and requires you to temporarily boot a patched boot image. Once booted, you can use Magisk Manager to permanently flash Magisk and root your phone. This shall work on Xiaomi Mi A2 and A2 Lite running Android Pie with build number V10.0.4.0.PDLMIXM, and on older updates as well. Just follow the steps listed below.
Update x3: Xiaomi has started rolling out February update with version 10.0.4.0.PDLMIXM for the Mi A2. According to the users, the update is still not quite stable and has bugs. However, if you have still updated your phone, we have provided the patched and stock boot images for this version too.
Update x2: Several Mi A2 users are facing bootloop after January 2019 update. For now, we’d advise you not to update your phone until we have an official word from Xiaomi and the issue is resolved.
Update x1: If you have upgraded to V10.0.3.0 (January Pie Update), it is best to first restore the stock boot image (fastboot flash boot_a boot.img and fastboot flash boot_b boot.img) before trying to follow this method. It seems as if January update for Mi Android One devices has some change in the boot.img (kernel).
- Like always, we can’t help but strain enough that you take a complete backup of all your data stored on the phone. Although this process will not wipe anything, it is best to safeguard your data in case anything goes unplanned. We also have a comprehensive guide on how to backup Android phones completely.
- You must unlock the bootloader on your Mi A2/A2 Lite.
- Download Android platform-tools package and extract it on your PC.
- On Windows: Go to the ‘platform-tools’ folder that you extracted earlier. Now, while holding the SHIFT key, right-click on an empty space inside this folder. Select ‘Open PowerShell window here’ from the menu.
- On Linux/macOS: Open the ‘Terminal’ and cd to the location of the ‘platform-tools’ folder. Example:
Once you have fulfilled the requirements stated above, go ahead and follow the instructions below to root Xiaomi Mi A2/A2 Lite on Android Pie.
Considering that our readers are often looking for the Mi A2/A2 Lite stock boot images, we have also added download links for the same.
Updated on 3 March 2019: V10.0.4.0 Patched Boot Image for Xiaomi Mi A2 is now available. It is patched with the latest stable Magisk v18.1 version.
Mi A2 (jasmine_sprout)
- V10.0.4.0.PDLMIXM (Huge thanks to XDA Senior Member minnuss!):
Mi A2 Lite (daisy)
- V10.0.2.0.PDLMIFJ Patched Boot Image: Link
Instructions to Root Xiaomi Mi A2/A2 Lite on Android Pie
- Power off your Mi A2/A2 Lite completely
- Hold the Volume Down and Power buttons together to boot your phone into Fastboot Mode
- Connect your phone to the PC using the USB cable
- Download the patched boot image for your Mi A2/A2 Lite
- Copy the downloaded file to the ‘platform-tools’ folder where the ADB and fastboot binaries are present
- Enter the following command to temporarily boot the patched boot image:
.\fastboot boot <patched-boot-filename>.zip
./fastboot boot <patched-boot-filename.zip>
- Make sure to replace “<patched-boot-filename.zip>” with the actual filename of the downloaded patched boot image.
- Your Mi A2/A2 lite should boot into the OS.
- Go to the app drawer and launch ‘Magisk Manager’.
- Tap on ‘Install’ and then again on ‘Install’
- Finally, select ‘Direct Install’ to root Xiaomi Mi A2/A2 Lite on Android Pie.
- Once the installation is complete, tap on ‘Reboot’.
Your phone will reboot and should be rooted with Magisk now.
We are still waiting for any updates regarding TWRP for Mi A2 running Pie. If and when we have it, we will be updating the instructions in this post. Until then, this is the only way to root Xiaomi Mi A2 and A2 Lite. If you have any questions, feel free to drop a comment below.