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.
- 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 May 2019: V10.0.9.0 Patched Boot and Stock Boot Images for Xiaomi Mi A2 and Mi A2 Lite are now available. These have been patched with the latest stable Magisk v19.1 version.
Mi A2 (jasmine_sprout)
- V10.0.8.0.PDIMIXM (Thanks to XDA Senior Member ThaiDai):
- V10.0.4.0.PDIMIXM (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>.img
./fastboot boot <patched-boot-filename>.img
- 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.