In this guide, we will show you how to root Xiaomi Mi A2 and Mi A2 Lite using Magisk, without installing/using TWRP recovery at all. The instructions in this guide will work on any Mi A2/A2 Lite device running Android, 10, Android Pie, and Android Oreo.
Like its predecessor, the Xiaomi Mi A2, and Mi A2 Lite quickly gained a lot of attention from the custom development 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.
We already have a tutorial published on how to install TWRP on Xiaomi Mi A2/Mi A2 Lite and root it through it. So why 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.
As you can see, there are several reasons why you would want to use this method. Now that you are here, let’s begin with the instructions.
Related Article: Enable Camera2 API on Xiaomi Mi A2/A2 Lite without Rooting
Table of Contents
Requirements
Make sure that you fulfill all the instructions 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.
- 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:
cd Documents/platform-tools
Instructions to Root Xiaomi Mi A2 and Mi A2 Lite using Magisk
For your convenience and a better understanding of the rooting procedure, we have split the instructions into three different steps. These are as follows.
Step 1: Download Boot Images
The first step of the rooting process is to download the stock boot image for the Android build number/software version currently installed on your Mi A2/A2 Lite.
Along with the stock boot images, we have also provided links to download the corresponding patched boot images. If you choose to use them, you can skip step (#2) of patching the stock boot image using Magisk Manager, and directly head over to step #3 and 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 for installing OTA updates on your phone after rooting.
For Xiaomi Mi A2 (jasmine_sprout)
V11.0.21.0.QDIMIXM | Stock Boot Image | – |
V11.0.20.0.QDIMIXM | Stock Boot Image | – |
V11.0.19.0.QDIMIXM | Stock Boot Image | Patched Boot Image |
V11.0.17.0.QDIMIXM | Stock Boot Image | Patched Boot Image |
V11.0.15.0.QDIMIXM | Stock Boot Image | Patched Boot Image |
V11.0.14.0.QDIMIXM | Stock Boot Image | – |
V11.0.13.0.QDIMIXM | Stock Boot Image | – |
V11.0.12.0.QDIMIXM | Stock Boot Image | – |
V11.0.11.0.QDIMIXM | Stock Boot Image | Patched Boot Image |
V11.0.10.0.QDIMIXM | Stock Boot Image | Patched Boot Image |
V11.0.8.0.QDIMIXM | Stock Boot Image | Patched Boot Image |
V11.0.5.0.QDIMIXM | Stock Boot Image | Patched Boot Image |
V11.0.4.0.QDIMIXM | Stock Boot Image | Patched Boot Image |
For Xiaomi Mi A2 Lite (daisy)
V11.0.18.0.QDLMIXM | Stock Boot Image | – |
V11.0.17.0.QDLMIXM | Stock Boot Image | – |
V11.0.16.0.QDLMIXM | Stock Boot Image | Patched Boot Image |
V11.0.14.0.QDLMIXM | Stock Boot Image | Patched Boot Image |
V11.0.12.0.QDLMIXM | Stock Boot Image | Patched Boot Image |
V11.0.11.0.QDLMIXM | Stock Boot Image | Patched Boot Image |
V11.0.10.0.QDLMIXM | Stock Boot Image | Patched Boot Image |
V11.0.7.0.QDLMIXM | Stock Boot Image | Patched Boot Image |
V11.0.5.0.QDLMIXM | Stock Boot Image | Patched Boot Image |
V11.0.4.0.QDLMIXM | Stock Boot Image | Patched 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!
Step 2: 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 third step to finally root your Xiaomi Mi A2 device.
Step 3: Flash 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 patched boot image and root Xiaomi Mi A2/A2 Lite using Magisk.
- 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 V11.0.10.0 patched boot image for Mi A2, the command would the following.
fastboot flash boot patched_boot_11.0.11.0_mi_a2.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:
fastboot reboot
Your Xiaomi Mi A2/A2 Lite will reboot into the system (OS) and should be rooted now. To confirm that the process was successful, simply launch the Magisk Manager application from the app drawer.
With your phone rooted now, you can install Magisk Modules to add third-party features or to simply apply modifications systemless-ly. You can also use MagiskHide to hide root from root-detecting apps. To sum up, there’s a lot you can do on your phone now.
So, you have just succeeded to root Xiaomi Mi A2/Mi A2 Lite running Android 10/Pie/Oreo using Magisk, without installing TWRP. If you have any questions regarding the procedure, let us know via the comments.
jatin kumar
please add patched boot image of feb build (QKQ1.190910.002 V11.0.21.0.QDIMIXM)
OR
EXPLAIN the way how to create patch image file
Dhananjay Bhardwaj
Jatin, step #2 of this tutorial shows you how to patch the boot image file with Magisk.
The new Magisk app has a different UI compared to the old one as shown in the screenshots. However, the options/buttons within the app are still the same, so you shouldn’t have trouble following.
Andrea
Hello, I’ve been following this tutorial for months without any problem.
But with the latest february update for Xiaomi Mi A2 Lite (11.0.18 – if you want to add it) this procedure doesn’t work. I flashed stock boot image 11.0.17, but it says “update failed”:
Can someone help me?
Dhananjay Bhardwaj
Andrea, updates can fail due to multiple reasons. The primary one being any present modifications that were made directly to the
/system
and/vendor
partitions.Did you mount any of these partitions and modify anything manually (without a module)?
Andrea
Thanks for your reply Dhananjay.
I didn’t edit /system or /vendor partitions, at least not intentionally and not since last update.
Could you provide new stock boot image for MI A2 Lite so i can try again?
Dhananjay Bhardwaj
Alright. Which firmware is currently installed on your Mi A2 Lite?
Andrea
11.0.17.0.
😀 I know it’s online, but maybe is it wrong?
Dhananjay Bhardwaj
Okay. So, do you have Magisk installed on your Mi A2 Lite right now? Or have you uninstalled it?
Diego
Kindly post patched boot images for mi A2 version 11.0.20. Thanks you!
Dhananjay Bhardwaj
Diego, the stock boot image is uploaded and published in the table above. Please take a look.
Nami
Kindly post stock boot images for mi A2 lite version 11.0.17 January update.
Dhananjay Bhardwaj
Add. Please refresh and check.
Nami
Thank you!
TONY
Kindly post stock boot images for mi A2 version 11.0.19 December update.
Dhananjay Bhardwaj
Uploaded and added.
Tony
Sir, when I started patching process in magisk manager and selected stock boot image 11.0.19 which you uploaded above then it start flashing and after that it shows unknown boot image/unsupported content and installation failed it doesn’t patched my boot image for further rooting process please help why it is not patching stock boot image 🙁
Dhananjay Bhardwaj
Hello Tony, which boot image file did you download exactly? And is your phone the Mi A2 or the Mi A2 Lite?
TONY
Sir I have gone through this whole page comment section and I found the solution to my problem which is first to extract boot image zip which I forgot to unzip. Now I have successfully patched boot image . THANKS for this wonderful page with all necessary information…..
Dhananjay Bhardwaj
Yes, that’s quite an easy part to overlook. Glad you figured it out. And you’re welcome for such kind words.
Ringo
When I enter Fastboot it just exits it without me doing anything, even sending commands doesn’t do anything.
So I can’t boot or flash the patched boot image. What do I do?
Dhananjay Bhardwaj
It’s probably just a driver issue. Please try and install the required USB drivers from this page.
Ahmed
Thanks for your efforts. I’ve done everything as said up, I’ve the latest build 11.0.15.0 but everytime i flash the magisk patched image and reboot it always opens on the android recovery page saying that “Cannot load android system. Your data maybe corrupt. If you continue to get this message, you need to perform a factory data reset and erase all user data stored on this device.” Actually even when i erase it also opens on this android recovery page, it only works when i flash the stock image with fastboot. So, is there any solution how can i root my phone? by the way i tried the TWRP method not working also. Thanks in advance.
Dhananjay Bhardwaj
Ahmed, it’s a problem (a possible bug) with the V11.0.15.0 update for the Mi A2. There have been several reports regarding the same on XDA and Reddit as well.
My suggestion would be to revert back to v11.0.14.0 and wait for the next update.
Ahmed
Is there any guide you recommend for reverting to the v11.0.14.0 ?
Dhananjay Bhardwaj
Yes, it’s here. Make sure that you use the “flash_all.bat” or the “flash_all_except_data_storage.bat” flashing scripts. The latter will not erase the data, while the former will.
gil
Works perfectly, much appreciated. Was having real trouble to make it work through twrp.
Rudra
Please add the boot image for MI A2 lite v11.0.12.0.QDLMIXM. Thanks….
nicola furlan
. good morning i’m trying to root to my mi a2 lite but in powershell i comit seems this error you can help me error: Couldn’t parse partition size ‘0x’. Thank you very much
Dhananjay Bhardwaj
Nicola, did you previously perform any modifications to the phone’s partitions?
Next, how did you install fastboot on your computer? In the command-line (PowerShell or Terminal), please enter the
fastboot --version
and share the exact output you see.Shahz
Bro help me I need magisk_patched_boot_11.0.14.0_jasmine_sprout.zip
Dhananjay Bhardwaj
Shahz, you’d need to patch it by yourself, as shown in the instructions above.
danial
i already follow all the instruction mentioned. But i now stuck at androidone logo..please advice
Dhananjay Bhardwaj
Danial, which boot image did you download and use? Also, which software build number was your phone running? Is it the Mi A2 or Mi A2 Lite?
Please provide these details so that I can guide you through.
Ameer
Hello there,
Thank you for the guide. I’m facing an issue where the phone stuck at androidone logo. Is there any solution to fix this? basically my phone are not started after trying the step above.
Dhananjay Bhardwaj
Ameer, how did this exactly happen? Please elaborate more so that I can understand the issue.
Ameer
I actually follow the step 1 by 1 with no issue, no error pop up. After doing the last step it “fastboot reboot” keep the phone at the “AndroidOne” screen. I also didn’t know what exactly go wrong.
Dhananjay Bhardwaj
Alright, could you let me know if it’s the Mi A2 or Mi A2 Lite? Also, what software build number did it have installed prior to this? And please share the exact filename of the boot image zip package you downloaded and used.
Dgn
Can you please add the 11.0.14.0 stock image for Mi A2?
Dhananjay Bhardwaj
It has been added. Please refresh the page and check.
Anon
Hi Dhananjay,
I used to root my Mi A2 phone before. But there was a time of OTA update making it unroot somehow. I was trying to root my phone again following your suggested procedure. I downloaded the stock image (stock_boot_11.0.13.0_jasmine_sprout.zip) and flashed using Magisk. But it said unsupported/unknown image format. And installation failed. What do I do now?
And if I successfully root it this time, what can I do about OTA update in the future without losing my root again? I think once root, Magisk has a mode to hide from root detection from apps. Right? Some apps won’t run if they detect root. Thanks in advance!
Dhananjay
Anon, you have to extract the “stock_boot_11.0.13.0_jasmine_sprout.zip” file to get the “boot.img”. That’s the file you want to patch.
After rooting, you can follow the instructions on this page to take OTA updates and retain Magisk root after updating.
And yes, Magisk Hide (inside Magisk Manager) allows you to hide root from individual apps. Do note that this feature cannot hide the bootloader unlocked status due to Google’s new hardware-backed SafetyNet attestation. You can read more about that here.
Anon
Hi Dhananjay,
Thanks! Oh, I should have known to unzip it first. And what a shocking news about bootloader unlocked status checking. That’s really sad. It’s as if they are trying to prevent all sort of rooting whatsoever. I just want the superuser access to cheat on single player games. It seems like I have to find another way. And thanks once again for your help. I appreciate your work.
Dhananjay Bhardwaj
Yes, seems like so. I am glad I was able to help.
Victor
Hi Dhana,
I have followed instructions until step 2. On trying to load the stock boot, I keep getting this message – “Unsupported/unknown image format, installation failed”.
I have double checked to make sure I used the stock boot image corresponding to my device.
Do you have an solutions please
Dhananjay
Victor, did you download the stock boot from this page? If so, then which one exactly? Also, is it the Mi A2 or the Mi A2 Lite in question here?
Victor
Yes I did download from this page. The version is the latest one: V11.0.13.0.QDIMIXM
Device is Xiaomi Mi A2
Thanks
Victor
Hi Dhananjay,
It appears that my build number is not available on the list for Xiaomi mi A2
My Build number is V11.0.13.0.QDIMIXM. I used the latest one on the list, which is V11.0.12.0.QDIMIXM and this was the message I got on the magisk app; “Unspported/unknown image format, installation failed”
Can you help with the version of my build number please? Thanks a lot
Dhananjay Bhardwaj
Victor, you have to download the V11.0.13.0 boot image (not V11.0.12.0). I believe you’re getting this error because you’re trying to patch the .zip file. Once you have downloaded the file, extract the zip to get the stock boot image (boot.img) and patch that instead.
YK
Hi, do you know where I can find my stock boot image? Mi installed version is V11.0.13.0.QDIMIXM . Thank you!
Binesh Manveettil
Hican you add the stock and patched boot image of aug 2020 (V11.0.13.0) update
MUHAMMAD Asif Qasim
Can We Have July 2022 Build Number V11.0.9.0.QDLMIXM Stock Boot.img ?
Furthermore Please Also Share The Topic Link Where We Can Learn How To Patch By Our Self As Some OTA Doesn’t Have FastBoot Image.
Thanks,
MUHAMMAD Asif Qasim
Dhananjay
Hi. I have added the boot image for V11.0.9.0, please check now.
As for self-extracting boot image from the full OTA package, please take a look at this guide.
Prozzol
where´s the file magisk_patched_boot_V11.0.9.0_daisy.zip mi a2 lite daisy
Dhananjay
Since I do not own the Mi A2 Lite anymore, I cannot patch it. You will need to patch the stock boot by yourself as shown in the instructions. Quite easy to do IMO.
MOhamed Khaled
I got a very weird problem…..every time i root the device only or install a custom rom…… The mute in call doesn’t work and the call volume during the call stuck to a certain level and doesn’t respond when i raise it up or down….what should I do ?
Dhananjay
That’s extremely odd, as I never had such a problem in the time I had the Mi A2 Lite. And I also haven’t heard anyone else reporting such an issue.
Have you tried flashing stock fastboot ROM and try rooting the phone again from start?
EA
Can you please add the 11.0.12.0 stock image?
Dhananjay
Hi. Stock boot for July 2020 update (V11.0.12.0) has been added. Please check now.
Fakhrullo
I couldn’t install Magisk, When I try like you thought it says UNSUPPORTED/UNKNOWN IMAGE FORMAT
please help me
Dhananjay
Hi Fakhrullo. Where did you get the stock boot image from? It seems like the boot image you’re using was extracted from an incremental OTA rather than a full OTA package.
James
Hi its not working on 11.0.7.0
ashing is not allowed’
fastboot : error : command failed
Dhananjay
Hi James. Have you unlocked the bootloader on your Mi A2 or A2 Lite?
Douglas Eduardo
where´s the file magisk_patched_boot_V11.0.7.0_daisy.zip mi a2 lite daisy
Dhananjay
Hi Douglas. I couldn’t provide because I do not own the Mi A2 anymore. You would need to download the stock boot and patch it as demonstrated in the instructions above.
paijo sarkun
can u share FOR PATCH boot image march update android Pie V10.0.20.0.PDLMIXM for MI A2 Lite Firmware. on your POST Only Stock boot image, thanks
Dhananjay
Hello, I have added the patched boot image V10.0.20.0 now, please check the downloads table again.
paijo sarkun
many thanks for u now my device rooted …
Dhananjay
Good to know. Enjoy the rooted phone. If you have any more questions, please feel free to let me know.
Sadid
Where’s the V11.0.7.0 Mi A2 Lite?
Dhananjay
The stock boot for the V11.0.7.0 is available now. Please refresh the page and check again.
Sadid
phone had been rooted.but how can i install a custom rom in mi a2 lite?
Dhananjay
Hi Sadid. May I know which custom ROM are you planning to install on your Mi A2 Lite?
Pavel
Thank you for stock boot for the V11.0.7.0, but link name “stock_boot_11.0.5.0_mi_a2_lite.zip” is wrong.
Need to change 5 to 7.
Dhananjay
Hi Pavel. That you for pointing out the typo. I have corrected it now.
Mike Demon
Hi, this version of patched boot is not working (V11.0.5.0.QDLMIXM (Android 10 May 2020 Update)). I’ve flashed the boot but there is no Magisk inside.
Mike Demon
Sorry, but I forgot to mentioned that this is for Daisy.
Dhananjay
Hi Mike. I am pretty certain it’s a problem with the provided boot image, as Stilian here had the outcome.
Please try using this one: https://drive.google.com/file/d/10B4U9PRwCRBPeBPkaa9E6Eung-ZDi1hw/view?usp=sharing
If this one also fails, please consider patching the stock boot image by yourself and try with that.
Mike Demon
Hi Dhananjay,
Too bad, the new patched boot not working either… 🙁
Dhananjay
Really? That’s weird. Tried patching the stock boot by yourself and using that instead?
Mike Demon
Hi Dhananjay,
No Magisk in the stock boot either… 😅😅😅
Mike Demon
Hi Dhananjay,
Somehow the phone is rooted but the Magisk app is not showing… After installing the Magisk APK, it fine now…
Thanks… 😅😅😅
Dhananjay
That happens occasionally. So, it’s rooted now, right?
Mike Demon
Hi Dhananjay,
Yup, it’s rooted now.. haha… Thanks…
Dhananjay
Cool! Good to know. Enjoy.
Fahim
Hi,
After rooting the device by flashing the patched boot image, can I unroot by flashing the stock image? And after rooting, Magisk asks to download some additional files. Should I allow it? Also, I want to use my banking apps, but after root they are not launching. How can I resolve it? Hope to hear from you soon.
Dhananjay
Hi Fahim. Yes, you can unroot by refreshing the stock boot image (corresponding to the installed firmware on your phone). Or, you can also use the ‘Uninstall’ button in Magisk Manager to fully unroot the phone.
As for your question related to banking apps, yes, it’s totally possible to get them working with Magisk. That’s the beauty of Magisk.
With the new hardware-level attestation implemented by Google, Magisk developer topjohnwu disabled ‘Magisk Hide’ by default. The feature can still be enabled to hide root from apps that might stop working, like the banking apps you’ve mentioned.
Just go to Magisk Manager, press the menu icon on the top-left of the app’s screen, and press ‘Magisk Hide’. Enable that feature and use it to hide root from the specific apps that have stopped working while your phone is rooted.
muhammad asif
oh my God I flashed april security patch img into march security patch android software version 10 and stuck in bootloop plz help
Dhananjay
Hi Muhammad, download the stock boot image (if you just want to restore) OR the patched boot image (if you want to root) of the March 2020 update. Then flash the boot image as shown in the instructions.
It’s nothing major. You have just flashed the mismatching boot image. As I just mentioned, flashing the March 2020 boot will fix the problem.
muhammad asif
sorry I forgot to mention my device is mi a2 lite daisy.as I used magisk patced file .shoul I flash again patched file?if so plz give its link for march 2020?or any other way because I followed as u said above but it did not worked
Dhananjay
Thanks for the info. Is it the Android Pie-based March 2020 update that’s installed on your phone?
Please let me know the build number of the firmware installed on your phone (if possible).
muhammad asif
bro I updated to android 10 in april with build number I think was 11.0 something aand security patch was of march 2020
muhammad asif
I am realy worried first I tried to root with twrp earlier this day but did not worked and got factory reset and now stuck here
muhammad asif
its android q based april update with build number 11. and having security patch of march 2020
Dhananjay
Was it 11.0.2.0?
muhammad asif
because 11.0.4.0 is not working
muhammad asif
bro plz help
muhammad asif
I think not sure
Chris
Please can you add the stock boot image for april 2020 security update mi a2?
Dhananjay
Hi Chris. As soon as I get my hands on the link of the full OTA package, I will extract and add the stock boot image to this post.
bruno
actualice a android 10 mi mia2 lite y tiene un problema con el micrófono no funciona con el asistente pero funciona con llamada
Dhananjay
Hi Bruno. Is you Mi A2 Lite rooted? It could a bug in the software, but I am not absolutely certain about that. Have you tried performing a factory reset to see if it makes a difference?
muhammad asif
I think so not sure
Dhananjay
Then simply try flashing the 11.0.2.0 stock boot image via fastboot:
.\fastboot flash boot stock_boot_11.0.2.0_mi_a2_lite.img
Download the V11.0.2.0 stock boot image from here: https://drive.google.com/open?id=1erH8ZoTcpN1Uqz_AVWo8OClVRzyA-1VN
muhammad asif
sending boot ok
writing boot ok
fastboot reboot
rebooting
phone reboots but still in bootloop
Dhananjay
That’s extremely odd. If your phone had V11.0.2.0 installed, this should have worked. Oh, how can I forget? There’s one way to confirm the exact firmware installed.
Reboot your Mi A2 Lite into the stock recovery mode. To do this, power off the phone first. As soon as the screen turns off, hold the Volume Up and Power keys together. When the phone boots into the stock recovery, you see the build number of the installed firmware in yellow color on the top-left of the screen. Please let me know the exact info you see.
muhammad asif
android recoverY
xioami/daisy/daisy_sprout
10/qkq1.19002.002/v11.0.4.0.QDLMIXM
Dhananjay
Okay, so it has V11.0.4.0 installed. Please download the V11.0.4.0 stock boot image from here: https://drive.google.com/open?id=1clJdXv2iqCKOLbmNr6xMnN7NU2U2clpy
I have downloaded the package and re-uploaded a fresh stock boot. Flash this and see if it works.
muhammad asif
oh ya I did it hurrah thanks bro
actual first I flashed version 11.0.2.0
then luckily I had backup of that magisk patched file when I first rooted by following ur intructions on 18 th april
then flashed that magisk file
Dhananjay
I am glad it got solved! So, is your phone running the Android Pie 10.0.20.0 firmware?
muhammad asif
then I did factory reset
now its running android 9
muhammad asif
thanks for not leaving alone at time of crisis
Dhananjay
You’re most welcome!
muhammad asif
yup bro pie version 10.0.2.0
it was problem with android 10 update
flashed version 11.0.2.0
went into recovery
did factory reset
then flashed magisk patched v10.0.2.0
it broke boot loop
then rooted as above with v10.0.2.0 by self patching
my purpose was to install viper and dolby
thanks!
Dhananjay
I am glad you were able to solve it all by yourself!
vic
followed this guide and now my phone is stuck on android one with white background, damn i fucked my phone
Dhananjay
Hi Vic. Which software build number was your phone running before you flashed the patched boot image?
Also, did you download and patch the boot image by yourself or use the pre-patched boot image? Do let me know the exact filename of the boot image you downloaded.
Shahriar
Please update new stock boot img of March security update for a2 lite.
Dhananjay
Hi Shahriar. I have added the boot image to the downloads table. Please check now.
Shahriarshahri
thank you brother.
Dhananjay
You’re welcome!
Nandkishor
Hi need clarity in the step 3 point number 7 and 8 you said flash with patched boot which was created by magisk and step 8 you said select original which was downloaded. What should I do exactly please suggest.
Dhananjay
Hi Nandkishor. In step 8, I am referring to the situation if you downloaded the pre-patched boot image.
I believe, you patched the stock boot image via Magisk by yourself, right? If so, then please just omit step #8 and reboot your phone using the command in step #10.
Pawan Kerkar
Thank you very much forr this!
My purpose for rooting was to recover data from my Xiomi MiA2. My phone did something weird and factory reset itslef.
If you could suugest me a way to recover data without using paid apps, it would be really helpful.
Dhananjay
Hi Pawan. You’re welcome first of all.
I have had some not-so-good experience recovering data from my Android device in the past. And trust me I have tried the paid solutions as well. The maximum data I could recover was just over a number of images and documents, of which, a majority of them got corrupted.
I know that a lot of third-party tools available online claim that they can fully recover the data. However, with my own experience, I can tell you that they do not.
Now, If I remember correctly, I tried ‘Disk Digger Pro’, which is a paid application and isn’t that costly either. The app also has a free version over at the Google Play Store that you can try. Of all the Softwares and apps I used, this was the one that actually worked, well of course not fully, but surely better than the others.
Let me know if you try it. It has been a few years since I last used it.
DERICK
para la v11.0.2.0.QDLMIXM For Xiaomi Mi A2 Lite TENDRAN ESTO?
Dhananjay
Hi Derick, since the Android 10 update for A2 Lite was very buggy, I didn’t extract the boot images. Because it may cause further issues.
Anyhow, I have still added the stock boot image if you need it. You can patch it by yourself using “Step #2” in the instructions above.
Elior
hey there my phone got stuck and sorta of system destroyed 🙁 its said your system/data is corrupted and shows try again or factory reset my Xiaomi Mi A2 latest version 11.0.5
Dhananjay
Hi Elior. Exactly when did this happen?
Iagoba Apellaniz
Same here. I tried to create my own patched image, I downloaded patches, I followed all steps back and ford, and finally I had to flash my phone with the only stock image that works 11.0.4
Dhananjay
Hi Iagoba. Do you have V11.0.5.0 installed on the phone or is it V11.0.4.0?
Iagoba Apellaniz
I have installed v11.0.4.0
Dhananjay
Which Magisk Manager version did you use for patching?
Iagoba Apellaniz
I have installed the V11.0.4.0. And during the process I tried rooting my phone with both, first V11.0.5.0 and then V11.0.4.0.
Dhananjay
Hi again. Always use the stock boot image that matches the software build number installed on your phone.
Jagoba Apellaniz
I have installed V11.0.4.0, but i tried to patch both, V11.0.4.0 and V11.0.5.0. I also used both patched versions, with no success
Dhananjay
Hi again Jagoba. You only have to use the V11.0.4.0 if you have V11.0.4.0 installed on the phone.
Instead of using the pre-patched boot image provided above, have you tried patching the V11.0.4.0 stock boot image by yourself?
Ntina
Could you upload V10.0.18.0.PDLMIXM (January 2020) boot image update for Mi A2 Lite
Dhananjay
Hi Ntina. The download links have been updated with the stock and patched boot images of January 2020 update.
Calibrit
Hi,
first thanks for your work and please, could you upload patched image for V10.0.18.0.PDLMIXM version of daisy?
Thanks again!
Dhananjay
Hi Calibrit. Thank you so much for taking the time to appreciate it. I have added the download links for the 10.0.18.0 patched and stock boot images above.
dox
V11.0.5.0 for mia2
Dhananjay
Hi Dox. Only the stock boot image of V11.0.5.0 is available. You will need to patch it by yourself using the instructions in Step #3 above.
Rayyan
10.0.18.0 PDLMIXM MI A2 LITE PATCHED BOOT IMAGE PLZ
Dhananjay
Hi Rayyan. I have just uploaded the new boot images. Please check again.
Sunday
Please provide already patched image for January update Xiaomi a2 lite daisy
Dhananjay
Hi, the download link has been added.
Greydi Razzaq Toffano Widajanto
please provide stock boot image for january 2020 update for mi a2 lite, so i can patched it with magisk. Thx
Dhananjay
Hi. I have added the download links above. Please refresh the page and check again.
pablo DanieL
Gracias, Mil Graciassss! rootie el mi A2 en android 10 ♥
Dhananjay
Hi Pablo! Thank you so much for confirming. Could you please tell which version of TWRP worked for your Mi A2 running Android 10?
pablo
instale root con twrp 3.3.1 y 3.3.1-5(beta) me anduvo con ambas para instalar root en android 10
Dhananjay
Hi again, Pablo. Thanks for confirming me this.
iqbal
I Like This Website So Much <3
Always Update
Apreciate it
Thank You
Str Pro
i have done all steps and phone doesnt boot. It has stuck in Android One logo.HELP
Dhananjay
Hi. Can you please let me know the software build number you were using and the stock boot image file that you used? Also, please mention whether your phone is the Mi A2 or the A2 Lite?
Str Pro
Xiaomi mi a2
Built number: PKQ 1180904001 V10.0.18.0.PDIMIXM
Stock boot image: V10.0.18.0.PDIMIFJ
Mehdi
i have done all steps and my Mi A2 phone doesnt boot. It has stuck in Android One logo.HELP
I used below files:
MagiskManager-v7.3.5.apk
stock_boot_10.0.18.0_mi_a2.img
Dhananjay
Hi Mehdi. Is it the Mi A2 or the Mi A2 Lite?
Str Pro
Xiaomi mi a2
Stock boot image
V10.0.18.0.PDIMIFJ
Build number
V10.0.18.0.PDIMIXM
Str Pro
I will try again this time in Android 10
Can you update for v11.0.5
Dhananjay
Sure. The boot image for V11.0.5.0 has been added to the downloads section.
Akash
Hi Dhananjay, I have the build number v10.0.18.0.PDIMIXM of my Mi A2 after December update. Can I use the v10.0.18.0.PDIMIFJ image? If no then how to get a copy of my boot image as most boot image backup apps ask for root access?
Dhananjay
Hi Akash. Yes, you can use that. The stock/patched boot image is universal to every Mi A2.
Patricio
I tried that on a PDIMIXM, it does flash and reboot and tries to start android (I do see androidone for say ~1 minute), then black screen, 1s of androidone, then reboot to the same loop. Flashing stock makes it boot again (but no root).
Patricio
root@kpoman-ThinkPad-X230:/home/kpoman/Downloads# fastboot flash boot patched_boot_10.0.18.0_mi_a2.img
target reported max download size of 536870912 bytes
sending ‘boot_b’ (29933 KB)…
OKAY [ 1.741s]
writing ‘boot_b’…
OKAY [ 0.234s]
finished. total time: 1.975s
root@kpoman-ThinkPad-X230:/home/kpoman/Downloads# fastboot reboot
rebooting…
finished. total time: 0.251s
root@kpoman-ThinkPad-X230:/home/kpoman/Downloads#
sakif
please provide the december update 🙂
Dhananjay
Hi Sakif. It’s available now. Please check the download links again.
SeptianAdistyan
For Xiaomi Mi A2 (codename: jasmine_sprout)
Build Number (Security Patch Version) Download Links
V10.0.18.0.PDIMIFJ (December 2019 Update) Patched Boot Image | Stock Boot Image
This Patched Boot Not For Jasmine Sprout,,
When I Download I’ts Deasy Mi A2 Lite
Dhananjay
Hello. I apologize for the inconvenience.
I have updated the post with the correct link. Please check now.
Marcin
Hello, could you upload the patched & stock boot image for Xiaomi Mi A2 Lite (V10.0.17.0.PDLMIXM) (December 2019 update) please?
Dhananjay
Hi Marcin. I have updated the post with the December boot images. Please check now.
enshoji
December update for mi a2 lite please, 10.0.17.0. PDLMIXM 🙏🏼🙏🏼
Dhananjay
Hi. They have been added. Please refresh the page and check again.
Str Pro
Could you update guide with December’s security ota update? Thank you very much.
Kevin
For step 4, part 8, where it asks me to download 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.”
I did the fastboot boot magisk patched.img part, but when I typed fastboot boot patched boot 10.0.12.0_mi_a2.img (cuz its my version) it says error:cannot load patched_boot_10.0.12.0_mi_a2.img
What do i do now???
Dhananjay
Hi Kevin. What’s the filename of the patched boot image you’re using?
radenko jovic
all done, but a root checker app shows: “root access is not properly installed in this device”??
Dhananjay
Hi Radenko. Could you please go to the app drawer and launch Magisk Manager? See if it’s showing as Magisk as installed. If it is, then your phone is rooted properly.
Afrizal
Do you have stock and patched mi a2 lite 10.0.17 ?
mrFox
After i type “.\fastboot flash boot magisk_patched.img” the powershell shows nothing (should be sending boot_a), i have waited for a while and it still shows nothing. I don’t know if the command is running or not. What should i do?
Dhananjay
Hi mrFox. When your phone is connected to the PC via the USB cable, is it properly being detected?
Please check Control Panel > Device Manager while your phone is connected to the PC in fastboot mode.
domagoj
May i add, i did bootloader unlock some 6 months ago. Had to do it on my old pc (win7 x64 pro, asus p5q-e (lga775 cpu)). On my newer pc: win 10 pro, Ryzen 5 2600, Msi b450a-pro mainboard, tried several usb ports, oem xiaomi cable, i got issues as mrFox describes, sometimes it would respond, sometimes it would halt.
Can’t recall exactly, but something to do with usb and amd…
Dhananjay
Hi. It has to do with AMD. ADB/Fastboot doesn’t play well with AMD PCs and USB 3.0/3.1/3.2 ports.
Always try and use a Intel PC with a USB 2.0 port.
Nandan Holla
Hi, I tried to flash the patched img using Ryzen but I got
FAILED(Write to device failed(Invalid Argument))
And in Intel I got
FAILED(Write to device failed(Unknown Error)).
I followed every step but still I’m getting error during this process….Pls help
Dhananjay
Hi Nandan. Fastboot commands are often known to cause errors when used on AMD PCs. However, with Intel, they work just fine.
First of all, let me know which version of Android SDK platform-tools are you using? Did you use an automated tool to install it or did you download the tools directly from Google?
Nandan Holla
I was using 29.0.5 v of platform tools…I just downloaded it from google
Sameer
Hi,
December patched boot update is not available in the link. When i go through the patched boot link it is redirecting to stock boot. Please help.
Suresh Kumar
Hi installed patched boot 10.0.17.0 to my A2
But I can’t see any magisk app on my app drawer
I proper unlock bootloader and critical but nothing to do rooty phone without installing twrp
Please suggest me
Dhananjay
Hi Suresh. Please download the Magisk Manager APK from here and install it on your phone. Then launch the Magisk Manager app and see if it shows that Magisk is installed.
Make sure that you do all this while your phone is booted with the 10.0.17.0 patched boot image.
Deki
Hi! I’, on Mi A2 lite. I’m curious about the procedure to extract the boot.img. Is it extracted from the OTA dump? So how do you get the OTA dump and then you extract the boot.img?
I also noticed that there are 64 MB boot.img, which I believe are created by making a backup of the entire boot partition, using the TWRP. Right? These boot.img are not reliable because they are modified in some way by the installation of the TWRP, no?
Sorry for my bad English!
Dhananjay
Hi Deki. Yes, the boot.img can directly be obtained from a full OTA dump (Note, that incremental OTA dumps should and cannot be used). Most OTA files are shared over at online communities such as XDA or 4PDA. You can grab the OTA, extract it to get the “payload.bin” and then further extract the payload.bin file using the steps in this guide to finally obtain the boot.img.
Yes, if you have TWRP permanently installed, then your boot.img is surely patched and no more the “stock” boot.img.
Javier
ya está disponible v10.0.16.0PDLMIXM fastboot? no encuentro la imágen para magicks
Dhananjay
Hi Javier. I have updated the post with the links. Please refresh the page and check again.
anand
hai man, my a2 is stuck on boot screen, am on stock rom with boot unlocked with october security patch, can you help
khaled mostafa
Writing ‘boot’ FAILED (remote: ‘Partition flashing is not allowed’)
i have this problem when i boot in platform tools 🙁
Dhananjay
Hi Khaled. Have you unlocked your phone’s bootloader using the following commands?
1) fastboot flashing unlock
2) fastboot flashing unlock_critical
Ricky
Nomor versi perangkat lunak saya adalah 10.0.16 Oktober 2019… sedangkan tulisan di atas hanya tersedia 10.0.15… tolong di jawab
Pratyush Raj
sir whenever i try the above method i get an error in power shell windows
FAILED (command write failed (No error))
finished. total time: 0.005s
like this and a message comes up in my phone display press any key to shutdown
hv a updated my phone to aoctober patch with usb debugging enabled and oem unlocking turned on
Pratyush Raj
furthur my fone gets frequently stuck in bootloop after october patch
Dhananjay
Hi Pratyush. Is your phone’s bootloader unlocked?
Are you talking about the regular Mi A2? If yes, then I must mention that the early October update (V10.0.15.0) is known for bootloop issues. Following this, Xiaomi rolled out another update as V10.0.16.0 to fix it.
Pratyush Raj
yess the regular mi a2
Pratyush Raj
moreover i didnt get V10.0.16.0 update
and i cant unlock my bootloader please help
Pratyush Raj
sir its not getting unlocked ? whenever i try unlocking it i get an error in power shell windows
FAILED (command write failed (No error))
finished. total time: 0.005s
like this and a message comes up in my phone display press any key to shutdown
and i have enabled allow oem unlocking and usb debugging from developer’s options ps can u contact me in my mail i need a detailed help
pratyushraj2fastandfurious@gmail.com
Dhananjay
Hi Pratyush, please provide an answer to the following questions so that I can help you better.
1) Are you using an Interl-based or an AMD-based PC?
2) Are you using USB 3.0 or USB 2.0 ports (on your PC) to connect your phone?
Pratyush Raj
3.0 ports and intel based pc dont have any usb 2.0 ports only 2 usb 3.0 and 1 usb 3.1
Pratyush Raj
intel 9th gen i5
Dhananjay
That clears it up. You will need to try with a different PC, using a USB 2.0 port.
USB 3.0/3.1 ports often cause problems when it comes to using fastboot.
Fendi
I just emailed you about my mi a2 lite.
Your website latest update its (V10.0.15.0.PDLMIXM)
but my phone already updated to (V10.0.16.0.PDLMIXM).
So i need to root my phone with the latest patched boot. I think you can help me to update a new patched boot at MI A2 LITE.
Dhananjay
Hello Fendi. I have replied to your email, please check.
takhama
Hi, the stock boot V10.0.15.0.PDLMIXM (October 2019 Update) for mi A2 LITE seems actually to be patched with magisk.
Each time I flash it, I have magisk activated…
Dhananjay
Hi. By “activated”, do you mean that you see that Magisk is installed when you open Magisk Manager?
takhama
Hi Dhananjay, here is what I do: uninstall Magisk from Magisk manager. After the phone reboots, i have a “no command” message. So here I flash the stock image of november for Mi A2 Lite. After that, I install Magisk Manager apk and it shows that Magisk is already installed !
Dhananjay
Oh. First of all, I think you’re talking about the “October update” and not “November update”, am I right?
Could you try flashing this stock boot image and see if it helps uninstall Magisk?
Takhama
Hello, in the mean time I found another stock image and it worked with it ! Thanx !!
Dhananjay
Hi. Did you try with the stock boot image I linked in the comment above? Or just the other one that you found?
Tahhama
Hi, another one I found. I don’t remember where, but probably on xda.
Thanx for your help !
Dhananjay
Hi again, Tahhama. Thanks for the response! Glad I could help.
Project Nova
How about the v10.0.15.0 of Mi A2?
I just got it today but it said it was released on October 5, 2019.
Do you have the patch yet?
Dhananjay
Hi. The download link to the boot images is now available.
Nico van Draanen
The stock and patched boot images from the october ota update, for daisy (mi a2 lite):
Stock: https://www.androidfilehost.com/?fid=1899786940962611599
Patched: https://www.androidfilehost.com/?fid=1899786940962611552 (patched with Magisk 20.0)
Dhananjay
Hi Nico! Thanks a lot for uploading and sharing it with us. I have updated the links, along with appropriate credits.
Guy
Merci pour cet article tres bien documenté. Je rajoute une petite chose :
avec magisk 20.0 il est IMPERATIF d’utiliser magisk_patched crée par magisk 20.0.
Dhananjay
Thanks for the appreciation Guy! Magisk v20.0 was only released recently. The upcoming boot images will be patched using Magisk 20.0, I assure you.
Atmajaya
Hi please December patched boot
Mike
Maybe not many people notice this but could someone check if they experience the same problem:
*only* when I switch off the phone and attach the charger, I get stuck at the ‘android one’ splash screen (with the unlocked lock on the bottom of the screen). Also the screen stays on after I detach the charger. It only happens after I flashed the patched boot image.
The device is completely stock and untouched (I just flashed the stock 10.0.9 image). Reverting the patched boot image back to the stock boot image shows the normal green battery again while charging (as expected).
Does Magisk kill the charging screen?
Mike
Excuse me, I forgot to mention that I’m on a A2 lite and that I used the 10.0.9 and the 10.0.14 patched boot images. Thank you in advance!
Dhananjay
Hi Mike. First off, make sure that you only use the patched boot image for the version installed on your phone.
For example: If you have September update (V10.0.14.0.PDLMIXM) installed (Go to Settings > About phone to check it), then make sure that you flash the patched boot image for V10.0.14.0 only.
Also, you don’t have any Magisk Modules installed, am I right?
Mike
Hi Dhananjay, thanks for the quick reply, and yes, I checked that versions were correct. That also was easy to do because I just did a clean flash with the stock rom in the particular version right before it. No other apps, mods or magisk modules are on the phone.
I patched the original boot.img from the original miui ROM myself (on another phone with Magisk 19.3). But also tried the patched ones on this site.
Dhananjay
Hi Mike. That’s odd. Have you tried patching with v19.4?
Kevin
One major question. If A2 finally receives the Android 10, will this tutorial still works? Like uninstall magisk, then apply the OTA update, then install magisk and reboot?
Dhananjay
Yes, of course it will. The latest version of Magisk fully supports Android 10’s new 2-stage-Init system-as-root approach.
Once the OTA arrives, follow this guide that I recently posted. I would suggest that you disable automatic updates right now itself, not only for Android 10 (when it arrives), but also for future monthly updates. Once done, just follow the instructions in the linked guide and install the OTA. It will retain root after the update too.
Gayanuka
How can I uninstall magisk completely and install stock boot image to restore my device?
Dhananjay
Hi. First of all, please let me know the exact build number your device is on (Go to Settings > About phone to check it).
Gayanuka
Sir I’m in V10.0.14.0.PDIMIXM
Gayanuka
Sir my build number is V10.0.14.0.PDIMIXM.I didn’t root my phone yet, I didn’t unlock even the bootloader.The phone is still in factory condition I setted up adb and Xiaomi USB driver I’ll unlock the bootloader later first I need to know the full unistallation of magisk on Mi A2.I love androidone program so I need OTA updates.I know I shouldn’t do the full unistallation to get OTA updates but I prefer the full unistallation.
Dhananjay
Hi. Thanks for providing the info.
Now first off, follow the un-installation instructions in this post (Towards the end of the post).
Once done, boot your phone into fastboot mode and execute the following command in PowerShell to flash back the stock boot image: fastboot flash boot stock_boot_10.0.14.0_mi_a2.img
Although Magisk will automatically restore the stock boot image when uninstalling, flashing the stock boot image will ensure that everything is in the right order.
Gayanuka
Okay sir thank you so much for your support I’ll follow your steps. XD
Dhananjay
Oh. You didn’t even have an unlocked bootloader yet? Please always make sure that you mention about your device’s current state and details first, just a suggestion. I thought your phone was already rooted.
Gayanuka
I just succesfully installed magisk on my device! thank you sir. You’re a god.
Dhananjay
Thank you for the kind words, Gayanuka. Hope to see you around the blog more often!
Kevin
the process has been updated if I’m not mistaken?
Dhananjay
Hi again Kevin. Glad that you’re sticking around more often.
Yes, the whole process has been re-written from scratch. Although the method is same, I have tried and put it in a more detailed and explanatory approach.
Balistikk
To the people who where using the OEM unlocking option in the developer options and getting the partition error you need to unlock your bootloader. I am using a MI a2 lite and the fastest way of unlocking for me was using this video https://www.youtube.com/watch?v=nF40JH2FKWU
It is in indonesian but the instructions are simple enough. Download the link from his description and follow what he writes after connecting your phone to your PC and putting it in fastboot and then follow the instructions on this page.
(YOUR DATA WILL BE WIPED MAKE SURE YOU BACKUP)
The reboot after unlocking takes about 5 – 10 mins. You should get a warning message saying your device is unlocked.
Thank you for the great tutorial Dhananjay.
Dhananjay
Hi. Thanks for the kind comment and for helping out other readers. We too have a guide on how to unlock the bootloader on Mi A2 series, it’s quite simple actually.
guilherme henrique eufrásio
Infelizmente quando eu fui dar o comando fastboot flash boot magisk_patched.img o telefone reiniciou e deu “The system has been destroyed” como posso resolver?
Dhananjay
Hi, I am gonna need a bit more detail before I can help.
First off, what’s your device? Is it the regular Mi A2 or the Mi A2 Lite?
Second, what was the exact build number you had installed on your device prior to following the procedure?
Nico van Draanen
Here are the stock and patched boot images from the september ota update, for daisy (mi a2 lite):
stock: https://mega.nz/#!FMFzDQaD
patched: https://mega.nz/#!ZRVVlIAR
Dhananjay
Hi Nico. Thanks a lot for sharing that with us. However, the links require a decryption key. Could you please share the complete links with decryption keys?
Towhidur Reza
Hello Nico,
Please share the decryption keys.
Nico van Draanen
sure, here are the links with keys:
stock: https://mega.nz/#!FMFzDQaD!Y8Wf2JkRqPhPOj5jQzwDoActOMCN3Ee3hdx6NUH_eV8
patched: https://mega.nz/#!ZRVVlIAR!YMxu_vH1JwTWEjns0S8L6N9Y92Jgv9–hC3ukAFWkPo
Dhananjay
Thanks a lot, Nico. I have added the links to the downloads table above, with appropriate credits at the end of it.
JuanMa
Hello, I tested those boot images from the september ota update on my Xiaomi Mi A2 Lite V10.0.14.0.PDLMIXM, and it didn’t work. I have installed others boot images before but those just endlessly keep loading. Has anyone worked those boot images?
Dhananjay
Hi JuanMa, could you please elaborate a bit more? Are you sure you downloaded the patched boot image for the Mi A2 Lite and not the regular Mi A2?
JuanMa
I ran those commands:
$ fastboot devices
xxxxxxxxxx fastboot
$ fastboot getvar current-slot
current-slot: a
“It was working on a”
$ fastboot flash boot_b patched_boot_mi_a2_lite_10.0.14.0.img
sending ‘boot_b’ (27462 KB)…
OKAY [ 0.743s]
writing ‘boot_b’…
OKAY [ 0.160s]
finished. total time: 0.902s
$ fastboot set_active b
Setting current slot to ‘b’…
OKAY [ 0.022s]
$ fastboot reboot
This was the boot image I downloaded “patched_boot_mi_a2_lite_10.0.14.0.img” and my celphone is Mi A2 Lite.
Dhananjay
So, now it works, right?
Dhananjay
Hi. Before this process, your phone was on slot a, right? So did you install the September OTA while your phone was booted on slot a?
JuanMa
Hi Dhananjay, yes I did.
Later, I ran the command as you posted:
“fastboot flash boot patched_boot_10.0.14.0_mi_a2_lite.img”
without set the slot. Thanks, have a nice day.
Joao Costa
hi, how can i access the files ? thank you
Dhananjay
Hi Joao. You can do so by simply clicking on the download link corresponding to the software version installed on your phone.
If possible, please elaborate a bit more about the problem you’re facing.
Fisher
Sir, do I need to replace boot img to stock while OTA update ? If yes how can I do that ?
Dhananjay
Hi Fisher. You can take OTA updates on your rooted phone and preserve root after updating too.
However, I have to be a 100% sure before I guide you any further. Actually, the OTA installation method will only work if Magisk Manager can successfully restore the stock boot image. So, do the following for me and let me know what happens:
Go to Magisk Manager, tap on Uninstall, and then select ‘RESTORE IMAGES’. When you do that, let me know what output message it shows. If it shows ‘Restoration done!’, then we can proceed. Otherwise, we will have to do it manually.
And don’t worry, in either case, the process is quite simple.
antonis
Hi,
Cannot install update with magisk,how do I manually update?
Thank you
antonakis
Hi,
I have succesfully rooted phone with your guide, but cannot install OTA updates with the guide you have linked.
Can I unroot ,reflash then OTA upgrade, and root again using your guide?
Dhananjay
Hi.That is because the current inactive slot still have some modification present, and thus the update fails. Please follow the instructions I have listed in this comment and then re-root using this guide. Make sure that you patch the stock boot by yourself (Step #3), because Magisk takes a backup of your stock boot image while patching. It could then be used to restore the images while following the OTA installation guide.
Cristian
Good afternoon, I am in version v.10.0.7.0.PDIMIXM on Mia2, I tried to remove the root but when I did the computer was left without internet, I went back to root it with the boot you put but when entering the magisk and install version 19.3 I Error appears, what should I do ?. Sorry for the English.
Dhananjay
Hi. Which patched boot image did you use? Was it specifically for V10.0.7.0? Also, could you please let me know the exact error that you see on the screen?
Kevin
https://androidfilehost.com/?w=files&flid=297954
stock boot images for jasmine_sprout (August Security Update)
Dhananjay
Hi. Kevin. Thanks a lot. In fact, I got hands-on the fastboot image for the Mi A2. However, haven’t patched the boot image from that yet.
I will just link to these ones. Could you please share the link of the source with me? I would like to give appropriate credits to him, as well as to you.
Kevin
Hello Dhananjay, I got this from the official telegram group and I can confirmed that its legit. I used to root my device.
Dhananjay
Great! I have added the links with apt credits. Thanks again.
Dipu
hi. can you tell me how can i get pure stock boot.img file from Daisy without root? please
Dhananjay
Hi Dipu. Do you mean you want to extract the stock boot image from your phone itself?
The easiest way, however, is to grab the stock boot from the fastboot image or by extracting the Payload.bin from the full OTA package.
Kevin
Hi! I love your tutorials here in customdroids. I’m using it enabling camera2api and rooting my Mi A2. I just want to ask if you have a guide on how to keep magisk (root) and keeping OTA updates? Thank you and more power
Dhananjay
Hi Kevin. Many many thanks for those kind words. Now that you say, I remember that I wrote the guide on that, however, never got to finish it. I will do that now and publish it.
Kevin
Hi Dhananjay, any news about the tutorial? Thanks
MaNeX
Is there any july patched boot updated
Dhananjay
Hi. Only for the Mi A2 at the moment.
MaNeX
Thank for the reply, is there any patched boot for mi a2 version v10.0.12.0.PDIMIXM sorry bad English…
João Maroco
Hi Dhananjay,
Can you please update the link for the Daisy July update boot.img and patched_boot.img? The Mega link is not working…
Thanks!
Dhananjay
Hi. I have added mirror links, you can check that one. From now on, I will be adding a mirror link for every boot image.
antonis
Hi,
i rooted device mi a2 lite with V10.0.10.0.PDLMIXM, but after reboot i lose root and need to reflash.
Dhananjay
Hi Antonis. When you booted your phone with the patched boot image, did you go to the app drawer and use Magisk Manager to permanently install Magisk (Step 9 to 12 above)?
antonis
Hi,
Thanks very much that fix the problem!!
Dhananjay
Hi again. I am glad it did!
antonis
Hi,
Thanks for your guides, how do i update to July security patch V10.0.12.0.PDLMIXM?
Dhananjay
Hi. If you used this method, then follow the instructions here. Make sure to follow them all and in the given order.
antonis
Hi,
I did this but install fails every time
Syed Ali Raza
I can not get the 4 options for Select Method for installing
magisk.
Got two options as 1.Download Zip Only, 2. Select and Patch a file. Please help.
I use V10.0.10.0.PDIMIXM patched boot.img please help.
Ángel Milán
Good afternoon, what happens is that when i run Magisk Manager I only see two options, per disk image and download the ZIP.
Honestly I do not know what it is due, I have the device with the bootloader open, it has Android 9, with the patch of June 2019, build number 10.0.10…
I don’t know if this is because I misreleased the bootloader, I don’t know…
Postdata: I don’t know English, I used Bing’s translator.
Vivek
Is it the Miui ROM or the Stock Android ROM?
I have downloaded the following files from miui’s website.
jasmine_global_images_V10.0.9.0.PDIMIXM_20190513.0000.00_9.0_bbaa8993fe.tgz
Please help!
rishabh
please upload new patch boot image of mi a2 10.0.10.0.PDIMIXM i want to root my device please help me.
Dhananjay
Hi Rishabh. The patched boot images of V10.0.10.0 (June 2019 update) for both the Xiaomi Mi A2/A2 Lite are now available. Please check the Downloads section.
Bruno
Hi it is possible to update mi a2 lite to 10.0.10. 0 already rooted with magisk? Without formatting the smartphone? Thank you
Dhananjay
Hi Bruno. Which method did you use to root your Mi A2 Lite?
Bruno
I always root with the method you posted here with boot patched but every time I have to format
Dhananjay
Hi, again Bruno. What do you need to format the phone every time? During the whole procedure, the phone will only be wiped when you unlock the bootloader.
Bruno
hi Dhananjay,
I already have the bootloader unlocked and the root with the previous bootpatched, I don’t understand how to do ota updates, thanks
Pavel
Dear Dhananjay! Thank you very much for updating this useful site!
Where can I download Stock Boot Image for Xiaomi Mi A2 Lite?
I can’t find “stock_boot_10.0.9.0_mi_a2_lite.img” file or something like that anywhere.
Pavel
I’ve found and downloaded full firmware file “daisy_global_images_V10.0.9.0.PDLMIXM_20190514.0000.00_9.0_f9d0c739e0.tgz”, looked for “boot.img”, and it is there in the “images” folder (27’895’114 bytes in size), but I’m confused by the modification date “2008-12-31”. Many other files in the same folder have the date closer to current – “2019-05-14”.
Is this “boot.img” really stock boot image, that I’m looking for?
My download source is the following (it is said that it’s anofficial source).
Dhananjay
Hi Pavel. Yes, that’s the correct boot image, don’t worry about it at all.
Pavel
Thanks a lot! This is really good news.
Dhananjay
You’re welcome, Pavel!
Dhananjay
Hi again, Pavel. I have now added the link to the stock boot image for V10.0.9.0 for Mi A2 Lite if you still need it.
PEPO :3
Hey Bro :3
(Sorry for bad English, it’s because I’m from Brazil hahaha.)
I have an Mi A2 Lite and did root it, but I can not update my Android (V10.0.7.0.PDIMIXM). I tried to press “Uninstall” on the Magisk and rebooted the device, but then it appeared on the Android icon with an exclamation point and below it was written “No command”. To get the system started, I went to the Fastboot screen and made the Stock Boot flash of version 10.0.7.0. Since then, I can only boot my device through Stock Boot.
How should I proceed? Do I need to format my device so it returns to normal and does not need the Stock Boot file? If I can reverse this situation without formatting, how do I update the system to the latest version if my device is root?
Thanks in advance! :3
Dhananjay
Hi. During the update process, you missed some points. For now, I would suggest that you flash the stock firmware image. Once done, follow this method to root your device again. Further, when an update arrives, just follow all the instructions here.
junior farias
olá, estou tendo problemas com os comandos para utilizar o patched v10.0.9.0 do Mi A2 lite.
ao colocar o comando ¨boot fastboot¨ mais o patched ele da erro: ‘boot’ não é reconhecido como um comando interno
ou externo, um programa operável ou um arquivo em lotes. o que fazer ?
Dhananjay
Hi. You have to enter “fastboot boot patched_boot_10.0.9.0_mi_a2_lite.img” and not “boot fastboot”.
Ko Htoo
Need Mi A1 10.0.10 patch_boot.
Dhananjay
Hello. You can get it from the Mi A1 specific post here.
Chrysolyte diaz Cerezo
Hello, do you have V10.0.9.0.PDLMIXM?
Dhananjay
Hi. Yes, the links are now up, please check again.
Sarath
Hi bro, i installed twrp3.3.0 on my mi a2, but when i try to get into recovery i am stuck at twrp logo.now i want to go back to stock recovery..so can u help me get back my stock recovery ?
Dhananjay
Hi Sarath. Yes sure, I would be happy to help. Please let me know the software version (Build Number) installed on your phone.
Amn
Hey there, I flashed latest patched boot img successfully on my mi a2 but after every reboots magisk is getting uninstall.. please help
Dhananjay
Hi. After booting the phone with the Patched Boot Image, did you open Magisk Manager and install Magisk using the app (Step 9 to Step 12)?
Timo
Patched Boot Image V10.0.8.0.PDLMIXM direct link for a2 lite doesnt work (incorrect img?) while the mirror img works fine.
Dhananjay
Hi Timo. Please check the link again. I have verified that it works just right on my PC and mobile.
THANT SIN
I can not get the 4 options for Select Method for installing
magisk.
Got two options as 1.Download Zip Only, 2. Select and Patch a file. Please help.
Dhananjay
Hi. That means the patched boot image was not booted properly. Please use the fastboot command and boot your phone with the corresponding patched boot image.
Bruno
Hi, is it possible to update mi a2 lite without formatting the smartphone? Thanks
PEPO :3
I have the same problem
Dhananjay
Hi. Do you mean a software update via the OTA?
Simian
Hi! Please help-me, i have an Mi A2 LITE (Daisy) V10.0.8.0.PDLMIXM but in dowload section the V10.0.8.0.PDLMIXM file is for Mi A2 (jasmine_sprout)… how to proceed?
And more one question, pokemon go and their safenet works in magisk?
Dhananjay
Hi. I have just added patched boot images for both Mi A2 and Mi A2 Lite. These are patched with version 19.1 of Magisk.
Tulio
The patch fixed for Mi A2 Lite 0.80 April?
Dhananjay
Yes, it is available now.
Guilherme
I installed stock rom 10.0.7, but , now my MI A2 can’t install automatically patch from april 2019.
PS: Boot of MI a2 is to slowly!!!!
Could you help me?
Tulio
I have the same problem.
marko
I have a problem with fastboot boot patched boot. especially copying the file name please reply.
Dhananjay
Hi Marko. Please let me know exactly where are you facing this problem.
sadman sakib
show it take this long to boot?????
Dhananjay
Hi. It shouldn’t take more than a minute, at maximum. Are you sure that you used the patched boot for the software build number installed on your phone? If you’re running V10.0.8.0 on the Mi A2, then you should use patched boot of V10.0.8.0. Using a different version or mixing boot images of the Mi A2 with the A2 Lite or vice-versa will result in bootloop.
Patrick Thurmond
Yeah, that part wasn’t clear to me. Any way to clear the bootloop?
Dhananjay
Simply flash the stock boot image corresponding to the software version (build number) installed on your phone.
goody
hey good day can install magisk even though the twrp version is jasmine sprout?
Dhananjay
Hi. I am sorry but I am not fully able to understand what you’re trying to ask. Please elaborate a bit more.
Richard
hi try to do the procedure to root my MiA2Lite but when giving the command “fastboot boot C: \ adb \ patched_boot_10.0.7.0_mi_a2_lite.img
downloading ‘boot.img’ …
OKAY [0.908s]
booting …
FAILED (remote: unlock device to use this command)
finished total time: 0.929s “, and it does not allow to finish the process, thanks for the help that they can offer me.
Dhananjay
Hi Richard. You must first unlock the phone’s bootloader before you can use this method to root the device. Make sure that you take a backup of your device including the internal storage, as unlocking the bootloader will erase the device completely.
There’s also a simple trick to avoid data wipe when unlocking the bootloader (Click here to view), however, take a full backup regardless of that.
Rafael Pazini
I had updated to V10.0.8.0 PDIMIXM “/.. Did you know when the patched image will be released?
Dhananjay
Hi. Patched boot and stock boot images for V10.0.8.0 are now available, please check the downloads section.
Feri367
Hi my bro, in magisk manager i don’t see direct install!! I see 2 options.
Download zip file and patch boot image file.
Mi A2 lite , android pie v10.0.7.0 PDLMIXM
My file name is patch. img
My entered command is :
Fastboot boot patch.img
Is it true?
Dhananjay
Hi. Yes, you need to enter that command if the filename is ‘patch.img’. Once the phone boots with the patched boot image, you should see the install option in Magisk Manager.
Akshay
I am not able to see install options why thank you
Dhananjay
Hi Akshay. Please let me know the device name and software version installed on it.
Ymirein
Hello, i download patched_boot.img for mi a2 (V10.0.7.0.PDLMIXM) but when i write fastboot boot patched_boot.img i see: no such file or directory. Can u help me?
Dhananjay
Hi. You must ensure that the patched boot image file is placed where the fastboot.exe (platform-tools) are extracted on the PC. Once copied, hold the SHIFT key on the keyboard and right-click on any empty space inside that folder. Then select ‘Open PowerShell window here’ option and you should be good to go.
Corrado
Hi,
I’m stuck with 10.0.2.0 as I’ve been scared to update OTA as when I did it in december with PIE I ended up in bootloop using the XDA OTA method (which worked well until PIE arrived). I was wondering now how to safely update to 10.0.7.0. I’va latest magisk with cam2api installed (just for the gcam). If I go to update in settings it doesn’t tell me a generic “problem with installation” as when there was 10.0.3.0 and 10.0.4.0 available. It just tells me the update is about 1GB and there’s a button “reboot now”. If I reboot phone myself nothing happens (I switch it off every day) as i switched off the automatic updates. Don’t know which improvements the 10.0.7.0 brought but I wouldn’t like to remain in 10.0.2.0 forever 🙁 many thanls
Dhananjay
Hi. Don’t worry. The rule of thumb when it comes to OTA updates on rooted devices is that they should be completely stock (Boot, System, everything else).
Here’s what you can do:
1) Download stock boot image for V10.0.2.0 for your device (Make sure you choose for the correct device Mi A2 or A2 Lite).
2) Uninstall Magisk completely from Magisk Manager
3) Then boot your phone into fastboot mode and flash the stock boot image:
fastboot flash boot stock-boot-filename.img
4) Then reboot your phone and install the OTA
Once you have updated, let me know. I will guide you further to re-root without any problems.
Corrado
ok do you know where I can find stock boot image for V10.0.2.0? Unfortunately It’s the only one missing in your guide :(. Do you think I can then just install the cam2api without rooting following for instance **Link removed by the moderator** and not having to worry anymore about updates? FInally as I’m already in PIE 10.0.2.0 is it worth to go through all of this risky business to have an updated system where I may not even notice the actual benefit of it? SUper thanks for your help!!!
Dhananjay
Hi again. The stock boot image for V10.0.2.0 for the Mi A2 Lite can be downloaded from here. The credits go to XDA senior member minnuss for sharing it with the community.
Corrado
HI it’s me again. Still didn’t do anything as I’m a bit scared … perhaps can i try the link you provided some posts above
what would be the worse thing to happen? if it goes into bootloop (as it did to me passing to PIE) can i follow your steps above in reply to my request
? Many thanks
Dhananjay
Hi again. First off, make sure that you backup everything. Contacts, messages, call logs, images, videos, music, and complete internal storage. Once that is done, we can go ahead without any risks. Don’t worry, the process is quite simple and easy to perform.
Once you have backed up, let me know so that I can provide you with further instructions.
Rick F
Hi!
I followed this guide but it didn’t work for me. There is no Magisk app after booting with the patched bootloader…
Is it because I didn’t wipe the data when I unlocked the booloader (I kept the volume down pressed)?
Dhananjay
Hi Rick, that’s highly unlikely the reason. In most cases, it is the issue with the device-PC connection. Please try a different USB port on the PC, preferably a USB 2.0 port.
Guilherme
Hello my dear
I did root my cell phone, but I tried to remov root and made some errors.
I would like to ask for help, to restore the original bootloader from my XIAOMI A2 cell phone.
My phone does not boot any more by itself, just using the command below.
fastboot boot stockrom.img
Can someone please help me urgently ????
Guilherme
Hi, i did try remove root, but i have a problem.
When i restarted my phone i cant start Android one.
I can start my phone only with comand fastboot boot stockroom.img
Someone can help me?!
I woud like reatore original bootloader and remove root .
I own XIAOMI Mi A2 (jasmine_sprout) A2 128GB / 6GB, but it has been updated to version V10.0.7.0.PDLMIXM
Dhananjay
Hi. Simply download the stock boot image for version 10.0.7.0 for your Mi A2. Then flash it to your device using:
fastboot flash boot stock_boot_10.0.7.0_mi_a2 .img
Once flashed, reboot your phone by entering: fastboot reboot
Let me know how it goes. Good luck!
Guilherme
I Will try it,
Thanks in advance
Dhananjay
Hi. Did you try it? How did it go?
Guilherme
Yes,
worked correctly!
thanks for the support!!
Guilherme
my friend,
worked correctly!
thanks for the support!!
Dhananjay
Hi again! I am glad it did.
Jonas
Hi Dhananjay ,
My device ins´t on developer mode and I can´t init it because it´s on mode bootloop. How can I unlock my device or init it?
I try root with jasmine and display the mgs:
“FAILED (remote: Flashing is not allowed in Lock State)”
I send to you a e-mail explain the situation.
Please help, thanks
Dhananjay
Hi Jonas. Being stuck in a bootloop when the bootloader is locked is bad. However, the fact that the device uses A/B partition, there could be decent chance that it could be fixed.
Here’s what I want you to do:
Then enter the following command in terminal (Command Prompt/PowerShell) to check which slot is currently active: fastboot getvar current-slot
Now, it will either show slot a or b. Now, we will need to switch to the inactive slot. So, if the current slot is “a”, we will need to switch it to slot “b” or vice-versa.
To do this, enter the command: fastboot set_active b (If the current active slot is a) or fastboot set_active a (If the current active slot is b)
Once you have activated the other slot, enter ‘fastboot reboot’ to boot your phone into the OS.
Check if the phone is able to enter the OS now. Do get back to me with the result.
Benjamin Nyagaka
Hi, my phone is rooted
I am on 10.0.7.0 mi A2
I want OTA updates but off course I can’t update with my phone rooted
If I flash the stock boot image of 10.0.7.0 will my phone be factory reset?
Dhananjay
Hi Benjamin. No, flashing the stock boot image will not wipe the phone at all.
First, make sure that you disable and remove any Magisk Modules that you might have installed. Then uninstall Magisk completely from Magisk Manager. After that, boot your phone into fastboot mode and flash the stock 10.0.7.0 boot image.
When all this is done, you can reboot back into the OS and install the OTA update.
Pavel
Dear Dhananjay! Thank you very much for sharing your knowledge!
I used your information to root my Xiaomi Mi A2 Lite with Magisk. This happened in January 2019.
Then in February 2019 I successfully followed these steps of another guide (from XDA forum) to apply OTA update v.10.0.4.0 to my phone:
“12. When you know that a new OTA update is available and you want to install it, open Magisk Manager, and tap on “Uninstall” > “Restore Images” but very important: absolutely don’t reboot the phone now!
Important note: Magisk Manager will restore the boot.img that was found on the phone while installing Magisk. If the boot.img was already non-vanilla (for example you flashed the boot.img with TWRP before installing Magisk), Magisk Manager will backup that modified version of boot.img, and when restored the OTA will not work, as that’s not a vanilla boot.img.
13. Close Magisk Manager and go to “Settings” > “System” > “System update” and install the OTA update.
After the update is downloaded, a two-stages update will begin.
14. When both stages of the update process completed, it will ask to restart: DON’T DO IT!. Open Magisk Manager again and tap on “Install” > “Install” > “Install to Inactive Slot (After OTA)” and after that you can tap on “Reboot”.
After the reboot you will have the updated Android version with Magisk already working.”
I was able to update to v.10.0.4.0, but now the guide from XDA forum is no longer working for me in my attempt to apply v.10.0.7.0.
I stumbled on step 13, where I go to “Settings” > “System” > “System update” and try to install the OTA update. It downloads successfully but after some little time the “System update” interface reports that it will automatically resume when the device will go into idle mode (also the “Resume” button at the bottom of the screen is available). When I tap on it, it fails to install update.
So, according to the warnings in the guide, I think now I can’t reboot without issues. (And I need to reboot to change SIM card in my phone.)
Please kindly tell me what to do after I uninstalled Magisk by tapping “Uninstall” in Magisk Manager? Do I
What steps to take to safely update via OTA in the future?
Thank you and God bless you!
Dhananjay
Hi Pavel. The instructions that you listed above are correct for when you need to take the OTA.
BUT, they will only work if you yourself patch the stock boot image using Magisk. Magisk Manager only backs up your stock boot image when you patch it by yourself. On the other hand, if you take the patched boot image from somewhere else (Like here), then restoring the stock boot images via Magisk Manager to take the OTA update wouldn’t work.
So, to deal with this, you can simply uninstall Magisk from the app. Also, make sure that you disable and remove any and all of the installed Magisk modules. And, also undo any modifications that you might have done to the system manually.
Once done, reboot your phone into Fastboot and restore the stock boot image (Provided above) for the software version/build number installed on your phone.
When you do this, you ensure that the system is completely untouched and also has the stock untouched boot image running. Then you can take the OTA.
Dhananjay
In short, here’s what you have to do:
1) Disable and then remove all Magisk Modules
2) Undo any system modifications that you might have done (Like editing the build.prop file)
3) Uninstall Magisk completely using Magisk Manager
4) Restore the stock boot image via Fastboot
5) Reboot the phone and install the OTA
Once the OTA has been installed, you can follow the rooting procedure again. I know it sounds lengthy but when you get hold of the process, it is a matter of just a few minutes.
Let me know if you have any further questions. And yes, the instructions you posted for OTA update, if you want to do that from now on, you can patch the stock boot by yourself. When you do that, Magisk Manager will be able to backup the stock boot image and you can then follow the instructions to take the OTA update.
To know how to patch the stock boot image using Magisk Manager, please refer to this tutorial of ours.
Ivan
Hi
Im trying to root V10.0.7.0.PDLMIXM Android on my A2 Lite with Magisk.
After fastboot boot patched_boot.img
Im getting bootloop, phone cannot boot (google lines endless loading).
After restart, goes well but no root.
Please help ! Thanks
Dhananjay
Hi Ivan. Are you sure that you download the Patched Boot Image for Mi A2 Lite and NOT the regular Mi A2?
eXplodez
Thank you very much for your work. However, I tried it and everything seems fine but after reboot the root disapears. I have tried several times without luck.
I am on V10.0.7.0.PDLMIXM, any ideas?
Thanks!
Dhananjay
Hi. Root will disappear since we are only temporarily booting the patched boot image. Once you have successfully booted the patched boot image, open Magisk Manager from the app drawer and tap on the ‘Install’ button.
Guilherme
Hello,
Please, I would really appreciate your help.
I own XIAOMI Mi A2 (jasmine_sprout) A2 128GB / 6GB, but it has been updated to version V10.0.7.0.PDLMIXM.
How do I proceed to perform the root ???
I would like to root to try to recover some videos with apps, since I deleted them and disappeared from the bin.
If you have any suggestion of app to recover videos thank you.
Dhananjay
Hi. Patched boot for V10.0.7.0 (March update) is now available. Please download that and follow the instructions to root your phone.
Guilherme
tksss
Guilherme
c:\adb>.\fastboot boot boot.img
Sending ‘boot.img’ (29901 KB) FAILED (Write to device failed (Too many links))
fastboot: error: Command failed
can you help me???
Dhananjay
Hi. Please try a different port on the PC/Laptop, preferably a USB 2.0 port.
Guilherme
I installed stock rom 10.0.7, but , now my MI A2 can’t install automatically patch from april 2019.
PS: Boot of MI a2 is to slowly!!!!
Could you help me?
Dhananjay
Hi. Did you flash the stock ROM to both the a and b partitions of the device?
Quintin
I cannot find out how to get the March update patched on Mi a2. I have busting my back for hours trying to get this figured out getting really irritated. I installed magisk on top of it, however it just creates a patched image for me? Like, it won’t install it either. I am just getting frustrated and would like some help, I CANNOT find it anywhere on the forums or that everyone is having problems like me, possibly because it’s a such a new update? Please for the love of god someone help me with the device.
Dhananjay
Hi. Patched boot for March update for both Mi A2 and A2 Lite is now available for download. Just download that and follow the method.
Claudio
Hello,
Is there a patched version for V10.0.7.0.PDLMIXM already ?
Would the same procedure apply in this case ?
Thanks
Dhananjay
Hi Claudio. Is it the Mi A2 Lite that you’re talking about?
Dhananjay
If that’s so, then I have added the Patched Boot Image for V10.0.7.0 for the Mi A2 Lite. And yes, the process will stay the same, only the file and the filename in the command will change accordingly.
Claudio
Dhananjay, you’re the man 🙂
Thanks a lot, I’ll try it right away
and yes, that’s the mi a2 lite we’re speaking about
Dhananjay
You’re welcome, Claudio! Let me know how it goes.
Claudio
Worked like a charm 🙂
A silly question, Dhananjay: I understood that, having employed this method, there won’t be problems with OTA updates. But in which circumstances would be necessary to reflash the stock rom and root the device again ?
Thanks for your patience !
Claudio
Bruno Porricelli
done root on mi a2 lite v10.0.7.0, all perfect great guide, thanks
Bruno
a question, with this method we can make the next updates ota?
grazie
Ezequiel
Hi, i have an issue…my mi a2 lite automatically updated to the last security patch and it ask me to reset but i have all the root with magisk…what will happen? how can i restart without do the update?
H5N1
Hi
cmd say
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem unlock
…
FAILED (remote: oem unlock is not allowed)
finished. total time: 0.031s
Mi A2 Lite – V10.0.4.0.PDLMIXM
:/
Dhananjay
Hi. Please make sure that you enable ‘Developer options’ and further ‘OEM Unlocking’ toggle. If you are not sure how to do it, you can refer to the steps here.
Abdallah sayed
Hi there. When i press down volume woth power the fastboot is on, but it is turning off after 30 to 40 seconds. Any solution for this?
Dhananjay
Hi. If you boot into Fastboot Mode and keep it disconnected from the PC (i.e Idle), it will automatically reboot.
Once the phone is in Fastboot Mode, connect it to the PC, and run the commands as listed above. As soon as you run the command, the phone will automatically boot into the OS.
luckysquid
HI, I have downloaded V10.0.4.0.PDLMIXM patched, but when I start it from fastboot the a2 lite reboot and i don’ t see magisk in the app menu.
.\fastboot.exe boot patched_boot_10.0.4.0_mi_a2_lite.img
Downloading ‘boot.img’ OKAY [ 0.605s]
booting OKAY [ 0.606s]
Finished. Total time: 1.299s
Are you sure that patched IMG work?
Dhananjay
Hi. Once you execute that command, and the phone boots into the OS with the Patched Boot Image, download Magisk Manager APK (Click to download) and install it. Then run Magisk Manager, and let me know if it detects root.
James Wiston
Hello bro whit this method i lose my data?
Dhananjay
If your phone’s bootloader is already unlocked, then nothing will be wiped all.
James Wiston
How i can know if my bootloader its unlocked?
Karthickvel
Thanks bro,
I just rooted my mi a2
How to install custom OS?
Please guide me bro🙏
Dhananjay
Hello. Here’s what I’d like to tell you first. In order to install custom OS/ROM, you don’t need root. You will need an unlocked bootloader, which you have already done, and TWRP recovery.
The instructions for that could be found here: https://www.thecustomdroid.com/install-twrp-recovery-root-xiaomi-mi-a2-a2-lite/
And alrahman
Hi I unlocked my bootloader and do everything but it show me when entering the command .\fastboot.exe boot patched_boot_10.0.4.0_mi_a2.img that there’s too many links I changed my cable and still the same help me please
Dhananjay
Hi. Kindly reboot your PC and try changing the USB port, preferably a USB 2.0 port.
James Wiston
Hello if i do this method i lose my data? My phone lose all my data or still normal?
Amin
Thanks! It worked 😀
Aaron
Sorry but the link is dead(xiaomi mi a2 custom patch) could you provide another link pleas?
Dhananjay
Hi Aaron. I can confirm that the links are all good and working on my end. Tested using my PC and phone too.
Michael
I still have a question.
When I try to sideload the TWRP installer it always tells me “you need adb sideload 1.0.32 or brewer to sideload this device.
Dhananjay
Hi. Please download the latest Android platform-tools package from here and use them. It seems like the ones installed on your PC are outdated.
Michael
Thank you it worked perfectly on my mi a2 lite
Harshgogi
Can we unroot and relock bootloader with stock boot.img?
Dhananjay
Yes, you can.
daro
I recently installed magisk via recovery ( TWRP 3.2.3.0 ) on A2 Lite, Android Pie newest V10.0.4.0, everything works fine
Dhananjay
Thanks for the confirmation daro!
uzzal
how to install TWRP on android a2 lite
Dhananjay
Hi. To do that, you can follow our tutorial here. If you’re on Pie, note that you will need to format the /data partition (Which includes the internal storage) to be able to decrypt storage in TWRP.
MARCIO DE OLIVEIRA SOUZA
Good morning, you already have the patched_boot V10.0.4.0.PDLMIXM?
Dhananjay
Hi Marcio. Yes, the OTA dump was posted on the XDA forums. I took the OTA and extracted the boot.img from the Payload.bin and then patched it using Magisk 18.1.
Amit Saini
Could you please give links to the patched_boot V10.0.4.0.PDLMIXM
Need it to root my Mi A2 as I am on February update.
Thank you
Edward
Precisão de chega do patch de fevereiro (10.0.40)???
Dhananjay
Hi Edward. The patched and stock boot images for February 2019 update are now available. See the ‘Downloads’ section above.
jackis
thanks for the guide, it worked perfectly. mi a2 lite
Now that we’ve run the root, do I have to keep OTA updates turned off?
Dhananjay
Hi Jackis. Once you have rebooted the phone and root is gone, you can safely enable Automatic Updates in the Settings.
swsh007
My phone is rooted at V10.0.3.0.PDLMIXM,now OTA Process
Whether first to install the patched_boot.img V10.0.4.0.PDLMIXM and then upgrade?
tks.
Edward
Você atualizou pro patch de fevereiro?
Dhananjay
Hi Edward. Yes, I just did it yesterday.
@viturc
Thank you so much to share your knowledge! It worked just fine for me on my Mi A2 Lite.
Dhananjay
Glad to know that! Thanks for the confirmation Viturc!
John
Sir, we need patched boot image V10.0.4.0, after February update this boot img is not working, please help us
emon
after root my phone isn’t open, system loss, then i try Mi flash tool and giving phone flash, after success flash my phone just open and off, i think boot loop, how can i resolve this issue?? please give me some suggation
Jasmin
Hi, i want to change my device id, mac address, wifi address, device name, model number etc, is there any way to do that without root? I don’t know how to root my Xiaomi A2 Lite Pie device, please help!
Corrado
Any news with the new magisk?
Nando_c3po
Hello!! When I enter “fastboot boot patchet_boot.img” it starts in Android, but when I go to the application box, Magisk does not appear. That I have to do? Thanks in advance.
I’m noob in rooting Xiaomi … I’m sorry.
Dhananjay
Hi. No problem, we are here to help you out.
When your phone boots after issuing that command, download the Magisk Manager APK and install it. Once installed, run it and follow the steps listed above.
sam
i also have the same issue with the magisk not appearing in the app drawer. i went to magiskmanager.com to download a latest copy but when i launched it, it gives me an error “”Unsupported Magisk Version”
This version of Magisk Manager does not support Magisk version lower than v18.0.
i have downloaded MagiskManager v7.0.0.apk.
My question would be does the patched_boot.img contains a Magisk and what version is it on?
How do i get the latest Magisk-v18.0.zip installed using the patched_boot.img?
Many thanks in advance
Dhananjay
Hi Sam. Topjohnwu (Magisk’s creator) recently released Magisk v18.1, which depreciates the support for all builds below 18.0. The patched boot image provided here were patched using Magisk 18.0.
What you can do is, download Magisk Manager 7.0, then patch the stock boot image of your installed firmware version using that. Once patched, grab the patched_boot.img from the ‘Download’ folder on the internal storage. Then use that to perform this process, it should work flawlessly.
Emriq
Hi, if i root my device (a2 lite) whit this method. how to get ota update?
OP
Hey, I’ve been trying to root my device, but I can’t pass the 6 step, I put “.\fastboot boot patched_boot.zip”
but it just says:
creating boot image…
creating boot image – 14024704 bytes
downloading ‘booot.img’
FAILED (Command write failed (No error))
finished. total time: 0.007s”
It is getting really annoying, ive been trying for a couple of hours, hope you can help me
Thanks
Dhananjay
Hi. Please extract the ‘patched_boot.zip’ file to get the .img file. And then you have to use the command to temporarily boot the .img file using fastboot.
OP
I did it, but the result was the same. It was trying to download ‘boot.img’ for an unlimited period of time. Even tho I did named the patched boot ‘patched_boot.img’
Dhananjay
Hi again. Can you please share a screenshot of the command line (CMD or Powershell) when you execute the command?
OP
https://imgur.com/a/G5CP8Gr
Javi Ramon
Hello this is my first time rooting a xioami,whit this method i lose my files and data?
Dhananjay
Hi, this method needs an unlocked bootloader. When you unlock the bootloader, all the data on the phone including the internal storage will be erased.
If you already have the bootloader unlocked, then this method will not erase anything.
And the most important thing, if you’re on January update, please avoid rooting for now. Several users have reported bootloop issues.
lee
thanks
igor
Hello, I tried to install magisk with your tutorial but it didn’t work check it out:
This is my version:V10.0.3.0.PDLMIXM, Android Cersion 9, Update January 5.
I’ve got bootload unlocked.
I’ve downloaded your patched boot image but when the the phone started there was no magisk in the app drawer. Do you know if this method is still working?
Gene
Hey bro, Dhananjay.
This is a working patch_boot image for MI A2 Jan 2019 Update (10.0.3.0.PDLMIXM). Just tested on my phone. Tested by booting it and flashed accordingly on boot_a and boot_b. Do update at the download section. Thanks dude, appreciate ur work.
Sources are below.
https://mega.nz/#!R5NAgQKJ!yfm886jSAA_x1raUzxRlq-t53AFjaFvU7Q_AH-fXRlY
https://forum.xda-developers.com/mi-a2/how-to/patched-boot-ota-10-0-3-0-t3892975
Corrado
Any safe way to update the phone from 10.0.2.0 to 10.0.3.0 having the phone already rooted and with magisk installed? Thanks
Dhananjay
Hi Corrado. It’s best to restore the stock boot image of V10.0.2.0 first. Also, before that, ensure that no Magisk module is enabled or any sort of modification to the /system or /vendor partition. Once you confirm that, just update via the OTA.
igor
Helloo, i’ve tried your tutorial and it works until step 8.
The OS boots but there is no magisk installed in the smartphone.
It should hav been installed when fastbooting the patched file?
The smartphone started normally but no magisk installed.
Dhananjay
Hello everybody! Please read the note in Red box. It is important!
Android Pie January update probably brings some changes to the boot (kernel). I am not sure, but it seems like it.
So, if you were previously rooted using Magisk, please ensure that you first flash the stock boot image of V10.0.3.0 and only then proceed with this procedure using the patched boot image.
The commands you to need to use to flash the stock boot image (While your phone is connected to the PC in Fastboot Mode) are as follows:
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
I will try my best to keep you guys posted!
Pankaj
I have received January update for my MI A2 today. My doubt is can I still use this method to root my MI A2? Or should I use diffent patched boot IMG?
Dhananjay
Hi Pankaj. You’d need to use a patched boot (Link here). Let me know if it succeeds.
Yarzar
Hi brother Mi A2 v 10.0. 3 need Patched boot ?
Thank
Nico38
Hello,
Very great job ! But I can’t find V10.0.9.0 Patched Boot and Stock in download section … Do you have a link ?
Dhananjay
Hi. It’s now up!
Pankaj
Sorry, I haven’t tried as you said there are bootloop issues with January patch update..
Dhananjay
Yes. I know. We also published a post on that recently. Try and restore the stock boot image and see if it boots into the OS then. We’d probably have to hold off until the next update (fix) is rolled out.
Wolfgang
hi,
my a2 lite has pie with an unlocked bootloader, i tried the temporary boot-image
***************
fastboot boot ./twrp-installer-daisy-3.2.3-0.zip
creating boot image…
creating boot image – 15790080 bytes
downloading ‘boot.img’…
OKAY [ 0.507s]
booting…
FAILED (remote: dtb not found)
finished. total time: 0.625s
******
there was no reboot ..
what about the error? how can avoid it
Dhananjay
Hi. The file you’re trying to boot in your comment is not the patched boot image, but the TWRP installer zip file. Please use the correct file as linked above.
Daro
Hi @Dhananjay,
there is a new update v10.0.3.0.PDLMIXM, if I update it I will lose root?
Dhananjay
Hi Daro. Yes, the OTA will only be installed without root. Once updated, you can try this patched boot from 10.0.3.0.PDLMIXM and root again.
Gene
Hi it does’nt work. Cant root new android update for MI A2 10.0.3.0.
Thanks for sharing so much. Really appreciate it.
Dhananjay
Hi again Gene. Did you try booting the patched boot image? What happened? Let me know where it got stuck and I’d be more than happy to help.
Gene
Its stuck at the AndroidOne boot-up logo. Does’nt show that is loading, not going past that. I have tested the solution (New – patch boot) you provided to ‘Daro’ on a MI A2 (10.0.3.0.PDLMIXM) – Jan 2019 update. Patch boot to root 10.0.2.0 works for the Dec 2018 update.
Dhananjay
Hi Gene. I have just uploaded Stock and Patched boot images of V10.0.3.0 in the Downloads section.
First, flash the stock boot image via “fastboot flash boot_a boot.img” and “fastboot flash boot_b boot.img” commands.
Once done, then download the patched boot image (The new one from the Downloads section) and try booting with that.
Artemiy
HELP PLEASE!!!
Hello! I want to root my mi a2 but im wondering: what will be if do something incorrect and what if my phone will start bootlooping? Is there a way to make everything like i had it before doing all this stuff and bring my phone to life? (Even if all the files will be removed, i would just want to return my phone to life) And after installing magisk, if an update comes out, can I simply do a factory reset (yeah i know it will remove all the files) and will be Magisk and root access be deleted after factory reset? Would i be able to update so?
Im a noob in all of these stuff, so could you please help me!
Dhananjay
Hi. I understand it is always better to be safe than sorry.
I’d explain what happens when you root your phone using the provided files:
1) When you install Magisk, it modifies your /boot partition (That stores the kernel, recovery, and other stuff)
2) The benefit of rooting via this method is that you can always remove root by restoring the stock boot image, which comes packed in the stock firmware for your phone. Once restored, you will also be able to take OTA updates.
If all else fails for some reason (Shouldn’t normally happen), then you can always flash the complete stock firmware.
One thing that I’d like to correct is ‘factory reset’ is not the same as flashing the stock firmware. A factory reset simply formats the /data partition (Storage) and cache.
Don’t worry, it shall be alright. Just make sure to use the correct files and read the instructions thoroughly before you begin and it will all be good!
Marciel
It works.
Thanks.
Dhananjay
Great! Enjoy your rooted Mi A2 now.
Murilo
Does this procedure format the cell phone?
Dhananjay
No, it doesn’t. You will just be flashing a patched boot image and then installing Magisk.
Murilo
Does this delete user data?
David
Hi – I’ve successfully installed TWRP + Magisk on my Mi A2 Lite, but how do I handle OTAs in this instance?
The backup of boot.img is a backup of a tampered boot from installing TWRP.
Dhananjay
Hi David, I will make sure to update this post with the latest stock boot images as well, so that it would be easier for you to restore them for taking OTAs.
Dave
When I launch Magisk Manager and Click install, then install again, I am not prompted with “Direct Install” but instead Zip Only or Patched Boot Image File.
I am trying all this in order to enable the camera2api but I’m failing at the su command stage where it is saying command not found
Dhananjay
Hi Dave. The Direct Install option will only be available when you boot your phone with the patched boot image (Step #6).
Corrado
sorry just to be sure: the Prerequisites include magisk to be already installed and updated? Just normally OTA? thanks
Dhananjay
Hi Corrado. The guide actually helps you install Magisk via the patched boot image, so it doesn’t make any sense that it should be installed before performing the procedure. Otherwise, your phone would already be rooted, right?
Corrado
So I downloaded magisk manager and it asks me to install magisk 18.0 as it is not installed. shall I do it only once i boot the patched boot file or first I install magisk 18.0 anyway? Sorry I’m not an expert as you can guess… in your pic at point 9 i see magisk 18.0 to be already installed anyway, so I’m a bit confused. Sorry I don’t want to do smt wrong …
Dhananjay
Hi Corrado, I am sorry if the screenshot is misleading. Since I don’t personally own the A2 (I have the Mi A1), I wasn’t able to take a proper screenshot. I will replace it with the right one so that people don’t get confused. Again, apologies.
Over to your question: You have to install Magisk only when your phone boots with the patched boot image.
And I understand. One should always understand the process before actually proceeding with it, it’s a good practice.
Corrado
Ok I managed, as I didn’t have the zip of magisk 18.0 it asked me to download it and install but it sees it worked as now I’ve finally back my gcam 🙂 Any idea on how safely update via OTA in the future? I did follow these steps of another guide : 12. When you know that a new OTA update is available and you want to install it, open Magisk Manager, and tap on “Uninstall” > “Restore Images” but very important: absolutely don’t reboot the phone now!
Important note: Magisk Manager will restore the boot.img that was found on the phone while installing Magisk. If the boot.img was already non-vanilla (for example you flashed the boot.img with TWRP before installing Magisk), Magisk Manager will backup that modified version of boot.img, and when restored the OTA will not work, as that’s not a vanilla boot.img.
13. Close Magisk Manager and go to “Settings” > “System” > “System update” and install the OTA update. After the update is downloaded, a two-stages update will begin.
14. When both stages of the update process completed, it will ask to restart: DON’T DO IT!. Open Magisk Manager again and tap on “Install” > “Install” > “Install to Inactive Slot (After OTA)” and after that you can tap on “Reboot”. and it did work until the android pie update that set my phone in bootloop. Thanks for the support and for replaying me.
Dhananjay
Glad that it worked! Yes, that’s the correct way to update via OTA when rooted with Magisk.
Corrado
ok bat last time I did it when pie came out I had a bad bootloop 🙁 now it should be safe? anyone tried? thanks
Dhananjay
Hi again. I am just preparing an article on this, will ping you through the comments when it’s available.
Luca
Hi, I’ve received my new Mi A2 Lite and Updated to 9.0 with OTA.
Now I want to install Root and GCAM with OTA 100% functionality.
Is it possible ?
Ionut Neacsu
Hey guys , I tried unlocking camera 2 api for a mi a2 lite upgradede to pie looking at this video sulit thech reviews on youtube .Unfortunately for me i could not get the job done. i got the error with no such file or directory when i tryed to oot patched image like 100 times. i try rename it patched_boot.img and many other names, moving the file arround and also typing the entire path of the file, using a different computer but with no succes.Every time the same error . I do not know what else to do. I am using a windows 10 computer . Maybe you know some way to fix this. Regards
Cebe
Dude I already did 1) fastboot flash boot_a mi_a2_lite_V10.0.1.0_stock_boot.img
2) fastboot flash boot_b mi_a2_lite_V10.0.1.0_stock_boot.img
But still my A2 Lite 10.0.1.0 to 10.02.0 OTA couldn’t be installed, so is my system tampered? Should I flash ab system too?
Dhananjay
Hi Cebe. Yes, it seems like the system partition was tampered. You will need to use Mi Flash tool to flash the stock fastboot image first.
daro
I know that after the factory reset the root disappears I checked. If the next Pie system updates come out and the version changes, then root also will not be anymore? I will have to wait for a new patched boot and repeat the procedure from the beginning?
Anas Setiawan
can you provide me the link of mtdp.img i need the new one for mi a2 lite (dec), because i flash the old one.
Dhananjay
Hello Anas. Sorry for the delayed response, I noticed the email as well. However, I was busy with some personal chores.
As for your question, I was only able to extract mtdp.img from V10.0.1.0 OTA. Here is the download link.
If you can somehow provide me the OTA link for V10.0.2.0, I can then extract it for you. I tried, but couldn’t find OTA link for V10.0.2.0 anywhere.
Idan Cohen
Hi, I need help.
I have Mi A2 Lite and I tried root on my device.
When I write in shell “fastboot boot pached_boot.img”, my device startup and after 1-2 minutes, it restart again, but now to recovery, the options in recovery are: 1) Try again, 2) factory reset. I was pressed on Try again, and then my device startup again, after the device startup, I have no root on device(I checked in Magisk Manager).
Can you help me please.
wmbrfoa
Hi,
Can you tell me how to root my mi 8 lite global????
nick
Thanks for the update and time you’ve spent making the guide. Root checker says we’re now rooted. For other peoples’ sake, I used the ./fastboot command on the patched_boot.IMG file, rather than the .ZIP file. It booted and everything appeared as it it did previously – didn’t think it worked as Magisk was not in the app drawer. After manually installing it, it went fine.
OP: is it my understanding that without TWRP, we won’t be able to flash custom roms? Also, what things can we do with this situation – I.E rooted with no custom recovery. I’ve already trimmed the little bloat that was on there.
Dhananjay
You’re welcome Nick! Yes, without the recovery, you won’t be able to install ROMs. But you can definitely use it to install Magisk Modules for additional features, like ViPER4Android. Or, edit build prop to enable camera2 API in order to use Google Camera port.
If you’re really interested in installing TWRP to flash custom ROMs, etc, I updated the Mi A1 rooting tutorial yesterday with the required steps.
Robert
Can you please do a simplified tutorial to enable Camera2 API and go back to stock oem rom. Without losing data and existing apps would be great.
Corrado
Sorry for just to use gcam is this guide https://forum.xda-developers.com/mi-a2-lite/how-to/guide-install-magisk-proper-support-ota-t3836952 still valid? I’ve android 9.0 on a clena a2lite as the previous upgrade 8.1 -> 9.0 with magisk 18.0 following the link in this post eneded up with a bootloop … and i deleted and restared all from scratch, thanks
Roberto
Thanks for guide!
I also manual install magisk manager because, after flash patched.img file, no magisk manager in the drawer, so I download magisk manager and after I install magisk without problem.
tom
Hello there,
thank you for the tutorial but I am having a problem.
I don’t have direct install, so I tried with twrp adb sideload to install magisk 18 but when rebooted magisk manager won’t detect root. How would I solve this issue.
Many thanks
Dhananjay
Are you sure that the Magisk installation finished fine via ADB sideload?
tom
Thanks for the replay,
Solved the problem by doing:
– Run magisk manager
– Click install > install > patch boot image file > click on stock boot image
– transfer file to pc
– put phone into fastboot mode
– from pc > fastboot flash boot patched_boot.img
– fastboot reboot
– Root =)
Ezequiel
Hello, thank you for the tutorial, i have a question…do i need to backup? this will erase the partition and the data? thank you
Dhananjay
Hi Ezequiel, the process won’t erase any data. However, we still recommend taking a backup on a safer side.
daro
does not work, root is correct and after reboot there is no root. A2 lite V10.0.2.0.PDLMIFJ
Dhananjay
Hi Daro, did you flash the correct boot image? It was only today that I updated the link to V10.0.2.0 patched boot image.
Cebe
My a2 lite is on V10.0.1.0.PDLMIFJ with Patched Boot Image from this site, but how to restore the boot image, and download also install the ota update?
Dhananjay
Hi Cebe. You can either extract the stock boot image from the available OTA package. Or, you can follow the ‘How to Apply OTA Updates’ section in this XDA thread.
Cebe
Hey man, I already did the step number 13, but when I download the OTA, it couldn’t install, what should I do? It’s like the Magisk at step 12 not restore the boot.img correctly, I think, help please.
Dhananjay
Hi Cebe. Are you sure you didn’t have any Magisk Modules or any other modifications done to the system? Like enabling camera2 API by editing the build.prop or anything of that sort?
Cebe
Oh, I have 4 module currently:
1.hal3enabler — camera 2 api enabler
2. Sony-music4magisk — music app
3. Systemless hosts — it is magisk functions for AdAway, and yes Ihave installed AdAway
4. YouTube vanced
As long as I remember, I never directly modify the system partition, AdAway isntalled when I already check Magisk systemless host, and in the adaway setting already checked systemless mode too.
Must I disabled and uninstall all the module before applying ota?
Dhananjay
Okay. Now, just download the stock boot image for your version and flash it on your phone using the following commands:
1) fastboot flash boot_a mi_a2_lite_V10.0.1.0_stock_boot.img
2) fastboot flash boot_b mi_a2_lite_V10.0.1.0_stock_boot.img
Once flashed to both the partitions, boot up your phone and try installing the update. Let me know how that goes.
Cebe
Flash for a and b slot?
Dhananjay
Yes. It is important to flash it to both the slots.
Cebe
The flashing method is same like flashing boot img for rooting right? But with your new code?
daro
Hi, thanks for the great description, I managed without a problem on android 8.1, however, the 9 is the problem because the update came out V.10.0.2.0 and this your patched V10.0.1.0, of course, does not work. The super method will only soon be patched boot for V10.0.2.0?
Dhananjay
Hi Daro, the patched boot image for Mi A2 Lite (V10.0.2.0) is now available. Please re-check the ‘Downloads’ section.
daro
Hi Dhananjay, now this file works fine -after restart root present – everything works, big thanks! 🙂
P.S. will the factory reset remove root?
Braulio Bhavamitra
my mi a2 lite is already on V10.0.2.0.PDLMIFJ, V10.0.1.0.PDLMIFJ patched boot image is bootlooping!
Dhananjay
Hi! Of course, it will bootloop. Never cross-flash partition images of an older or newer version. The patched boot image is now available for V10.0.2.0 as well. I have added the link above. Please use that.
Cebe
How to get OTA update normally after rooted?
Dhananjay
Hi. I am working on a tutorial for that. Will update the post with the link when its up.
isrmicha
Hey man, after fastboot boot patched_boot.zip my phone dont pass the boot logo.
how can i fix it ?
Dhananjay
Hi. A simple forced-reboot will solve your problem.
Oh, and BTW, I forgot to mention that you have to extract the “patched_boot.zip” and use the command with the extracted file instead. Please try that, and let me know how it goes.
Elias
i cant use the command on the extracted img, only the zipped one. I also get stuck in boot screen, then have to force reboot, then magisk wont work… :/ pls help
Elias
I solved it, you need to write “.img” in the end instead of “.zip”, i just skipped the end after i extracted it.
Now, how would i use a custom rom from now on?
Dhananjay
Glad it worked! You will have to wait until TWRP starts supporting Pie. I am keeping a track of it and will update this post with any updates.
Elias
So this guide came up yesterday on XDA:
https://forum.xda-developers.com/mi-a2/how-to/how-to-flash-custom-rom-stock-pie-base-t3881905
Do I dare checking this out? :O
Tushar Gautam
How to unroot ? Oem lock again? After we installed the magisk through your instructions … Because when I normally tap uninstall magisk in maGisk manager , it uninstalls and then reboots to the boot loader. Help asap!
Thanks in advance
And if it needed the stock boot image then please provide one .
Needed urgent help.
Dhananjay
Hi Tushar. It could be done by simply flashing the stock boot image. What’s your device Mi A2 or the Lite?
Jonas
Help, I’m stuck on the “Android One” boot screen, nothing helps! My bootloader is unlocked, It shows it on the screen. I don’t have any TWRP installed, always just booted to those things. I was rooted on Android Oreo. I downloaded the same package, typed the command with the correct name and it just got stuck. Typing “fastboot reboot” helped getting it out, but I had no luck rooting it on Pie.
Dhananjay
Hi Jonas. Is it the Mi A2 or the A2 Lite? In this situation, it will be best to restore the stock boot image and retry the process again.
Barton
Used this method – All went fine until wanted to run magisk menager. It prompted that no root or no su apk ( but SuperSU apk is present and detected). What now ? 😀
Dhananjay
Hi Barton. When you open Magisk Manager, just tap on ‘Install’ and follow further.
Also, make sure to do this right after your phone boots into the OS when you enter the ‘fastboot boot patched_boot.img’ command.
nick
Thanks for your efforts. I was trying to root my A2 the “old” way (pre-android 9) despite having upgraded already. Suffice it to say many dead ends/errors ensued…tried to flash TWRP recovery. Then I stumbled upon this article.
Background:
Have the latest Xiaomi drivers, and all of the preconditions were met. Bootloader unlocked (via fastboot and dev settings). Have also tried multiple USB outlets and made sure they weren’t USB 3. Since accidently trying to fastboot flash recovery twrp I have been unable to boot into recovery without getting the “No Command” dead android screen. Even after reflashing stock.
I used the Xiaomi flash utility to supposedly get back to stock ROM (jasmine_global_images_V9.6.16.0.ODIMIFE_8.1). It seemed successful and my system reverted back to an Android 8 build – I updated to V10.0.2.0.PDIMIFJ. I then downloaded the patched_boot zip file to my platform-tools directory. Launched a CMD from that directory and tried the .\fastboot boot patched_boot.zip command. 1st time it would stay stuck on the white “androidone” initial load screen. I then tried extracting the zip file and then doing the same process except fastboot boot patched_boot.img. That seemed to work and it booted up but I was unable to find any Magisk app. Tried doing the .\fastboot zip way again and got “failed to load/authenticate boot image”. Any advice?
Dhananjay
Hi Nick. First off, thank you for taking the time to elaborate on the whole situation. I got it all in one go.
Okay. So first thing – The ‘No Command’ screen you see is actually the pre-screen for the stock recovery. While there, simple press ‘n’ hold the Volume Up button and press the Power button.
Next, the mistake is not yours, it is mine. I missed mentioning that you must extract the “patched_boot.zip”. I will update the article.
Just execute this command again: fastboot boot patched_boot.img
When the phone boots, download Magisk Manager APK on the phone itself. Then install it and run it. You shall then be able to follow on from step #9.
Javier Goni
hi, magisk manager does not install the camera2api modules, it extracts the files, but for some reason when giving reset the modules do not appear (this in android 10) I went back to android 9 and the error persists, could you help me?
Dhananjay
Hi Javier. When you say “giving reset”, do you mean rebooting/restarting the phone?