yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] psyriccio:
sended to PM
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Bechamel:
Can you send it to me too please?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] a1291762:
I made these after doing the OTA.

https://yasmar.net/files/vanilla_boot_10.0.14.0.img.gz

https://yasmar.net/files/patched_boot_10.0.14.0.img.gz
[Xiaomi Mi A2 Lite Guides, News, & Discussion] AdrielMetal:
I need patched boot V 10.0.14.0, after September updated. This one didn't work for me.

Thanks.

This problem :

in adb interface

daisy_sprout:/ $ su

/system/bin/sh: su: not found

127|daisy_sprout:/ $
[Xiaomi Mi A2 Lite Guides, News, & Discussion] grufty47:
How to retrieve a magisk_patched.img file after any OTA update

All,

to correct my earlier proposals above my favourite way to do OTA and install Magisk is to use "twrp-3.3.1-dees_troy-daisy.img" (can be downloaded via Google or TWRP app)

1.) before triggering the OTA uninstall any Magisk downloaded apps with Magisk "uninstall/restore image" option, afterwards uninstall Magisk completely

2.) do the OTA to 10.0.xx.0,

3.) put device into fastboot mode (push Volume down & power), connect it to the PC. Open a cmd window in the adb tools directory on your PC (shift, right click, select Power Shell)

4.) check the slot (a | b) of the device after the OTA and boot into TWRP

5.) <fastboot getvar current-slot>, (return value: a | b), <fastboot boot twrp-3.3.1-dees_troy-daisy.img>, let TWRP boot.

6.) In the TWRP menu go to "enhanced" (erweitert) / File Manager (Datei Manager) to select the new boot image in mmcblk0p5x in the /dev/block/ directory.

7.) Depending on the return value of <fastboot getvar current-slot>, (return value: a | b), copy mmcblk0p51 if working in slot a or mmcblk0p52 if working in slot b, respectively, to a user accessible location (SDcard or Download directory).

8.) reboot, install the Magisk Manager (e.g. from SDcard or Download directory), patch the latest OTA boot file (slot a = mmcblk0p51 , slot b = mmcblk0p52) as per the Magisk procedure (install Magisk, select and patch file), copy the Magisk patched boot file ("magisk_patched.img" in /storage/emulated/0/Download) to the adb tools directory of your PC,

9.) put Mi A2 lite into fastboot mode again, in the adb directory do: <fastboot boot magisk_patched.img> from cmd line / Power Shell on the PC.

10.) After reboot check "Direct Install" in the install menu of Magisk Manager to permanently get Magisk root again.

Eventually you may permanently install TWRP or reserve the TWRP functionality to boot if needed.

Done.

My investigation from comparing MD5/SHA-1 checksums gave that the mmcblk0p51.img partition/file contains the boot image in slot a, the mmcblk0p52.img contains the boot image in slot b. Make sure to establish the operating slot first to save the correct boot image for patching with Magisk!

The attachment, magisk_patched.img.gz, is retrieved from the 10.0.15.0 boot file on slot a by the method above.

grufty47
[Xiaomi Mi A2 Lite Guides, News, & Discussion] sergio.h:
Can you send it to me too please?

Thanks !
[Xiaomi Mi A2 Lite Guides, News, & Discussion] psyriccio:
http://jws.forteholding.ru/public/boot_10.0.14.0.img

---------- Post added at 11:21 AM ---------- Previous post was at 11:00 AM ----------

and 10.0.15.0 patched boot

patched_boot_10.0.15.0.img
[Xiaomi Mi A2 Lite Guides, News, & Discussion] grufty47:
Addendum to #988

wrt my post at #988:

Without having to guess at partition numbers in </dev/block/> (boot_a = mmcblk0p51, (boot_b = mmcblk0p52) the boot images can also be retrieved after OTA and by means of TWRP in </dev/block/platform/soc/7824900.sdhci/by-name/boot_a> or

</dev/block/platform/soc/7824900.sdhci/by-name/boot_b> respectively.

as indicated by a1291762 (thank you!)

I just did the upgrade to 10.0.16.0 using the procedure in post #988 with comparing the check sums of the boot file in both locations, yes, indeed, they are the same.

There are just 2 issues left:

1.) What to do if you experience the password horror (if anything goes wrong)? I know nothing else but factory reset or full flash and relying on your back-up.

2.) How to get into the system if no reliable TWRP is available (e.g. shortly after the launch of a new device)? That is to say how do you get administrator rights on your android via a terminal emulator?

Answers are highly appreciated!

Feel free to use or build your own magisk_patched with the files attached in the directory vanilla_10_0_16_0_boot-files:

https://drive.google.com/open?id=1LIW00dU7OpDjRmRGlntSqVUTcGNG-0I_

grufty47
[Xiaomi Mi A2 Lite Guides, News, & Discussion] CaptainAdHoc:
Hi everyone,

after installed the patched_boot for 10.0.15.0, my smartphone boots well and I'm able to install Magisk modules, root apps,...

But when I reboot, I loose Magisk and what comes along.

Any idea to fix ?

Edit : found myself, installed directly (recommanded) from magisk menu
[Xiaomi Mi A2 Lite Guides, News, & Discussion] DekiS3:
This guide seems to still work fine, but following it step by step, in the end, my Mi A2 lite goes by itself in fastboot mode when I restart it to complete an ota update.

It seems that the boot slots are not selected properly after the first step of the update.

I think that by now Magisk creates the problem when it is uninstalled from the active slot and installed on the inactive one. Points 12 to 14 of this guide.

Fortunately in fastboot mode you can manually select the right boot slot after the update. I can't link but you can search for ''A/B (Seamless) System Updates & Bricked device'' on Mi forum.

When i restart, phone is in fastboot mode and command ''fastboot getvar current-slot'' results in 'INVALID'' message. Selecting the slot that before the update was inactive with command ''fastboot --set-active=a/b'' the phone starts and completes the update process.

I tested with the phone flashed by Miflash with 10.0.13 (September) official fastboot image. So I followed points 12 to 14 twice ( october and november update) and both times I completed the updates and kept the root. But both times I had to do manual switch of the slot.

I used Magisk manager 7.4.0 and the latest version of Magisk.

Why doesn't the phone switch by itself and boot the right slot?

Has anyone run into the same problem?

(sorry for my bad english)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] harvey:
You are shure you selected "install magisk in other slot (after OTA)" and after flashing the boot-image directly rebooted out of magiskmanager?

I did same as you, updating from september to october last month, and today to november. Both times it does fine.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] grufty47:
Update to 10.0.17.0 with messed up root/system partitions

Whilst working with Magisk supported 10.0.16.0 I installed Ubuntu, Tool-X and termux sudo in Termux Emulator and Titanium Backup but was confident to have let the root /system partitions untouched (except to have changed <resolve.conf> in /data/data/com.termux/something).

When the update notification popped up I firstly uninstalled Magisk with images restored, afterwards completely, but to no avail… Download of the incremental V17 images…, but installation failed even after flashing V16 boot-, system- and vendor-images to the respective slot (b), no clue which action had damaged my system.

Eventually, I merged the 14 updated partitions from <https://c.mi.com/oc/miuidownload/detail?device=1700354>

Recovery: miui_DAISYGlobal_V10.0.17.0.PDLMIXM_6d7bd3501c_9.0.zip

with the Stable ROM Version: V10.0.13.0.PDLMIXM* (e.g. I replaced the respective V13 files with V17 files)

re <https://mirom.ezbox.idv.tw/en/phone/daisy/> to a full fastboot flashable 10.0.17.0 ROM.

The 14 updated partitions from the payload.bin in the Recovery had been recovered by the payload_dumper-win64 tool.

Unfortunately, the miui flash tool with flash_except_storage started, the green bar reached the end but did not complete with success (because of device not locked?).

Therefore I successfully employed the script procedure outlined in posts #723, #727:

I opened a text editor (notepad++), copy/paste the batch contents of posts #723, #727 into a script file and saved it as <ROM_update.ps1> into the folder of the fastboot flashable 10.0.17.0 partitions. Afterwards, to make things easier, Power Shell (PS) had to be opened in the latter folder (as administrator!), the PS script execution policy had to be changed to <Set-ExecutionPolicy RemoteSigned> and let the script <ROM_update.ps1> run! And you are done with 10.0.17.0 update. In the end you can install Magisk root by patching the boot file from the Recovery fastboot file or the procedure in post #988, #991. Good luck!

grufty47
[Xiaomi Mi A2 Lite Guides, News, & Discussion] paul222008:
Do you have patched_boot.img for December 2019 Security patch? I wanted to enable camera2 api on my A2 with locked bootloader
[Xiaomi Mi A2 Lite Guides, News, & Discussion] grufty47:
Be advised that this is the magisk_patched.img for the MI A2 lite 10.0.17.0. derived from the boot file in the Recovery payload at <https://mirom.ezbox.idv.tw/en/phone/daisy/> re post #995

https://drive.google.com/open?id=1tGK-qirFyIx4XJ2do_XqDS_O1QnGTVFJ
[Xiaomi Mi A2 Lite Guides, News, & Discussion] paul222008:
Sorry I'm an A2 Device. I didn't see its the Lite thread
[Xiaomi Mi A2 Lite Guides, News, & Discussion] farrouk:
hey hope this thread is still alive , i can't find a patched_boot image with the same build number as mine i have 10.0.15.0.PDLMIXM
[Xiaomi Mi A2 Lite Guides, News, & Discussion] a1291762:
https://xdaforums.com/mi-a2-lite/how-to/ota-10-0-15-0-original-magisk-patched-t3987529
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Nyambeezy:
I lose Magisk every time I reboot. Any ideas?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] a1291762:
After you fastboot boot patched_boot.img you must use Magisk manager to install Magisk (direct) to make it permanent.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] grufty47:
My Mi A2 lite has been successfully updated to V10.0.17.0, Magisk installed. Everything is working fine, but problems with the Google telephone app: after the call is connected, the display turns black, no access to the clear call button. I cannot stop the call, need to wait until the B-party completes the call. Besides I cannot select and call Whatsapp friends. Change of telephone app does not help. Anyone else with similar problems? Any idea what is wrong?

grufty47

Solved, I should have consulted Google before. Problem was neither related to V 10.0.17.0 nor to Magisk, but due to loss of calibration of the proximity sensor. Proximity sensor recalibrated by evoking test code *#*#64663#*#*, selected proximity sensor, recalibration started, done!

grufty47
[Xiaomi Mi A2 Lite Guides, News, & Discussion] OzKenny83:
Just in case anyone is looking for the December 2019 update (V10.0.17.0) patched boot image, here it is. Patched with latest Magisk 20.3. Enjoy :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] marstonpear:
Does anyone have magisk patched 10.0.18.0 boot.img ?

EDIT : Downloading myself.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] saleyman:
Did anyone successfully complete the January update?

(I did not try it yet.)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ee99161:
Hello everyone. Can someone Share the patched 10.0.18? Thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] grufty47:
https://drive.google.com/open?id=1fXPysWh0HrweZ2VwZWCWnPP1SXcBHnB-

This is the boot.img from the Recovery V10.0.18.0 patched by Magisk 20.3

By the way though no partition had been touched and Magisk had been uninstalled before the OTA tjhe update to V10.0.18.0 would not install via OTA. I have updated fastbooting the full Recovery ROM files to the device using the batch file method in #723 on page 73.

gruft47
[Xiaomi Mi A2 Lite Guides, News, & Discussion] FRibeiro1400:
I've uninstalled Magisk before the OTA update, partition was untouched but the update doesn't install.

I've been trying to extract system.img from payload.bin but after many hours I was not able to do so. I am on a linux system and I didn't find any correct instruction. I'm extremely tired trying to fix the problem and I am about to give up as phone now doesn't update. If some kind soul can send me the system.img of 10.0.17.0 so I can update to 10.0.18.0, I'd be very grateful.

Edit: I've already flashed stock boot.img but update fails. Need system.img
[Xiaomi Mi A2 Lite Guides, News, & Discussion] grufty47:
I can feel your pain, re #1008. This is what you can do (faster than up-/downloading the 2.6 GB system.img file):

Using your device (MI A2 lite) proceed as per advice given in post #94 by a1291762 on:

https://xdaforums.com/mi-a2-lite/how-to/10-0-4-0-to-10-0-7-0-ota-keeping-magisk-t3916863

page 10

to extract the fastboot files of the payload.bin of the V 10.0.18.0 Recovery ROM from <https://mirom.ezbox.idv.tw/en/phone/daisy/>.

or , alternatively, using a WIN10 PC (my way)

download <payload_dumper-win64.rar> from the internet (Google), unpack it and use it (instruction is included in the <Readme>) to retrieve the fastboot files ot the V 10.0.18.0 Recovery ROM in <https://mirom.ezbox.idv.tw/en/phone/daisy/>.

Load the V 10.0.18.0 Recovery ROM fastboot files and the batch file <OTA_Batch.cmd> into a common folder, put the device into fastboot mode, run the batch file, wait until it complete, reboot and you are done. Both slots should be on V 10.0.18.0. Admittedly, this is not the normal state since one slot should always host the previous version. This might be achieved by deleting or inactivating loading of the fastboot files of the active slot in the batch file.

OTA_Batch.cmd in https://drive.google.com/open?id=13kk_Is2AWOErfT5UvjECHrTyVl84_VK2

Regards grufty47
[Xiaomi Mi A2 Lite Guides, News, & Discussion] FRibeiro1400:
Thank you so much! I managed to sort it by uninstalling Gcam 7. Gcam was not allowing the update to get through. When the update was finally installed, I made the mistake to install back Gcam with a module in Magisk for Camera2api. Biggest mistake! When booting it entered a bootloop and nothing helped. Only solution was to download stock rom in tgz format, flashing it and destroying data, because keeping data, phone would not boot.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] shazee666:
Hi. I have run into a problem.

Whenever I reboot my phone, my Magisk Module's settings get reset. For example, YouTube Vanced settings are all reset whenever I reboot my phone
[Xiaomi Mi A2 Lite Guides, News, & Discussion] grufty47:
All,

Android 10 is being rolled out by OTA. I have removed Magisk root, downloaded (about 1.026GB) and installed the new release , Build QKQ1.191002.002.V11.0.2.0.QDLMIXM. Everything went seamlessly, my MIA2 lite works, however, all of the functions have not been tested yet. New fastboot image and boot image not available/found on the web. Waiting for fastboot/payload images to be published on the web to install Magisk again. Or is there any clue to get hold of the boot image directly out of the device without root?

grufty47
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Cappucinto:
Tried to patch the boot.img but if I try to boot it to install magisk i get a bootloop. Don't know if this methodis not working anymore or if its because the first attemp to update failed.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Atmajaya13:
Patched boot Daisy android 10 v11 is*gd/oNVZlM(* Swift . )
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Majaque:
Uploaded: https://xdaforums.com/mi-a2-lite/how-to/fastboot-patched-boot-img-v11-0-2-0-t4064951
[Xiaomi Mi A2 Lite Guides, News, & Discussion] siggi7:
Hello,

is this guide to root the mi a2 lite on the first page still working?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rakovm:
Hello,

I am also interested if this method is working again, can anyone confirm?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] akupac:
Up

Enviado de meu Mi A2 Lite usando o Tapatalk
[Xiaomi Mi A2 Lite Guides, News, & Discussion] a1291762:
Yes, this method still works with android 10 (11.0.4.0 + Magisk 20.4).

If you need a patched boot for this version, here's mine.

https://yasmar.net/xda/patched_boot_11.0.4.0_204.img.gz
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ohDuL4Oo:
I'm still on Android 9 (V10.0.20.0) with magisk installed. The usual way for OTAs doesn't seem to work here since I need to reboot to install the OTA to Android 10 (skipped it till now since the few first tries seemed to be suboptimal ;)).

I tried to find the answer here but a > 100 pages thread is kind of unwieldy. Is there a way to install Android 10 as OTA while keeping magisk intact? Pointer to Urls are very welcome :) Thank you
[Xiaomi Mi A2 Lite Guides, News, & Discussion] a1291762:
All OTAs need a reboot.

But you have to press reboot. Before you do that, you patch the new boot using Magisk manager.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ohDuL4Oo:
yes, I'm aware. But with this update it looks different. Usually I remove magisk, install the OTA, reinstall magisk on the other slot and reboot. With this update it asks me to reboot

right away:

screenshot: https://ibb.co/k8wV1RW

"Jetzt neu starten" means "reboot now" in german
[Xiaomi Mi A2 Lite Guides, News, & Discussion] a1291762:
It may have already installed the OTA then?

It is a "full" image, not just patches so I think it won't fail just because some partitions are modified.

Check your logcat for update_engine to see if the updater has already run...
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ohDuL4Oo:
yes, that seems reasonable

nothing in there, but the notification popped up quite a while ago for the first time and the logs don't go back as far. I'll research how I can check which android is in which slot and then try to install magisk in the currently inactive one if it's already installed there. That would be great if it turns out to be that easy
[Xiaomi Mi A2 Lite Guides, News, & Discussion] a1291762:
If that's too hard you can just reboot and reinstall Magisk using a boot image someone else made :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ohDuL4Oo:
I'm a bit scared to boot into Android 10 since I've read that some people where not able to go back without a factory reset and I really really don't want to do that ATM.

Thank you for you help!

Edit: I chose to give it a try. Installed magisk on the inactive slot, didn't reboot and chose the reboot option in the update menu. It booted to fastboot and stuck there. I had to manually set the slot to be booted with

fastboot set_active a

After a reboot I'm not on Android 10 with magisk :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] AnonSqualor:
Custom Kernel Support?

Question, if someone with a more in-depth knowledge and experience might be able to answer me.

If were to like to install a custom kernel, at what point should I be doing this in the guide steps? That is if this guide will still work for custom kernels as my understanding goes on to say that kernels change the partition and therefore the OTA will not happen regardless due to the fact that I have to usually re-flash Magisk after installing a custom kernel thus making the "stored" image in Magisk already modified and not vanilla. Unless of course my understanding is wrong?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] zamansakib:
root going away with reboot

I've followed all of the steps exactly as told in this guide. when I booted from the patched boot img using cmd and opened magisk, it prompted me to install magisk and I clicked on yes. It took about 5 minutes to complete and then the phone restarted. but after the reboot magisk said it's not installed and I didn't have root access in my apps either. but when I shut my phone down and went to fast boot to reboot using the patched img again, my phone had root access and magisk says it's installed properly. but if I reboot again then I lose my root access and magisk says uninstalled. how do I make it so that I have root access without having to boot using the patched img through my pc?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] a1291762:
You aren't installing Magisk. You need to use the DIRECT install method after booting the patched image to make it permanent.

That's the third option for me.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] eoink:
Hi,

I have a fresh 11.0.9 (Android 10) installation but can't get the patched boot image to load.

I use fastboot boot magisk_patched.img, and fastboot says all was fine.

But nothing happens on the phone apart from it switching off after about 2 minutes.

On restart, magisk manager doesn't recognise that it can install itself, and I only have Download and Patch as installation options.

I had a similar issue with getting twrp booting from fastboot, but thought I should concentrate on Magisk first.

Anyone able to give me any advice?

Thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] jaapgvk:
I think I had the same issue. I had a fresh 11.0.9 installation (but I did restore my apps and settings from the cloud). I couldn't get Magisk to install itself. Then I did a factory reset but didn't restore any apps or settings, and Magisk could install itself without a problem. Don't know your specific situation, but maybe this information is helpful for you.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] a1291762:
Is your bootloader unlocked?

Can you fastboot boot the vanilla image?

Is your fastboot an ancient version?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] eoink:
Hi,

Yes, BL is unlocked, and when I try to boot from the stock image, the same type of thing happens (nothing!!!)

Fastboot is version 29.0.5-5949299.

Nothing different in using vanilla bot image or patched boot image.

Phone sits on the Fastboot screen, and PC says Waiting for Device.

Then I restart by holding down power(or sometimes if I wait about 5 minutes), and Magisk notices nothing new.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] a1291762:
Your fastboot is fine (mine is 29.0.6). I know people have had problems with ancient fastboot binaries (from really old guides).

The problem seems to be that fastboot isn't seeing your phone. It will say Waiting for Device until it can see a phone.

Check your USB cable/connection. If you have the phone running and you can run adb commands, then use adb reboot bootloader to get to the fastboot screen and hopefully fastboot will work...

When you use fastboot boot, you do not need to manually turn your phone on or off, it will boot normally, just without the initial (static) boot logo.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Antho02:
i had this problem earlier

it happens when my phone off and i directly plug it maintaining down button , it turn on to fastboot mode but wont boot after sending file

if i turn off the phone, then turn on to fastboot mode maintaining down button, and plug it when already in fastboot mode it works

donno why that, nor if it resolve your problem but....
[Xiaomi Mi A2 Lite Guides, News, & Discussion] eoink:
Yep, booting into Fastboot first before connecting to the PC was exactly what I needed to do.

Now I have both TWRP and Magisk working perfectly.

Thank you so very much
[Xiaomi Mi A2 Lite Guides, News, & Discussion] CafeSensei:
fastboot boot patch_boot.img gets stuck

Edit: just OTA updated to 11.0.10.0.DLMIXM

I'm running 11.0.10.0.DLMIXM, and trying to run the patched version from this post, but after reboot, the image is not donwloaded. What can I do?

Fixed it as for now. If Magisk asks to install "extra files" or any of the matter while doing that, just select "cancel", and then install as the guide on the first post (point 7.) suggests. Special thanks to a1291762 for keeping on patching and uploading stock ROMs for this phone. You rock.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] lucky_kuk:
When and where can I get patched boot image for ota v11.0.15.0 (October 2020) update ?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] a1291762:
October is 11.0.12.0.

https://xdaforums.com/mi-a2-lite/how-to/fastboot-patched-boot-img-v11-0-12-0-t4178955