yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Sonthaya:
10.0.3 to 10.0.4?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] skyline91:
yes. i could not update magisk from 18.0 to 18.1 so i had to uninstall it and flash it again.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
I'd like to pass from 10.0.2.0 to 10.0.3.0 (and then to 10.0.4.0) but in "Settings" > "System" > "System update" I've impossible to update, installation problem... I guess I'd have the same problem even if Uninstall" > "Restore Images" from magisk to follow the guide right?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mark7Aymn:
So does everyone has the storage problem (the system becomes 1.1GB after rooting)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thorin0815:
Nope, says 8.1 GB on my phone.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
Sorry, I dont know. I flashed whole 10.0.3.0 rom. But when I was on 10.0.1.0, update to 10.0.2.0 works.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mister26Cm:
boot.img

hi to all

someone have the last update boot.img

tks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] adriakus:
Exactly. I was configuring the phone and so and once I rebooted it, no more root access and the magisk isn't installed anymore.

---------- Post added at 08:53 PM ---------- Previous post was at 08:40 PM ----------

I might have found the issue. Magisk manager need internet to work. I didn't connect the phone to the internet 'cause I didn't want all the google and xiaomi apps being downloaded and updated before I could disable them and configure the phone.

So, what I did is boot the phone in fastboot mode again and flash the patched_boot.img again to "install" magisk. As before. Boot the phone and connect to internet. Then, I opened the magisk manager and a pop up showed up asking to finish magisk setup. Finish it and then, magisk's main screen changed. More options showed. Install is one of them. I installed magisk (direct install), reboot and voilà! It's all good now. I've rebooted a couple times and it sticks.

I love magisk so far! So easy. So powerful. But I think it should not rely on internet for the set up (nor for anything). There should be some way to do it all offline (online for faster config and for convenience, but the offline option should be available).
[MENTION=6342277]k4sh44[/MENTION] if you still have issues installing it, let me know and I'll try to guide you through what I did.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] eltano06:
what boot.img did you use?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] k4sh44:
You really saved me hours of work on this one.

It worked. Yes, magisk needs internet connection to be able to work correctly.

For now i'm done with OTA updates. something went wrong with uninstalling magisk.

Still after this operation without rebooting, the device had always root access. Probably why the OTA didn't worked.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Jonybat:
I was on August patch and I followed this process before to install, so now I just restored original boot image from magisk, applied ota, installed magisk to inactive slot and rebooted.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Maximuous:
Finally got september security update with root, Just need to follow instructions carefully.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] eltano06:
i unistall magisk and got bootloop.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Maximuous:
Never had bootloop with mine. I patched my own boot.img though since im getting errors when using the patched_boot.img from op.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] adriakus:
Are OTA really that important?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Maximuous:
I guess so. No changelogs though.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] adriakus:
I have an issue with WiFi. Ever since I've installed magisk, the status bar icon shows a X and the wifi status is connectes, no internet. However, there is internet. It works fins. But it works as a restricted network (if an app is set to download data using only wifi, it won't download anything). Anyone else with the same issue? Any idea on how to fix it?

(I've capped and disabled most google apps and so)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] cristofer fuenzalida:
the device has been destroyed??

hi at the time of starting the device says "the device has been desroyed" and I do not know what to do I'm worried, I hope your help and compression hopefully we could solve :(
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Maximuous:
you can resolve that by following this Cannot Disable Native Captive Portal Detection. You can use adb or terminal emulator.

What do you mean destroyed? Can you provide a screenshot? Does it boot completely? I think you're talking about the warning with unlocking bootloader.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] adriakus:
I don't think it has nothing to do with the captive portal detection. My gut say it's coming either from a disabled Google app (I tried to have none running) or from AFwall+ (firewall app) blocking something.

Here is what doesn't have internet access and I think might be causing the issue. I'll play with it and try to find a solution.

EDIT: For now, if I give internet access to this one, it all seems to work fine. Hope there isn't any other functionality requiring internet access to work properly.

this one needs internet access

---------- Post added at 10:41 AM ---------- Previous post was at 10:33 AM ----------

Do you mean the first initial screen, where it says it cannot check for corruption? (corruption, not destruction) If it's that, it's all good. It's normal. It's only saying that you have the bootloader unlocked (and therefore, you might not have the original Android in your phone and anything is possible).
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Maximuous:
I am also using afwall. But since i followed the link i gave you, my wifi icon no longer have that x symbol at the bottom. I actually had that icon before following the tutorial.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] machine1104:
when i press RESTORE IMAGES it says theresnt any stock image

what do i have to do?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] k4sh44:
From the OP BubuxP said that to have OTA working it's possible to re-flash only system partition which seems to be logic.

Actually, the only system i can find is the one in the 9.6.4.0 archive provided by MI on their website.

That will not do the trick as i my device is 9.6.6.0 which is still not available for download.

The only download available is the dump provided in the thread "OTA DUMP DAISY v9.6.8.0.ODLMIFF"

No system.img inside. Only a 1Gb payload.bin file in it. Can i extract some system image from that archive or is it not possible ?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
You can extract it using the Python scripts you can find here:

https://github.com/cyxx/extract_android_ota_payload

That's how I get the boot.img that I put in the first post.

You can also flash the whole fastboot image with MiFlash using the "flash_all_except_storage.bat", as I already wrote in the post #10 of this thread.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] adriakus:
It works for now. But I'll lke to know how to use your solution. If I want captive portal prompt, I should just open the terminal (app, with root access) and simply type the following command? Is that it?

settings put global captive_portal_mode 1

0 --> ignore

1 --> prompt

2 --> avoid

I'm quite new when using the command line. Learning every day :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] machine1104:
io invece che devo fare se non mi trova la stock image quando tento di disintallare magisk?

what about me that it doesnt find stock image when i try to uninstall?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] k4sh44:
Ok thank you BubuXP.

Assuming i'll get into that extraction and get the system.img from 9.6.6.0, what should be the flash OS command i should use in order not to make crap nor to brink the device ?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mark7Aymn:
So u know what's wrong or how to fix it please

It still like that even after I flashed the original boot IMG to both slots and the system to the active slot and trying the update procedure again

Edit : update failed again
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thorin0815:
You could try to flash again the full firmware version you are using right now, if this doesn't help try to flash with wipe user data. Maybe a root app you are using is altering the system in any way.

Backup important data before.

Or wait some days until 10.0.4.0 full fastboot rom has been released and flash that.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] viking777:
Yet another OTA failure for me, the third month in a row now. Just the usual 'Installation Problem'. Tried it with the Magisk uninstall/replace image first, then with a full Magisk uninstall, then with a full Magisk uninstall coupled with a stock boot flash to both slot a and b - all failed. So yet again it will be a full rom flash for me to get any updates - what a hopeless phone this is right now. No OTA's, twrp that doesn't work, boot up time double that of any other phone I have ever owned, and the latest one, reinstalling Magisk after the Ota failures says it is successful, but when you reboot, it says it isn't installed. The last one is easily solved by flashing the patched_boot.img, but that shouldn't be necessary Magisk is supposed to do that itself.

No need to reply this post, nothing you can say will make any difference to the situation. Hopefully posts like this will discourage others from buying this piece of crap.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thorin0815:
May I ask if you ever downgraded from Pie to Oreo?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
Did anyone try flashing : flash_all_except_storage.bat ??
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Jonybat:
I'm in the same boat, the method in the OP worked fine until Pie came, now as soon as you root it and install some module you have to flash system before doing the OTA.

Although this is kinda stupid and troublesome to flash the system partition everytime I want to do the OTA, it's still the most stable rom I've ever had, and the phone is awesome for the price, so I can't complain.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
it is not xiaomi's or google's fault. if Google wants ota updates be installed only on non rooted phones, you can't blame xiaomi for that because this is not a miui firmware. the phone is amazing for its price, 90 percent of average users simply don't care about rooting and use their phone for years without even touching its system
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
I flashed system and vanilla boot image and OTA still doesnt work :(.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
Actually most oems won't update ether if messed with things"root" etc..even the old Nexus devices would not allow u to update if u did alot of mod. On a good note it seems development is picking up for the phone so I'm getting excited m
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Antho02:
same here, impossible to update :/
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Marty4:
I was in the same situation [MENTION=5394569]viking777[/MENTION] described above but then I finally managed to update from 10.0.2.0 to 10.0.4.0 via OTA! :victory:

Here's what I did:

reflash the system.img file from 10.0.2.0 to restore my system partitition - I think it was modified e.g. when I froze some system apps with Titanium Backup according to this thread

restore my original hosts file in AdAway / enable the systemless hosts file in Magisk settings

disable other Magisk modules such as NotchKiller

follow steps 12 to 14 from first post
[Xiaomi Mi A2 Lite Guides, News, & Discussion] smicas:
Just wanted to update:

I did the "normal" OTA procedure (restore images, download and install OTA normally, flash magisk to second slot).

It worked perfectly.

On magisk 18.1 and magisk manager 7.0
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
1.restored hosts

2.deactived magisk modules

3.flashed vanilla boot to active partition

4.flashed system.img 10.0.3.0 ( I am on this version ) to active partition

5.tried to update...

...still doesnt work for me :(.

I also tried:

Factory reset... update not working

Flash whole rom via MiFlash -flash_all.bat ... update not working

Flash whole rom via MiFlash -flash_all_lock.bat - update FINALLY working (flash rom and lock bootloader)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
Hi, please help. Everything worked well. I have removed the notch killer in magisk (v18.1 + v7.0) and the phone does not start after reboot. The start screen is displayed. I have 10.0.2.0. I upload again patched_boot.img (in ADB-window powershell) but it does not help. I do not want to lose all data. What can I do now in a simple way?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
You have to reflash rom. I had same problem.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
Can you do without data loss? Can I get a newer rom if it has to be the same version?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
nope
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
where I can find full rom global v10.0.2.0 to install in Miflash?

Edit: ok I already have
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Essaxoxo:
Hi

patched boot for V10.0.4.0 please
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
friends, the important question, i installing the ROM by MiFlash (full wipe data). Will it be necessary to restore the original boot file? I want to install a full 10.0.4.0 ROM as soon as it appears. I made a flash with daisy v 10.0.3.0 and I have big problems, the cellular network is not working. The sim card is visible, but the phone does not find the network at the very beginning of the configuration, it later claims that it is in airplane mode
[Xiaomi Mi A2 Lite Guides, News, & Discussion] manlio62:
Look on this thread! ;)

https://xdaforums.com/mi-a2-lite/how-to/v10-0-4-0-ota-dump-t3902015
[Xiaomi Mi A2 Lite Guides, News, & Discussion] WaveAbuser:
Hi all,

I use the Mi A2 Lite as my primary smartphone and because I cannot risk to brick the device, I have stuck with Android 8.1.0 (Nov. 1st security patch level) and did not update since then, because many people complained about their devices not working after they have been rooted with Magisk. I have Magisk Manager 7.0 and Magisk 18.1 installed.

In the Android settings it tells me that the February update is available.

Can you tell me if the instructions from the first posts work with my device when upgrading from the Nov 2018 to the February 2019 version? Or is there anything else that I have to do? Again: I cannot risk to brick my device.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Chindose:
I have a problem. I followed the steps by op meticulously.

When I want to do an update, I opened magisk, click uninstall then restore original image. It restored successfully but after the update downloads, it doesn't install. It says installation error. What should I do.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Nabukodonosor:
Hey guys, a question. I have Android Pie on my A2 Lite, and I unlocked my bootloader, and flashed TWRP via fastboot. Restarted the phone, but never actually entered the TWRP since. Tried it later in the day, but I couldn't (on volume down+power I get into fastboon, and on volume up+power, I just get that green android and some error, something like no command). So I was wondering, is TWRP installed on my phone at all? And since I decided not to root my phone after all (too complicated), is it safe to do OTA updates now?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] heatti:
Sadly the OTA prodecure didnt work for me either from 10.0.3.0 to 10.0.4.0 . Update still refuses to install. Every OTA update is fighting against me :crying:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] kokos1996:
I confirm that OTA updates work with latest Magisk (v18.1) and Magisk Manager (v7.0.0) - I have just applied February patch.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Jonybat:
If would be nice if people saying it works or doesn't work said what magisk modules/root apps/mods they have applied. It has always been a mix of people saying it works and others saying it doesn't, and that doesn't lead anywhere.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Vink67:
Yeah ! Piece of crap... I wish I wasn't buy this ****ing phone.

Hopefully I buy with it Huawei PSmart 2019 and stay stock,just a great phone.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
Huawei sucks ..mjust flash twrp n go custom
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Nabukodonosor:
Hey guys, can you please answer my question above? I kinda need help. :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
I'd try to flash again but try tellegram page they will probably have a better answere
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Nabukodonosor:
What telegram page? Can you point me to it? Thanks.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] MKKLR21:
On my Redmi Note 4 I have to press Vol+, Vol- and Power to enter recovery mode. Might be the same on Mi A2 lite.

Or use "adb reboot recovery".
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
you probably have not entered flash twrp but you have done boot twrp. you do not need to install twrp, it's better to have root without it. I do not know if OTA will work for you. make a copy of the data and do the installation from the beginning, step by step

if you have made changes to the system via twrp, the update may not work. it's best if you did a copy of the clean system before the changes. then before the update, install the twrp and restore the original data, turn on the phone to update, open the twrp and restore the copy of the data. only so you will be sure that everything will be ok
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Nabukodonosor:
I did not make any changes to the system via twrp, I haven't even enter it, not even once.

How to do root without it?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
update the system to the latest version, then following the instructions from the forum. next boot patched_boot.img, the phone will turn on, install magisk manager and install root in it
[Xiaomi Mi A2 Lite Guides, News, & Discussion] heatti:
Just pointed out my case. I kinda assumed that people would know that I have been reading this thread about what could prevent the OTA updates from installing ;)

Well, back to my earlier post:

-AdAway with systemless -> Disabled to default hosts

-YouTube Vanced -> Disabled -> Uninstalled

-App Quarantine (ROOT) -> Restored all the apps from quarantine -> Uninstalled

Followed OP's OTA prodecure, but update still failed at the installation phase.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Nabukodonosor:
And my point right there...is it safe to update the system to the latest version, since I flashed TWRP (or tried to flash it, you know already)?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
if you do not see an error during the update it will be ok. if it detects changes, the update will fail. if it fails, nothing will happen. in my case it was
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Nabukodonosor:
I've just installed Feb 2019 security update without issues. Does that mean everything is OK?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
if you installed and it works, it means that it's ok. I wrote it already
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Nabukodonosor:
Awesome! Now, you said it's better to root without TWRP...how can I do that? I only know the method with it. Is it possible to root it with the latest 10.0.4.0 update?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
https://drive.google.com/file/d/1t-G-TrEr3rYWnutSBDRIBy5RomaXapzP/view?usp=drivesdk

Boot this file in fastboot, next install magisk manager, next im magisk manager install root (magisk 18.1 im application option directly install)

Run cmd line on windows, connect phone on fast boot mode. Next write fastboot boot patched_boot.img, wait for restart phone And install magisk
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Chindose:
Update error

I did everything but my update fails at installation phase
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
Just updated to the February patch by completely uninstalling Magisk. As long as system partitions remain untouched, I can confirm that there won't be any issues with the update.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
This guild had been my go-to every update I do
[Xiaomi Mi A2 Lite Guides, News, & Discussion] reujea0:
Here is a patched_boot.img for the February update. I am not responsible for any broken devices.

https://transfer.sh/r1pVQ/patched_boot.img
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mister26Cm:
hi

i have finally find a solution for last february update error installation via OTA

1-remove all magisk module , remove all super user app

2- remove magisk with magisk uninstaller

3- with mi flash i flash daisy 10.0.3 (the last flash stable rom http://en.miui.com/download-354.html )

4- now install magisk with boot.img for daisy 10.0.3 and patched_boot.img

5- after installation with the original guide i have try from this point:

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.

all works perfect
[Xiaomi Mi A2 Lite Guides, News, & Discussion] shanksee:
Hello guys, I'm asking if there's some way to fix build.prop modified by adaway.

I used AdAway without systemless hosts module from magisk so I suppose it modified the system partition. What I'm asking is if you know any way to modify back my build.prop or hosts file that Adaway modified.(without systemless hosts module from magisk activated).

Thanks so much for your help ^^
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
From the issues I had I use adaway also I litterly had the use miflash and reflash the device
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
You have to flash rom with miflash(lost all data). Better use dns66 than adaway.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ohDuL4Oo:
Ouch, this is annoying. Will switch to dns66, but losing all data is really bad for me since I spent quite a while getting the phone into the state that it has now. Isn't there a way to "just" revert the changes adaway made to restore the ability to install OTA?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] reujea0:
Download the exact firmware version that you are on. Then extract the system.img( google is your friend) from it and flash the stock system.img and boot.img via fastboot. You won't lose your data, but you will have an untouched system partition
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ohDuL4Oo:
Thanks for the hint. Can i flash the patched boot.img or do I have to take the stock version?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ohDuL4Oo:
I went with the stock version and then went through the guide again. This is the resulting boot.img for 10.0.4.

Edit: sorry not allowed to post links :(

Thank you for your help :)