The Xiaomi Mi A2 and Mi A2 Lite have gained a lot of attention in the Android root community, thanks to the Android One program. Both the devices support TWRP recovery officially, which means you can easily flash custom ROMs/kernels, mods, and root your phone by flashing the Magisk zip file. However, if you want, you can also root Xiaomi Mi A2 and Mi A2 Lite without TWRP, using the Magisk Patched Boot Image method. The instructions in this guide will work on any Mi A2/A2 Lite running Android Pie and Oreo.
Why would you need to root your Mi A2/A2 Lite without TWRP?
We already have a tutorial published on how to install TWRP on Xiaomi Mi A2/Mi A2 Lite and root it. But, the method didn’t work for a long time since the Android Pie update was released. That was because TWRP recovery for Mi A2 devices didn’t support data decryption on Pie at the time. However, that’s not the case now.
So why and when exactly would you need to root your phone without TWRP? There are various scenarios, for example:
- TWRP recovery for your device doesn’t support the latest software version or render issues.
- Also, using this method makes it easier to take OTA updates on your rooted Mi A2/A2 Lite.
- Or, you might only need root (and not TWRP) for things like enabling camera2 API and install a GCam Port on it.
- Finally, if you are not planning on flash any custom ROMs, kernels, or mods, then it’s quite redundant to install TWRP in the first place.
So, irrespective of the reason why you came here, follow the instructions below to root your Xiaomi Mi A2 and A2 Lite using Magisk Patched Boot Image method, without installing TWRP.
Extensive Guide to Root Xiaomi Mi A2/Mi A2 Lite without TWRP
For your convenience and a better understanding of the method, we have split the instructions into different steps. Make sure that you follow them in the given order and do not anything that deviates from the listed steps.
- 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.
- In order to root, you must first unlock the bootloader of your Mi A2/A2 Lite.
- If you have previously rooted your phone or applied any sort of modifications to your phone, then it is strongly advised to flash the stock firmware (fastboot image) using the Mi Flash tool before proceeding. This will ensure that you do not face any issues while installing OTA updates on your rooted Mi A2 device.
- Download Android platform-tools package and extract it on your PC. When asked to launch PowerShell (on Windows) or Terminal (on Linux/macOS), use the following instructions.
- 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 without TWRP.
2. Download Boot Images
Along with the stock boot images, we have also provided links to download latest Mi A2 and A2 Lite Magisk-patched boot images. If you use them, you can skip the step (#3) of patching the stock boot image using Magisk Manager, and directly head over to the next step to flash the provided patched boot image to root your phone.
However, we strongly recommend that you patch the stock boot image by yourself, using the instructions in the next step. That’s because Magisk takes a backup of the stock boot image during the patching process. This will allow you to easily restore the stock images when installing an OTA update in the future.
For Xiaomi Mi A2 (codename: jasmine_sprout)
|Build Number (Security Patch Version)||Download Links|
|V10.0.14.0.PDIMIXM (September 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.13.0.PDIMIXM (August 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.12.0.PDIMIXM (July 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.10.0.PDIMIXM (June 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.9.0.PDIMIXM (May 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.8.0.PDIMIXM (April 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.7.0.PDIMIXM (March 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.4.0.PDIMIXM (February 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.2.0.PDIMIFJ (January 2019 Update)||Patched Boot Image | Stock Boot Image|
For Xiaomi Mi A2 Lite (codename: daisy)
|Build Number (Security Patch Version)||Download Links|
|V10.0.14.0.PDLMIXM (September 2019 Update)||Patched Boot Image (Mirror) | Stock Boot Image (Mirror)|
|V10.0.13.0.PDLMIXM (August 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.12.0.PDLMIXM (July 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.10.0.PDLMIXM (June 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.9.0.PDLMIXM (May 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.8.0.PDLMIXM (April 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.7.0.PDLMIXM (March 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.4.0.PDLMIXM (February 2019 Update)||Patched Boot Image | Stock Boot Image|
|V10.0.3.0.PDLMIXM (January 2019 Update)||Patched Boot Image | Stock Boot Image|
Huge thanks to Roy Goldberg, Nico van Draanen, and XDA Senior Member Aerobatic for contributing to this article by sharing the patched and stock boot images!
3. Patch Stock Boot Image using Magisk Manager
- Download the stock boot image for your Xiaomi Mi A2/A2 Lite. Ensure that you download the version corresponding to the current software version (build number) installed on your phone.
- Transfer the downloaded file to your phone’s storage.
- Now download the latest Magisk Manager APK on your phone.
- Use a file browser app and install the downloaded APK file.
- Next, go to the app drawer and launch the ‘Magisk Manager‘ app.
- Tap on the ‘Install‘ button and select ‘Install‘.
- Tap on the ‘Select and Patch a File‘ option.
- Navigate through the phone’s storage and select the stock boot image file (e.g. stock_boot_10.0.14.0_mi_a2_lite.img).
- Magisk Manager will now start the patching process.
- Once finished, the resultant Magisk-patched boot image (magisk_patched.img) file would be placed in ‘[internal storage]\Download‘ of your phone.
Now that you have the Magisk Patched Boot Image, move down to the final step to root Xiaomi Mi A2/A2 Lite without TWRP.
4. Flash Magisk Patched Boot Image to root Xiaomi Mi A2/Mi A2 Lite
- Connect your Mi A2/A2 Lite to the PC using the USB cable.
- Transfer the ‘magisk_patched.img‘ file to the directory on the PC where the Android SDK platform-tools (ADB and fastboot) are present.
- Launch the PowerShell on Windows or the Terminal app if you’re using Linux/macOS PC (Refer to pointer #4 in Prerequisites).
- Power off your Mi A2/A2 Lite completely.
- Boot your phone into Fastboot Mode by pressing and holding the Volume Down and Power buttons together.
- Connect your phone to the PC using the USB cable once it is in Fastboot Mode.
- Enter the following code to flash the Magisk-patched boot image and root Xiaomi Mi A2/A2 Lite without TWRP.
- If you downloaded the pre-patched boot image from above, then make sure to replace [“patched-boot-image.img“] with the actual filename of the downloaded patched boot image. For example, if you downloaded the V10.0.14.0 patched boot image for Mi A2 Lite, the command would the following.
fastboot flash boot patched_boot_10.0.14.0_mi_a2_lite.img
- Since the Mi A2 and A2 Lite support the A/B partition scheme, Magisk will only be installed on your phone’s current active slot; leaving the inactive slot untouched.
- Finally, reboot your phone into the OS by entering the following code:
Your Xiaomi Mi A2/A2 Lite will reboot and should be rooted with Magisk now.
Now go to the app drawer and launch the Magisk Manager app. You can use it to install Magisk Modules for applying modifications or use MagiskHide to hide root from root-detecting apps.
So, you have just succeeded to root Xiaomi Mi A2/Mi A2 Lite running Android Pie/Oreo without installing TWRP. If you have any questions regarding the procedure, let us know via the comments.
(This guide was re-written from ground-up and updated on 18 September 2019. If you wish to visit the old instructions, then visit an archived copy of this page here)