yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] eltano06:
if you tried to update from oreo to pie without losing root (steps 12 to 14) and end up with a bootloop, all you have to do is flash the stock 10.0.2.0 boot.img with adb with the command "fastboot flash boot boot.img".
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Le Dam:
Hi,

My A2 Lite is under Pie with Magisk.

Can I make a factory reset (soft from android menu) without loose Magisk root ?

If I only must re-install apk, it's not a problem...

Thanks and happy new year !
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Le Dam:
Right, YES Magisk is back after factory reset ;)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] luckyvictor:
I don't see Magisk Manager after doing boot patched_boot.img. It actually run successfully, the phone restarted after the command.

My Build number is PKQ1.180917.001.V10.0.2.0.PDLMIFJ, I tried both of these patched, V10.0.2.0.PDLMIFJ Patched Boot Image: Link

V10.0.1.0.PDLMIFJ Patched Boot Image: Link
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ketorock:
Does anyone have the patched book for A9 Pie?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thorin0815:
Patched boot for Pie firmware 10.0.2.0 (Magisk 18.0):

https://www.androidfilehost.com/?fid=11410963190603889594

Stock boot for Pie firmware 10.0.2.0:

https://www.androidfilehost.com/?fid=11410963190603890025
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ekrezem:
4. Now connect the phone with your PC via USB cable, open an administrative command prompt, move to the directory where the Android platform tools are placed and unlock the bootloader with the following command:

Code:

fastboot oem unlock

I tried doing this, but I got stuck with "waiting for any device"

adb devices work when the phone itself is on (not on fastboot mode). Do I lack something?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thorin0815:
Try enabling USB debugging inside developer options.

Edit: Did you boot via "adb reboot bootloader" into fastbode mode before trying to use fastboot commands?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ekrezem:
No, I booted into fastboot from volume down + boot.

It worked after i found updated adb (had outdated adb)

I heard I can use magisk for root as well. How do I root? I tried flashing the Magisk-v18.0.zip but it didn't say I'm rooted like it says here https://android.gadgethacks.com/how-to/magisk-101-install-magisk-root-with-twrp-0179668/
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mn1968:
How did you try flashing it? With stock recovery or did you install TWRP? Stock recovery won't flash it and I believe that TWRP is too buggy to be useful for our device. To root with Magisk follow the guide on the first page of this thread. It seems complicated but is actually quite easy. I personally don't use the pre-patched boot images provided - I extract the boot image myself from either the phone or a downloaded system image. I then follow the Magisk guide to install/root via Magisk Manager.

Good luck!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ekrezem:
Ah okay, it seems to be the app that I wanted to test root on being the problem of me thinking root is not there (and well, older version of Magisk screenshots stating its rooted)

Helium Backup doesnt seem to work with root here. Does anyone use it and knows how to use Helium Backup with root on Mi A2 Lite? Or is the only way with Helium Backup from desktop?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
Thank u took me forever to be able to use my head works great
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
Hi everyone. Long time since my last visit here. I'm very busy in those days, I hope to get some free time in the next days to update the guide if needed.

I noticed that Android Pie arrived for our phones but I still haven't upgraded. There is something in the guide that needs to be changed?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
This guild is a godsend thank u.its very workable for pie just have to pay close attention to the instructions
[Xiaomi Mi A2 Lite Guides, News, & Discussion] p-walker:
I finally decided to try out the OTA update procedure. Going from official Oreo 8.1 (rooted with Magisk) to Pie (want to be rooted again).

Interestingly I didn't need to uninstall Magisk for the OTA to successfully install the update to the inactive partition (for anyone not aware, google A/B partitioning, as the A2 lite uses this technology).

I was using Magisk 18.0 installed with the latest magisk manager. Apparently OTA didn't have a problem with my root.

So actually all I had to do was open Magisk manager -> install to inactive slot -> reboot via magisk manager. Android Pie booted, magisk running, everything good.

Oh god I wish there was some more reliable up-to-date technical info about the stuff that going on under the hood in Magisk.

So for example people that already used Magisk v16.0 they actually have to uninstall but if you rooted with Magisk v17.1 or higher, NO UNINSTALL is required. See the official patchnotes here .

After all the Magisk guys to a lot of magic under the hood and are constantly developing and fixing stuff, so I am happy that everything worked out quite smoothly for me.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] epirater:
Hmm I just tried this and the phone's in a boot-loop :/

I did uninstall Magisk before the update and re-installed into to the inactive slot before rebooting.

Bummer!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
It updated for me no problem I lost root and had to reflash the patched boot method.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] p-walker:
Not sure why this happens only for some persons and for others not. Only thing I could imagine is that you made other modifications than root to the stock ROM.

Just to make this clear you did uninstall magisk, then reboot (otherwise it wouldnt be unsintalled) then let the OTA update finish and then installed to inactive slot and used the reboot button from Magisk manager?

Also you did update from stock Oreo right?

I personally didn't even uninstall Magisk from the active slot, as I guess this is only needed if the OTA update doesn't go through.

Maybe you also altered some system file by using some root apps?

I did only use addaway and titanium as root apps (both apparently didn't alter the system much).
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rcll:
Hey guys, my Mi A2 Lite shipped with 9.6.6.0 August 2018 update. I accepted OTA of December 2018 security update and installed, but now phone keeps restarting.

It is not bootloop, phone boots into OS and works for a few seconds, then crash into reboot again. One time I got far enough into 'about phone' to see it still says August 2018 update, so OTA failed?

Can advise what to do with this rebooting phone? Do I need to get Miflash and flash 9.6.10.0 full fastboot rom? What is most stable and safe Oreo ROM version for least bugs daily driver?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] epirater:
I didn't reboot after uninstalling Magisk, as the first post in this thread doesn't mention to do so. The system files might have been altered by some other root apps, I'm not sure exactly, but it shouldn't have been anything too much...
[Xiaomi Mi A2 Lite Guides, News, & Discussion] p-walker:
Oh yeah my bad, Magisk does restore the original boot.img when you do the "uninstall". Which might be needed in case the OTA update wouldn't go through. However it might be possible that the Magisk devs actually built in some techniques for OTA updates so you should actually not use the "uninstall" on the active partition.

Actually the whole step No. 12 is not mentioned in the official Magisk 17.1 patchnotes, this is why I would advice to actually try the OTA update installation with an active Magisk. Only if the OTA installation fails I would try it with uninstalling.

Ultimately I don't think it matters if you uninstall it as you would install it to the inactive partition in any case.

All I can say is that the Magisk dev specifically mentioned A/B devices in their patchnotes and they do implemented mechanics to address smooth OTA updating. However you never know if any new release would break seamless OTA updating via Magisk Manager.

For me everything was working straight forward.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] epirater:
I'd have prefer not to lose data so I tried flashing the latest stock firmware with MiFlash - the first time it had an error, the second time more seemed to happen but it still had an error. I turned the phone on and it loaded to 'To start android, enter your password'... (I don't think I had one). So I tried flashing it again and this time it said it was successful and it booted properly! I have no idea how this could happen just doing the same thing. So it's booted but not rooted now (it's still unlocked). If I flash the patched boot.img with fastboot now, will it delete anything else on the phone? Thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] p-walker:
It will not delete anything, however you need to be sure to have the correct boot.img for your build otherwise your device can easily be bricked. I would recommend you to download the original boot.img for your build and let magisk manager patch the boot.img and use your own patched boot.img
[Xiaomi Mi A2 Lite Guides, News, & Discussion] hossman:
Not bricked, but most likely bootloop.

Bricked so far is people just trying to install miui. Do not relock bootoader and you can easily recover with miflash
[Xiaomi Mi A2 Lite Guides, News, & Discussion] p-walker:
On my Moto One I tried to downgrade from Pie and hard bricked it (doesn't start, can't get into fastboot). Apparently you should never flash and old boot.img over a newer one as you are ****ed if you can't get into the bootloader anymore.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] blackmetallive:
with the newest 10.0.2.0 version i cannot install BusyBox on rooted Mi A2 Lite. Any ideas?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
Works for me I have a feeling u have to reinstall after a reboot.because I just had to reinstall it
[Xiaomi Mi A2 Lite Guides, News, & Discussion] eltano06:
i also got bootloop after upgrading to pie trying to keep root. the solution was easy, i just flashed the stock 10.0.2.0 boot.img.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
I'd say unroot update then reroot
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mr_magreb:
That works perfect, thx so much! I'm on 10.0.2.0 Pie and Stock.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] EtcSession:
Hi all,

Now My Android is Pie 10.0.1 and rooted. But when I Try OTA to Pie 10.0.2 is fail, not installing.. I was uninstall magisk & install OTA, but fail. Then I uninstall magisk again then reboot, install OTA again but fail OTA..

How can I do?

Thank you before.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] EtcSession:
This is my fail OTA..
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
Please give me instructions for android 9. Its same as on the first post?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mr_magreb:
Uninstall Magisk, flash the original boot Pie 10.0.1.

After that, flash the OTA 10.0.2.

Now flash the edited boot for 10.0.2 and install Magisk from the app.

Yep, for the Pie 10.0.2 edited boot, use this link https://xdaforums.com/mi-a2-lite/ho...gisk-proper-support-ota-t3836952/post78585219
[Xiaomi Mi A2 Lite Guides, News, & Discussion] k4sh44:
Same problem noticed here. I can live with it obviously.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
I think that you found the guilty. No idea why Magisk cause this, but surely it's something regarding the patched boot.img

Switching the active slot to the other slot could help,
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ImJamIN:
Hi,

I've followed all step on first post, but when I reboot A2 lite after the last reboot (patched_boot) when I open Magisk Manager I haven't any popup to install it and I haven't any button for install, but only one button to UNinstall. So, I haven't comnpleted the last part on step 10 (reboot after magisk install). Is this normal ?

P.S.: I have tried some root app, and I can allow/disallow to get root privilege
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Jemon Temon:
Thanks it's really helped me.

But I also Need TWRP can you help?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Abrilabr:
There is no twrp yet for this device, the one in another topic of this forum is too buggy and is causing many problems on users...

just wait a couple weeks for official twrp release, i was told it is on the works
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Jemon Temon:
Thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] x1_logic:
if i want to re-lock bootloader again, im just revert this guide right?

1.uninstall magisk

2. flash ori boot.img via fastboot

3. lock bootloader via fastboot

if im look bak the bootloader it will wipe all data again?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] leouy:
Did you found a solution for this?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] il_fabio:
...

HOW TO APPLY OTA UPDATES

IMPORTANT: OTA updates will work only if all the partitions on the smartphone are untouched. Magisk can restore the original boot.img following this section of the guide, but if you tampered directly with the system partition (e.g. manually editing build.prop) or other partitions, OTA will refuse to install.

You can try to fix OTA updates without the need to flash the whole original fastboot ROM, by flashing only the tampered partitions (usually only "system") with the corresponding img file found inside the fastboot ROM zip.

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!​

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.

Thanks to user [MENTION=7177145]jashancheema[/MENTION] for the Mi A1 guide and a bigger thanks to [MENTION=4470081]topjohnwu[/MENTION] for the OTA part and above all for developing Magisk.[/QUOTE]

Ciao,

solo una conferma.

Seguendo questi ultimi passaggi:

Magisk: "Uninstall" > "Restore Images" - No reboot

OTA: scaricamento da impostazioni - No reboot

Magisk: "Install" > "Install" > "Install to Inactive Slot (After OTA)"

Reboot

si mantiene il sistema aggiornato con Magisk e GCam funzionanti? O è necessario scaricare manualmente l'OTA ed installarlo?

Grazie.

Fabio
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Maximuous:
Hi there is a new version of magisk on the link given. Can i still use the patched boot.img on the latest magisk apk or no? Sorry for the noob question.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
It should work ok, but the most important thing is to NEVER disable the "OEM unlocking" option in the developer settings, so if something goes wrong you can always turn back.

I'm not 100% sure, but I remember that locking the bootloader wipes data again.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
Mantieni tutto inalterato, è fatto apposta quel procedimento.

You mean a new Magisk Manager version? It will work, as long as you only boot from the patched images (just follow the guide).
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Maximuous:
Thanks for the reply. Got it working now.:good:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] fatzgenfatz:
Hi!

Today my phone told me there was an update aviable.

I opened Magisk, tapped on "Uninstall" -> "Restore Images" and did not reboot the phone.

Then I opened system settings, and clicked on "Update"

When the download was finished "Step 1 of 2" started, but after aprox. 5% it says "Error on Update, Installation problem" (In german: Fehler bei Update, Installationsproblem")

Then i can "Try again", but again no success.

Does anyone know why the update fails?

I just got the phone 1-2 weeks ago and only installed the system update (OPM1.171019.019.V9.6.6.0.ODLMIFF) and Magisk (17.2)

Any ideas?

Thanks, f.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] k4sh44:
Same here, i tried to uninstall magisk but root is still there at the end of the process so that system update fails.

Magisk says it succeeds in uninstalling itself though and never ask to reboot the phone.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Sprut_name:
brothers give the kernel 9.6.8.0
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Jonybat:
I have successfully installed September patch and magisk 17.1, following the instructions from the op.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] adriakus:
Once flashed the patched_boot.img, the phone booted normally. But when I opened the Magisk Manager, I didn't get the "install Magisk" prompt. I cannot find the install option anywhere. However, it says it's already installed (it shows a green tick and stated the version (17.1)). Is it alright?

Also, I tried to patch the boot.img myself (for fun :) ) but I couldn't see how to do so. So I flashed your patched .img.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] k4sh44:
Same here and if you reboot the phone all is gone. No magisk and root access. Something got wrong.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] speedmaster57:
I'm trying to root my mi on android 9 but every time I boot from patched boot img i get bootloop is there any way to solve this.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] akupac:
Is there an updated guide about installing magisk process?

I'm very confused about specific situations like Android version, build version etc.

Enviado de meu Mi A2 Lite usando o Tapatalk
[Xiaomi Mi A2 Lite Guides, News, & Discussion] boe323:
Is anyone having trouble with safetynet check in magisk? it wont check, and cant open halifax app.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
Can I update magisk to 18 from 17.2 on my a2 lite? Does it screw up root or magisk itself or anything else?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] deibuu:
i cant see a direct install on my magisk manager :(
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
U won't see it until u flash the patched boot
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
I got the flu, so I have some spare time and I did minor updates to the guide, and also I upgraded to Pie my phone, with a backup + erase + full fastboot flash
[Xiaomi Mi A2 Lite Guides, News, & Discussion] aasiaasi:
Thanks Dear And Get Well Soon.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
Applied january security update by keeping magisk and still got a bootloop. It seems the instruction will no longer work on Pie. Anyone has the original boot.img of January update? Or can I boot the phone using the december boot.img?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] skabec:
How are you guys. I tell them my problem. I have the latest version 10.02.00. I did the root procedure with magisk, all right up there. But now I get the next update that I attach as an image. I did the procedure of updating uninstalling the magisk and disabling the option to update, restart and I started to download, but does not let install it. any solution??
[Xiaomi Mi A2 Lite Guides, News, & Discussion] anzhaki:
Yep, me too. I had forgotten that this method is not working anymore. There is the same problem with 10.0.2 so this method is not working anymore on pie I suppose and should be written in the first page.

Will wait for the good samaritan that will upload the boot image :D

Did you installed Adaway?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] skabec:
Nope
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
I have a huge (to me anyways) problem now. After bootup failure following the update, I switched slots via fastboot thinking the "other" slot would let me boot the phone normally. But after switching, the phone is now asking for a password and doesn't accept the one that I've been using since I bought this mot*****ker and gives a nice warning that my device will be wiped clean if I don't miraculously guess the password. Is there any chance I could survive the hard reset? I don't want to lose my holiday pictures
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Jonybat:
Just came here to confirm that this process is indeed not working on Pie anymore. Did the usual restore images and when applying January update it fails (coming from December patch). Same apps that used to have on Oreo, no extra modifications. I won't have access to a desktop for a while now, so I can't try other methods for now.

As extra info, I upgraded to Pie from Oreo following a guide a few pages back, which was basically full unroot, reboot, update, reboot, fast boot patched and direct install.

It seems now that there is some other check that the updater does that it didn't before...
[Xiaomi Mi A2 Lite Guides, News, & Discussion] anzhaki:
Just swap back to previous slot and the phone should return to the partition that bootloops. Then wait for someone who will upload the original boot.img and after flashing it successfully it will be possible then to root manually.

[MENTION=7238087]skabec[/MENTION] OTA fails if you have modified system partition for example build.prop file.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
Already did that too. I reverted back to the original slot that was having a bootloop, however, there seems to be some sort of security policy to override slot parameters as the bootloop disappeared and both slots were the same. I've already hard reset the phone and lost everything. I will no longer apply ota with magisk installed in future security patches
[Xiaomi Mi A2 Lite Guides, News, & Discussion] boe323:
Fastboot set_active a

Who knows how to pull the boot.img?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
I can confirm that switching slots doesn't help when faced with password request as the system automatically locks BOTH slots in order to protect user data
[Xiaomi Mi A2 Lite Guides, News, & Discussion] barumbads:
Does this OTA method still works? Im on pie and kind of scared that i might get bootlooped.

update: tried to do the method, it did not work. anyone have original/modded boot.img of jan update? Thank In Advance
[Xiaomi Mi A2 Lite Guides, News, & Discussion] eltano06:
I'm having the same problem. First I try to keep the root by restoring image and the ota fail, then I uninstalled magisk all the way and it still fail.

There must be something different in pie because I could install otas on Oreo with magisk. And I'm not doing or installing anything different than what I was doing in Oreo.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mms047:
Can you provide a non modified boot.img from 10.0.3.0 ? I m in bootloop after trying ota with magisk.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
Try this https://drive.google.com/file/d/1fZJ1Kgz8Mx7qgpuCGwre5pBOdXwkxQ2B/view?usp=drivesdk

---------- Post added at 05:30 AM ---------- Previous post was at 05:21 AM ----------

This is non rooted backup boot.img from twrp, try rename file boot.emmc.win to boot.img And boot on fastboot

https://drive.google.com/file/d/1N7LCRtnv-8MpOea982NZ75G8VYCj4ita/view?usp=drivesdk
[Xiaomi Mi A2 Lite Guides, News, & Discussion] anzhaki:
It is only 13 mb, is it normal? Where did get it from?

Anyway none of the two is booting with

fastboot boot name.img
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
I also need non modified boot.img of 10.0.3
[Xiaomi Mi A2 Lite Guides, News, & Discussion] coolwei1:
Hi, can you teach me how you get the original boot.img for 10.0.3.0?

Or give me any link for me to learn how?

I only know how to get it from the ROM uploaded in MIUI which is not update frequently.