yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] panther7:
Thanks for great guide. But i have problem.

1. I have Magisk Manager, say "all it's ok", all installed

2. After reboot phone, say "Magisk not installed"

3. I go to fastboot, apply patched_boot.img, reboot phone

4. All is ok, all instaled, say Magisk Manager, after reboot phone again not...

I have February 2019 Update, Magisk Manager v7.0.0, Magisk v18.1

Any solution? Thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
After u installed the patched ing and rebooted did u go to magisk app and hit I stall then hit direct install
[Xiaomi Mi A2 Lite Guides, News, & Discussion] restNow:
Just did that, because my phone wouldn't update (probably system partition modified by AdAway), flashed original system.img from original 10.0.3.0 Firmware from Xiaomi-Website (fastboot flash system_a system.img & fastboot flash system_b system.img).

After that updating worked fine. After update fastboot boot'ed patched 10.0.4.0 img and installed Magisk again.

Thank you for your help and hints!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] snakeharmer:
I seem to have lost root upon rebooting my phone - Magisk is prompting me to install it. Anyone experience this?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] saleyman:
... but all data are lost!?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] jacopoBergamo:
No You no Lost your data!! Really important when You flash the rom with Miflash use the option "flash and save user data"
[Xiaomi Mi A2 Lite Guides, News, & Discussion] saleyman:
oh, I did not see the option....

I see, on the radio button I have to check: "save user data"

and what is to select in the combo box next to it? these are the options:

flash_all

flash_all_except_storage

flash_all_lock

flash_all_lock_crc
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Txatxiquesi:
I bet is flash_all_except_storage:laugh:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] saleyman:
thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] syafiqpeot:
New update

Need boot.img for this build

Hye anyone know how to find boot.img this build..already find in official mi website but don t have fastboot file..i want to root this build..Thanks

Dont have solution to root this build
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rikesh123:
Can someone provide step by step instructions for the OTA upgrade from 10.0.2.0 to the latest February version? I'm following the guide but keep getting installation error on OTA install. It used to work fine until recently. Cheers
[Xiaomi Mi A2 Lite Guides, News, & Discussion] domdp:
Where can i download the last february patch (v10.0.4.0.PDLMIXM)??
[Xiaomi Mi A2 Lite Guides, News, & Discussion] fishpepper:
I can confirm this issue... All previous OTAs worked fine, this one just ens up with an error message.

There is also a thread on that issue: https://xdaforums.com/mi-a2-lite/help/february-2019-security-update-failure-t3902859
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
Mi flash the newest version this on the page if it's not the Feb update that ok as soon as u flash to stock u will be able to update again
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mister26Cm:
No the option isn't in te combo box!!! but near the combo box there is "save user data" option

grzprg
[Xiaomi Mi A2 Lite Guides, News, & Discussion] fishpepper:
I downloaded the last revision daisy_global_images_V10.0.3.0.PDLMIXM from here:

en.miui.com / download-354.html

extracted the system.img:

tar xzf daisy_global_images_V10.0.3.0.PDLMIXM_20190114.0000.00_9.0_e8d8d4a6d0.tgz

boot to fastboot:

adb reboot bootloader

flash system img:

fastboot flash system_a daisy_global_images_V10.0.3.0.PDLMIXM_9.0/images/system.img
fastboot flash system_b daisy_global_images_V10.0.3.0.PDLMIXM_9.0/images/system.img

Then reboot and open magisk and uninstall as usual. Do OTA and DO NOT reboot.

Then make sure to reinstall Magisk in inactive slot. Reboot. Done.

Hopefully no lost data and no bootloop....

For me this worked fine!

I am still not sure how I messed up the system img in first place. Most likely AdAway messed it up. I did not have systemless hosts active at that time... Hopefully this time it works and will not mess up the system image again :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] AndroFluffy:
if you are looking for a patched_boot image for 10.0.4.0.. there you go!

https://drive.google.com/file/d/1t-G-TrEr3rYWnutSBDRIBy5RomaXapzP/view

its not mine a guy gave it to me.. tested and working.. ill link hes name later
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
When I used miflash it wouldn't let me do user data always told me no script
[Xiaomi Mi A2 Lite Guides, News, & Discussion] kasth:
Can't find the boot files for A2 jasmine.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
Do you know this is A2-lite thread?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] kasth:
Yes, i'm aware. See post #6 so you understand why i'm looking for A2 jasmine files here. :D
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rikesh123:
Can this be done without losing data?

Thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
There seems to be a way but idk it
[Xiaomi Mi A2 Lite Guides, News, & Discussion] syndromtr:
so, some advices from me, during android oreo to latest 10.0.4.0 upgrade every month, i've noticed every trouble including soft-brick, losing all data... only advantage i had was : backed up all system+user apps already with titanium backup...

- now update check is deeper, first OTAs had less checks to allow installing (latest OTAs end up with "install error" easily) so do not freeze system apps.

- if using adaway, make sure that systemless host module is active inside magisk. before OTA apply, guaranteed way, disabling hosts inside adaway and reboot will be better.

- manual way, backing up folders with data and apps backup with titanium backup will help before applying incoming OTAs.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ramiwi:
Where can I get the fixed TWRP version?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Medo22:
If I received ota update and flashed the vanilla boot.img of the current build number and applied the update,it will be installed normally? Then I can install magisk again, true?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
how long does the twrp turn on in yours phones after reboot? For me in A2 Lite it takes about 5 minutes before the option screen appears. Maybe a little too long?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] p-walker:
Interestingly the update from 10.0.3. to 10.04 is failing now. It was the first time I actually activated the systemless hosts module. The 2 OTA updates before I didn't use the module and my OTAs worked.

It honestly looks like the systemless hosts module is kinda ****ed up. Guess I need to flash system img again :-/
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
I'm stuck with 10.0.2.0 with a nice "impossible to update" message... :( I'll leave it with the 10.0.2.0 I guess unless there's some huge improvement in the next updates. Just need to be patient until the mi 9 se arrives to a decent price :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ramiwi:
After fastboot flushing 10.0.4.0 on both slots I cant patch and install magisk. Magisk manager 7.0 says magisk not installed but only gives me the "uninstall" button which says no backup exists so it cant proceed.

When booting to twrp (fixed version) i cant pass the pattern screen (decryption) and mount partitions.

Previously I managed to do several updates with magisk, then while on 10.0.2.0 my brother tried updating magisk or ota and got stuck at the black pattern lock screen - decryption always failed. twrp recovery was gone so I did a factory reset from the standard recovery and since then ota update was downloaded but failed to install so I fastboot flushed feb (10.0.4.0) manually. but now I cant install magisk or twrp (as I already described at the beginning of this post).
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
I would use mi flash to the newist firmware and start over with magisk n twrp
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BiG_FooT:
I have exactly the same issue as described above. I did open the Magisk App after flashing the patched boot image and installed the zip. (there were 2 options, download and install zip or patch boot-image).

After reboot Magisk says not installed and I have to flash patched boot-image again.

Any ideas how to solve the fact that the patched boot-image won't last after reboot? I'm on PIE ROM version v10.0.4.0
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BiG_FooT:
I managed to get it working on v10.0.4.0 with February security patch. Magisk Root will stick after reboot when you install the latest 'canary' build. This version is updated for Xiaomi devices. You can download it here:

https://www.google.com/amp/s/xdafor...sk-canary-channel-bleeding-edge-t3839337/amp/

1) install Magisk canary APK.

2) flash patched boot.img with ADB and fastboot

3) after reboot open Magisk app and install (choose direct install)

Profit!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Rabindra dhakal:
A2 lite feb. Patched boot img
[Xiaomi Mi A2 Lite Guides, News, & Discussion] frasca61:
ROM 10.0.4.0

where can I find the rom 10.0.4.0? on the official website I find the 10.0.3.0 ...
[Xiaomi Mi A2 Lite Guides, News, & Discussion] networxpsc:
i'm also looking for 10.0.4.0 boot.img .... no extract?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BiG_FooT:
A few posts back:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] frasca61:
I'm looking for the rom to use with MiFlash, in the past I had problems with updates (I have the root with magisk) and the only solution to update was Miflash....

with the original ROM a can patch boot.img from myself with Magisk
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Txatxiquesi:
I think xiaomi doesnt already released the 10.0.4 full rom.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] satrang:
Hello guys,

I have problems updating from 10.0.3 to 10.0.4 via OTA, I think I messed up something in system. Where can I find the system.img file for 10.0.3 version?

I downloaded the tgz file of the rom from miui.com official forum. Do I just extract the system.img file (2.1 GB) and flash it via fastboot? Do I lose data?

Thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] panther7:
DELETE
[Xiaomi Mi A2 Lite Guides, News, & Discussion] shazee666:
Hello. I have used this post in the past and had successfully rooted my device. I installed a Magisk module which resulted in my phone going in a bootloop. I used miflash tool to install a clean ROM.

The problem is, after successful flashing, my phones gets stuck in the Android loading screen, and restarts in Android Recovery, asking me if I want to do a Factory Reset. I select yes, but to no avail. I have flashed it multiple times now with a Fastboot ROM, but the same is happening. I keep getting stuck on Android loading screen, and then the phone restarts in recovery.

What seems to be the problem?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] shazee666:
Downloading a fresh ROM and flashing it did the trick.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] viking777:
MY GOD! IT WORKED!!

For the first time since I have owned this phone I actually got an OTA update using the procedure outlined in sections 12,13 and 14 in post 1 of this thread. It didn't go exactly as per those instructions, I had to do one other simple step at the end. When I first rebooted after step 14, I got only the fastboot screen. I ran 'fastboot set-active b' (having been on slot a before) and it actually booted exactly as it should.

Incidentally, another interesting fact is that the version number jumped from 10.0.4.0 which I was on before to 10.0.7.0 now. Not sure why, but the thing is it worked as it should for the first time ever, and I still have root.

NB this is not an April fools joke, it is still March, it really did work as it should.

Happy bunny.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] OPOt585:
Yeah since last time I am scarred, I don't think I'm going to update until the full update image is uploaded..
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mattania:
https://drive.google.com/file/d/1l52VjFGlAhZhSL7_BrC7WioHX3NmHWcA/view?usp=drivesdk patched boot for 10.0.7.0 Daisy
[Xiaomi Mi A2 Lite Guides, News, & Discussion] viking777:
I can easily relate to your fear!! I experienced it too.

One other thing that might be of interest to people is that a couple of minutes after the update completed I got a text message from my mobile provider saying that 'wifi calling' had been activated on my phone. Now I can't imagine that that was a coincidence, it must have been a result of the update. My isp activating it was one thing, actually making it work was quite another, there is a thread here discussing it https://xdaforums.com/mi-a2-lite/help/mi-a2-lite-wifi-calling-t3873470 with some suggestions in it and I am about to add to those to explain how it worked for me, but if voice over wifi is important to you then this update might be worth it for a change, none of the others have been any use as far as I can tell.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mansil234:
So how can i install the new ota update with magisk? I followed the steps and for the february update it worked like charm. But now the update refuses to be installed and i dont't know why....
[Xiaomi Mi A2 Lite Guides, News, & Discussion] xxmicahoo:
March Update Success

Coming from 10.0.3.0. Followed steps 12-14 and also got stuck at fastboot. I rebooted a few times and remained at fastboot. Set slot to b as per previous instruction using command 'fastboot --set-active --slot b' on fastboot 1.4.3, 'fastboot reboot', boots, ota failed. Reinstalled Magisk on 10.0.3.0, steps 12-14. Rebooted after Magisk finished and all was well. On 10.0.7.0 with full root and V4A working flawlessly.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mzz75:
Please a link for orginal boot for 10.0.7.0 Daisy ... Thank you
[Xiaomi Mi A2 Lite Guides, News, & Discussion] krzygaj:
Please write how the upgrade from 10.0.0.4.0 with Magisk - did it take place without problems?

Thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BiG_FooT:
Would be nice to have a full guide with a step by step guide! Or maybe the OP could update the thread?

Much appreciated!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] krzygaj:
I was more concerned about whether there are any surprises after the upgrade (10.0.0.4.0 + Magisk) - bootloop and other
[Xiaomi Mi A2 Lite Guides, News, & Discussion] F1nes:
Go patch v10.0.7.0 boot.img bro, pls <3
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ar rith:
before this i follow your step and it is working for mi a2.. after recent boot loop happen to my phone i miflash a fastboot rom.. then using your method but get installation problems.. do you know why this happen.. i didn't modified any file.. my phone just newly flashed with miflash.. then i flash patched boot and do a direct install.. after restart phone i uninstall magisk with restore option.. and then when update it said installation problem.. i didn't mess with anything i just install magisk only.. i really love using magisk before this.. can you help me
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thorin0815:
You are not supposed to flash the patched boot, just boot your phone with it.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ar rith:
my mistake.. i boot it not flash it.. i flash the original boot file and then boot the patched one
[Xiaomi Mi A2 Lite Guides, News, & Discussion] AndresX:
Hello, I want to get boot.img file in my own.

How do I get the boot.img for 10.0.7.0? because the latest fastboot rom form MIUI is the 10.0.3.0.

I was thinking of downgrading to that version, rooting, download the 10.0.7.0 OTA and extract the boot.img from there, but I don't know if that is a good method. Thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] dedebekri:
Download full rom 10.0.7.0 from;

https://bigota.d.miui.com/V10.0.7.0.PDLMIXM/miui_DAISYGlobal_V10.0.7.0.PDLMIXM_ff29895bef_9.0.zip

Extract contents of payload.bin in the zip file by running the python code itself or the exe file.

Source and details;

http://4pda.ru/forum/index.php?showtopic=496786&view=findpost&p=68709650

I have upgraded my device using this method by flashing all img files extracted from payload.bin

Here is the bat file I used for fastboot flashing.

echo "This will install OTA".
pause
fastboot flash devcfg_a devcfg.img
fastboot flash devcfg_b devcfg.img
fastboot flash dsp_a dsp.img
fastboot flash dsp_b dsp.img
fastboot flash modem_a modem.img
fastboot flash modem_b modem.img
fastboot flash rpm_a rpm.img
fastboot flash rpm_b rpm.img
fastboot flash tz_a tz.img
fastboot flash tz_b tz.img
fastboot flash keymaster_a keymaster.img
fastboot flash keymaster_b keymaster.img
fastboot flash cmnlib64_a cmnlib64.img
fastboot flash cmnlib64_b cmnlib64.img
fastboot flash cmnlib_a cmnlib.img
fastboot flash cmnlib_b cmnlib.img
fastboot flash system_a system.img
fastboot flash system_b system.img
fastboot flash vendor_a vendor.img
fastboot flash vendor_b vendor.img
fastboot flash aboot_a aboot.img
fastboot flash aboot_b aboot.img
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash sbl1_a sbl1.img
fastboot flash sbl1_b sbl1.img
fastboot flash mdtp_a mdtp.img
fastboot flash mdtp_b mdtp.img
echo "FLASH ENDED"
pause

Mi A2 Lite cihazımdan Tapatalk kullanılarak gönderildi
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Factory Reset:
Can someone please upload the unpatched boot img?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] dedebekri:
https://drive.google.com/file/d/1DvpYsOytASklV4OZDczITCc27k3R37Mw/view?usp=drivesdk

Mi A2 Lite cihazımdan Tapatalk kullanılarak gönderildi
[Xiaomi Mi A2 Lite Guides, News, & Discussion] eltano06:
im in trouble, i did the restore image to install the ota and then reinstall magisk but the ota fail so i try reinstall magisk (direct install) but get error, i reboot the phone and now i got black screen asking for password. is there a solucion where i dont lose my data? i try booting from patched_boot or flashing stock boot.img and
[Xiaomi Mi A2 Lite Guides, News, & Discussion] grufty47:
Hi guys,

My 10.0.7.0 upgrade story: After successful upgrade from 10.0.3.0 to 10.0.4.0 with Magisk deactivated but saving the current boot.img I now went forward upgrading to 10.0.7.0. Unfortunately, not following meticulously the instruction (removed Magisk completely during OTA-upgrading to 10.0.7.0) I ended up in the running stripe bootloop. Various attempts to boot with a.o. boot.img on both slots failed; false password bootloop... though no password/fingerprint had been installed. Nothing worked for me but flashing latest full rom 10.0.3.0 from Xiaomi website . (I used MiFlash20181115, which only worked with the log directory of a former MiFlash version (04/2017) and "flash_all_lock_bat" setting. Perhaps I should have better used the older version right away). Afterwards no problems with reinstallation from Google cloud and OTA upgrades to 10.0.7.0 build. Moving forward with boot.img from post 696 (Thanks a lot, dedebekri!), patched with Magisk 18.1. After booting the patched_boot.img and rebooting the device MagiskManager 7.1.1 showed that Magisk 18.1 was installed (green) and everything was ok!

But one final question: how can I retrieve the current boot.img from the rom myself with adb commands as e.g. adb pull boot.img. Can anybody post the exact command?

Regards Grufty47
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Never_flamingo:
Im in 10.0.4.0, ota fails, even if I followed the guide. Uninstall>restore images worked, but not ota. Now if I reboot phone, it starts and after 10 sec turns off, and I have to do a fastboot boot patched_boot.img to make it turn on and use it. What should I do? Uninstall completely magisk? flash all partitions with untouched 10.0.4.0 boot.img? do a full fastboot flash with MiFlash tool, but using the flash_all_except_storage.bat script? I havent tried yet cause I dont want to make it worse :confused:

ps: I am using api2 and viper module
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BiG_FooT:
A lot of people having trouble to successfully upgrade to v1.0.0.7. Again it would be very helpful to have a clear step-by-step guide. Anyone who succeeded to update and posting a guide?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] cpu004:
Can confirm this works. Will give one boot loop after unlocking on boot but after second load works fine. Did lose magisk patched boot img, but can easily patch manually by using the boot.img from extracted payload.bin.

The payload dumper exe from the Russian forum didn't work download for me.

https://androidfilehost.com/?fid=818070582850510260
[Xiaomi Mi A2 Lite Guides, News, & Discussion] syndromtr:
i agree.. had troubles 3 times :

losing all data

losing all data + phone asks for pin/pattern and can't be bypassed

finally, worst, while sending files via fastboot flash .... commands, critical transfer error caused phone not booting. fastboot out of reach!

i strongly recommend backing up all user apps (titanium backup preferred) and important folders. i even prepared a batch file performing adb pull ... commands to backup directories to PC.

so, i won't take those risks until a proper guide appears.

also OP or other people who wants to share a guide need to know that: (a proper guide need to cover all cases successfully)

- some people followed OP's instructions while they were on for ex. 10.0.2.0 and they applied OTA's several times. finally, they applied steps 12 to 14.

- some people tried above only over 10.0.4.0 and they last applied step 11. this is first OTA they received.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] bennnnnni:
I updated to the March update and stupidly did not reinstall Magisk before rebooting to finish the update install. I've done the process before but obviously was not paying attention this time.

The unpatched 10.0.7 boot.img that was posted on the previous page worked fine. Patched it with Magisk and flashed with fastboot. I just wanted to post in case others are in a similar situation.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BiG_FooT:
Tried your approach but didn't work form me. It gave some errors during flash of certain files and resulted in boot loop. It's difficult to update when system is rooted, fore sure!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Maximuous:
Thank you for this. Got root again.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] a1291762:
You need root. If you have that, great. If not booting twrp from fast boot will do (don't have to install it).

adb shell

su

dd if=/dev/block/by-name/boot_a of=/sdcard/boot.img bs=1024k

exit

exit

adb pull /sdcard/boot.img

This saves boot a. You may be on boot b instead.

/process/cmdline has a hint (androidboot.slot_suffix=_a) or fastboot getvar current-slot can tell you.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] luckysquid:
HI,

I have february OTA 10.0.4.0 with latest magisk (youtube vanced and systemless host ext.)

Someone succeeded to upgrade to march ota with official step?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
Works like charm!!!! Thank you, I am already on 10.0.7.0. Standard way via systemupdate didnt work. I recommend turn of screen lock before patching.