yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
instal clear 10.0.2.0, update for 10.0.3.0, boot twrp for daisy ( BOOT not Flash) next earse data for unlock patrition, And backup boot. Next restart system into recovery, wipe data. Open magisk manager And patch this file boot.emmc.win finnaly you have patched boot.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] AlessandroL9:
No problem for me following the guide. I restored the boot img uninstalling magisk, I updated the phone, back to magisk, installed into the inactive slot, reboot. January patch and root easily.

I only have Fluid n.g. as app that request root privilege, I disabled in app check marks before uninstalling magisk.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] k4sh44:
Did the same following the guide with Magisk 18 but finally it ended in a bootloop.

I assume now system partion is untouched and that only the boot.img is different from original and the culprit of that bootloop.

Am i right ?

If so, should i reflash original 10.0.3.0 update boot image ?

---------- Post added at 03:08 PM ---------- Previous post was at 02:50 PM ----------

I did it as fastboot is still available and it worked. I'm able to boot the device which is a good thing..

Did a restart and now everything is working back to normal the way it should.

Dunno what screwed.

But i noticed something weird compared to the previous update.

My device boots and shows the multicolor line animation before showing a dark screen and then goes back to line animation which ends in the android system.

Is it normal ?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ee99161:
I got bootloop :(. I've restored the original boot image, but now it is stuck on the rainbow bar scrolling around. What can i do?

I've changed the boot, fastboot set_active a. Is that correct?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
Open recovery mode And wipe data
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ee99161:
Wipe data i will loose everything correct? How do i enter on recovery?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
yes, you lose everything, write on Google mi a2 lite hard reset And see the video
[Xiaomi Mi A2 Lite Guides, News, & Discussion] k4sh44:
If you have access to fastboot mode you could try pushing command "fastboot boot boot.img" through adb windows.

Original boot.img obviously.

It helped me. I didn't have to wipe nor reset my phone in any way.

It's worth a shot.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] viking777:
Its normal for me.

https://xdaforums.com/mi-a2-lite/help/boot-sequence-normal-t3888143

---------- Post added at 04:59 PM ---------- Previous post was at 04:53 PM ----------

Well, as usual, my ota experience is not the same as everyone else, no bootloop for me because no update either.

I uninstall magisk, replace boot partition with stock boot.img, replace system partition with stock system.img, reboot, start update and get 'Installation failed' every time. Don't ask me how.

I'll be glad when there is a stable version of Lineage for this phone, I bought it for the ota ability and it doesn't have any.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] k4sh44:
Well something must not remain untouched with any partition of your device.

I was able to follow succesfully OTA updates with magisk with Oreo.

Every time i install OTA, prior to this i uninstall every magisk modules , then reboot, then replace the original boot image before the OTA.

It's another story now with Pie. I'll see for the next update.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
To me this looks like a seriously minor update .to me it doesn't look like it's worth the hastle.unless there is a some kind of improvement somewhere
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
Yesterday I flashed my phone with V10.0.2.0.PDLMIFJ via fastboot, and then I installed Magisk.

After a full day of using it, a notification said that the January update is ready, so I followed my own guide and got bootloop'd.

I tried a couple methods to restore access to my data, but without success. But there was very little data on the phone collected in less than 24h, so no risks on erasing data.

I put another notice on the OTA section of the guide about this bug.

Probably we should wait for an official Magisk update to restore the correct behavior. For now, when a new OTA arrives, you should do the following:

- open Magisk Manager, and tap on "Uninstall" > "Restore Images" and reboot the phone after that;

- do the OTA update regularly and reboot at the end. Check if the phone boots with the new version;

- install Magisk following my guide from step 6

If somebody can confirm that updating this way will work, I'll change the guide to reflect this, while waiting for and searching for some good news.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
That happens only if you updated your phone to Pie using VPN before the official release or flashed beta version via fastboot. Try flashing the original image 10.0.2 from the official website and everything will get back to normal

---------- Post added at 01:31 AM ---------- Previous post was at 01:27 AM ----------

As long as the system partitions remain untouched, complete removal of Magisk should be enough.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] syndromtr:
unfortunately didn't work.

OTA downloads but cannot be installed (ends with error) and restart never happens.

i'm sure system partitions are still untouched... someone has mentioned, there may be additional check(s) with this 1st OTA on pie system.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
You must flash 10.0.2.0 via miflashtool 2018 :) the best way od flash all.bat with miflashtool, try flash except_storage.bat maybe i think be ok.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
Yes, at the moment I think that the anti-tamper check that before was done on the system partition, now with Android 9 is done in the boot partition also, so you're out of the OTA game as soon as you install Magisk or TWRP.

I can't wait for a working LineageOS ROM...

I tried the "except storage" flash when I got the bootloop some hours ago, but the data partition remains inaccessible anyway (damn enforced encrypting, it should be optional, I don't leave top-secret documents in my phone)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
Flashing by miflashtool??
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
I flashed with fastboot in Linux, using the script file that is contained in the ROM (flash_all_except_storage.sh). That's the same thing as flashing with MiFlash Tool, because it will do the same, but in Windows with a graphical interface.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
no, it's not the same. I installed from the script and the phone did not turn on and when it turned on it had no range. Inne miflashtool i no have this problem
[Xiaomi Mi A2 Lite Guides, News, & Discussion] bla.tiga:
Hello .. is there any tutorial installing with twrp??
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Voodoojonny:
The attached boot.img above doesn´t work, but the renamed boot.emmc.wim form twrp does the trick! Thank you!

First I booted to slot b and saved boot via twrp and restored it on slot a - strangely this doesn´t work - now my slot a is broken, bootloop with every boot.img. Luckyly, I have a slot b...
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
Try flash system_a from 10.0.3.0 or all patrition files in slot a. I think only need to flash system_a
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Voodoojonny:
Not working... Just flashed stock via edl, updated to 10.0.3.0 and restored data with twrp...

But thanks anyway!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
https://drive.google.com/file/d/1unWPgeOKdvRqGrPiuqms_ztZr6HJmDRh/view?usp=drivesdk update ZIP. I have unpacked payload.bin on pc
[Xiaomi Mi A2 Lite Guides, News, & Discussion] 4KIR4:
Long time lurker, wanted to thank [MENTION=5474836]BubuXP[/MENTION] for the guide and all the other helpful people in this community. :victory:

pre-update (Magisk18, Camera2 module) [slot_a]

- followed to the guide as always [patched boot slot_b]

- was put into fastboot-mode upon reboot permantly ("fastboot reboot" would always boot me back to fastboot)

- change back to slot_a

- 10.0.20 boots up says update aborted (no Magisk root anymore)

- changes to slot_b

- 10.0.30 boots and finishes update (Magisk root working)

- system info attests new security update status

That said, I tried updating from 10.0.20 to 10.0.30 before and ran into the same fastboot "problem". Desperately trying to fix the problem bootin with all kinds of patched and unpatched boot.img I was alsways asked for a password I did not set by the decryption. Eventually boot the "official" TWRP, installed it, rebooted while holding Vol+/Powerbutton in hope to enter TWRP again but was faced with the message "Your System has been destryoed" (Terminator-style :cool:). Used MiFlash with flash_except_storage option and got my /data wiped on reboot. TLDR my system was clean when I updated the way written above.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
https://drive.google.com/file/d/1bEdgnsFhmUHM1r7Du6HY_YEikWTM-9Oq/view?usp=drivesdk unpacked 10.0.3.0 :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Held der Arbeit:
Unfortunately leads to the brick
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
What do you mean by "brick"? Is it not booting at all? Or is it just a normal bootloop?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Held der Arbeit:
Device is dead
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
Can you enter the fastboot mode?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Held der Arbeit:
I can not do Fastboot Mode anymore.

The Device Manager continues to display "Qualcomm HS-USB Diagnostics 900E".
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
I found this
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
It's not dead. It's in edl mode. Try holding volume down and power buttons for a couple of seconds. If the phone stays in edl mode, try flashing it in this mode
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ee99161:
Anyone managed to root the new version? How did you do it?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
Could flashing a vanilla boot partition prior to applying OTA do the trick? It seems Magisk is unable to properly restore the Pie boot partitions

---------- Post added at 01:03 AM ---------- Previous post was at 01:01 AM ----------

Just use this patched boot and the rest is done as usual

https://onedrive.live.com/?cid=eb0e50dbbd6349a9&id=EB0E50DBBD6349A9!99526&authkey=!AJeAFC1v7Rymgq4
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ee99161:
Hey. Thank you. So, i need to fastboot flash patched_boot.img , right?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
No, don't flash it. Just use fastboot boot patched_boot.img and then use magisk - direct install
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ee99161:
Gonna try it latter. I always did it without problems, but i've read that few people had problems.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] iflawlietasgod:
how did you get this ?

thank you, anyway
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
hello, I can not update by OTA to V10.0.3.0, whether by root and magisk? What do I need to do? I just to do uninstall magisk?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
Try flashing with fastboot the vanilla boot (non-patched), it should work:

fastboot getvar current-slot
fastboot flash boot_? boot.img

Change the ? with the letter given by the first command.

Obviously the version of the vanilla boot.img must be equal to the ROM version installed at the moment in the phone (it should be 10.0.2.0 if you're upgrading to 10.0.3.0).
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
Thank's for Your reply. Can not I installed in the same way as patched_boot file ? only the name of the file change and it should work?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
no, because patched_boot is not flashed in the phone memory directly, only used as a temporary boot.

The OTA updater must find a clean boot partition in the phone memory to proceed with the update process. But you can boot temporarily with vanilla boot like it was a patched_boot, just to check before what could happens, to be sure nothing wrong happens:

fastboot boot boot.img
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
I understand, can you write to me what I should do and in what order? I do it for the first time - then I can handle it next time. I have 10.0.2.0 with magisk installed using patched_boot. I want to upgrade by OTA to 10.0.3.0 and re-create root (magisk) for this new build. How do you do it one by one to not spoil something? I have a lot of data in the phone so I can not lose it
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
If you have important data on the phone don't update at the moment. If you want to try anyway you must copy it to an external memory or a PC.

You should download the vanilla boot 10.0.2.0 (you can find it in the first post), then boot the phone with it via "fastboot boot boot.img"

If the phone boot normally, use this command to know your active slot

"fastboot getvar current-slot"

Then this command, but change the ? with the current slot:

"fastboot flash boot_? boot.img"

After this you should be able to update via OTA, but I'm not sure, as something is changed in Android 9 and I still don't know what exactly...

If OTA is ok, then install magisk with the second section of my guide

Then you can
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gabri84sv:
Hi guys, I have a question: I install magisk apk on the last update of january, then I flash the pach for this update, now i try to install magisk without twrp, when I run magisk and press install he ask me to install magisk.zip and then I choose if I download only a zip or upgrade boot image, what I do?

Thank you so much
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
Thank you [MENTION=5474836]BubuXP[/MENTION] for the description. I do not necessarily have to update, I do not want to lose my phone's content. maybe just uninstall only magisk and the upgrade will be possible?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] smicas:
I followed the regular OTA instructions and ended up with a bootloop.

I then flashed the stock boot image found here:

https://drive.google.com/file/d/1N7LCRtnv-8MpOea982NZ75G8VYCj4ita/view?usp=drivesdk (rename the file to boot.img)

I flashed it to the active slot.

Device booted unrooted.

After that, I booted to fastboot and rebooted with the patched image (not flashed - just boot).

Then I installed Magisk with direct method.

Rebooted, and all is working well.

Just thought I would share how I got it to work.

Thanks to all who helped here!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
thanks, every month I will upload this file with new updates :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] smicas:
Thank you for your effort - much appreciated!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
upgrade

Hi please share your procedure should you manage to upgrade as I'm precisely in the same situation. Any clue whether this January fix fixed the focusing problems with Gcam on pie?

i guess when Bubuxp wrote "You should download the vanilla boot 10.0.2.0 (you can find it in the first post), then boot the phone with it via "fastboot boot boot.img"" he meant the 10.0.3.0 ? Otherwise I'm confused :confused:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
yes - he wrote 10.0.2.0 because now I have this version and I need to restore the stock boot_img if I understood correctly. 10.0.3.0 will only be updated. I do not know if I will do it if there is a risk of losing data .... :(
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
but you said " I have 10.0.2.0 with magisk installed using patched_boot. I want to upgrade by OTA to 10.0.3." so you already have 10.0.2.0 correctly working haven't you? That's why you need to download the 10.0.3.0 and boot with it in order to see if it boots correctly and then proceed with the rest. Correct?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] InfinityXDA:
I screwed up and hit "completely uninstall" so gotta use MiFlash
[Xiaomi Mi A2 Lite Guides, News, & Discussion] C2000K:
The OTA method didnt work from 10.0.2.0 to 10.0.3.0, it ended in booting to a blackscreen and then crashing and booting again (bootloop).

Fix: boot the original 10.0.3.0 boot.img, it will boot and finish the OTA.

fastboot boot boot.img

Then I went into fastboot and flashed patched 10.0.3.0 boot.img, installed magisk and now its working again.

fastboot boot patched_boot.img

Download the vanilla and patched 10.0.3.0 boot.img from here, he saved my ass.

Hope it helps!

https://xdaforums.com/mi-a2-lite/development/patched-boot-img-v10-30-0-january-update-t3891331
[Xiaomi Mi A2 Lite Guides, News, & Discussion] dbfchris:
Sure ? or 10.0.2.0 ?

---------- Post added at 07:17 PM ---------- Previous post was at 06:47 PM ----------

i have no bootloop, i have installed V10.0.2.0 and it is not possible to install the new version. Tried everything, but no luck.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] C2000K:
Exactly, as described. Im now running 10.0.3.0 with magisk properly working.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] dbfchris:
tried again, but no luck. december version is running at the moment fine. i try in a few days again. thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] C2000K:
You need to remove magisk, else OTA wont install of course.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] dbfchris:
all removed, no luck.

had a lot a of devices, beginning from redmi1, redmi2 and the last was a redmi3s, but such a phone is a shame.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] boe323:
my boot changed to slot b after ota? it was defo slot a before because miflash sets it to a, does this matter at all?.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] skyline91:
This didn't work. I downloaded 10.0.2.0. fastboot image, flashed without loosing data, install OTA update, downloaded patched 10.0.3.0. boot image and did point 10 in your guide. Everything works fine.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] C2000K:
Its not the devices fault that your system is corrupted, more likely yours. Backup and flash clean.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] apolobeta:
I have the same problem. :(
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
yes 1.0.2.0 works correctly for me. From what I read there is no possibility of updating OTA if it is root - you need to do a full wipe. At TWRP it would be without a problem but unfortunately there is not yet TWRP for this model and Pie
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Sonthaya:
Is the 10.0.2.0 not boot loop pls tell me i'll do
[Xiaomi Mi A2 Lite Guides, News, & Discussion] satrang:
Hello guys,

I need to update my sister's device in which I installed twrp and magisk in order to get gcam. The device is still on october firmware.

Can you please tell me where should I start?

I think twrp is not necessary anymore but I'd like to avoid erasing all the data on the device. Is it possible?

Thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] luno:
There is 10.0.2.0 rooted with magisk 18 on my phone right now. I'm trying to install the latest OTA update following the instruction from the first post (steps 12 and 13), but it fails. Where can I find the update log?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] viking777:
I might be able to help you with this, but only in a negative way.

I have exactly the same problem as yourself and have been chasing the answer in the same way. I found the answer, but when you find it, it does you no good. The update log is in the phones logcat (along with tens of thousands of other junk entries you don't really want to read). All it says is that the expected sha256sum and the actual sha256sum are different, (for the boot partition in my case - probably yours as well). Unfortunately it doesn't tell you why they are different or what to do about it. I don't rely on Magisk to replace the boot partition, I do it myself with fastboot so I know I am using a stock boot, but it still doesn't work.

In case you want to try it yourself, the method for Linux (I don't use Windows) are as follows:

Connect your phone to your pc (booted nomally) then run this command:

adb shell logcat | grep "update*"

Then scroll through the results - but as I said before it won't help you so probably isn't worth you time.

The best option that I know of is to wait for someone to post an OTA dump file and flash that complete. Instructions here:

https://xdaforums.com/mi-a2-lite/how-to/ota-v9-6-4-0-odlmiff-t3823913
[Xiaomi Mi A2 Lite Guides, News, & Discussion] restNow:
Just OTA-updated from Rooted 10.0.2.0 to (again rooted) 10.0.3.0 with the following steps:

1. Opened Magisk - Uninstall (completely)

2. Rebooted into fastboot mode

3. Booted with vanilla boot.img from 10.0.2.0 (fastboot boot boot-10.0.2.0.img)

4. Applied OTA-Update

5. After reboot waited for OTA-Update to finish.

6. Rebooted to fastboot

7. Booted with patched boot.img from 10.0.3.0 (fastboot boot patched_boot-10.0.3.0.img)

8. Installed Magisk Manager, opened it and selected Install > direct Install

9. Rebooted (had to reboot twice for some reason to make root work again). Finished

Got the patched_boot 10.0.3.0 from here: https://xdaforums.com/mi-a2-lite/development/patched-boot-img-v10-30-0-january-update-t3891331

and the vanilla boot 10.0.2.0 from this thread, first post: https://xdaforums.com/mi-a2-lite/how-to/guide-install-magisk-proper-support-ota-t3836952
[Xiaomi Mi A2 Lite Guides, News, & Discussion] dbfchris:
I had tried it the same way, but it didn't work.

root and magisk I don't really need. just had an adblocker and a tool for wifi installed.

stays on original for now.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
How can the system detect that boot partition had been modified even after flashing a vanilla boot image? Is this a new security implementation on Pie?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] luno:
Thanks a lot! I found out that my system partition was altered and had wrong checksum. I've tried to uninstall the magisk and restore the original hosts file, but nothing helped.

Then I just downloaded the fastboot 10.0.2.0 files from here: https://xdaforums.com/mi-a2-lite/how-to/ota-v9-6-4-0-odlmiff-t3823913 and flashed both system_a and system_b with the original system.img. That's the solution.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
Thank you, and steps from android8 to 10.0.0.3?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
finally someone wrote everything step by step what to do and in what order. [MENTION=7479540]restNow[/MENTION] big thanks for You :good:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
Ok it's better to go directly this way or first to give a chance to the method of the guide for ota updates? (donìt want to go into bootloop again after updating android 8.1-->Pie...) Thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] viking777:
I would love to know the answer to that one myself:confused:

---------- Post added at 10:39 AM ---------- Previous post was at 10:36 AM ----------

Well I am glad it worked for you, but I tried that days ago and it doesn't work for me.

Never mind, the 10.0.3-0 update looks pretty worthless anyway from what I have read about it, I will just wait it out.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] luno:
[MENTION=5394569]viking777[/MENTION] did you flash both a and b partitions?

---------- Post added at 04:29 PM ---------- Previous post was at 04:28 PM ----------

[/COLOR [MENTION=5394569]viking777[/MENTION] did you flash both a and b partitions?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] viking777:
I flashed boot_a and b, system_a and b, and vendor_a and b, both singly and altogether - doesn't work:(
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Never_flamingo:
This worked for me, but I skipped 2-3 because magisk automatically restored the non-patched boot. Thanks