[FASTBOOT] [daisy] Patched boot.img for V11.0.18.0 (Android 10) - Xiaomi Mi A2 Lite Guides, News, & Discussion

Xiaomi Mi A2 Lite 11.0.18.0 / Magisk 21.4
or

Hi, big thanks for this. I'd rather patch the image myself, using a tutorial like this one – https://www.thecustomdroid.com/root-xiaomi-mi-a2-a2-lite-android-pie-magisk/. Where do you get the stock images?
Is this the right place? https://c.mi.com/oc/miuidownload/detail?guide=2 (search for "Mi A2 Lite")
Or this one? https://c.mi.com//miuidownload/detail?device=1700354

Thanks, I figured it out. The newest version can be downloaded at https://c.mi.com/oc/miuidownload/detail?guide=2, extract it using `tar xvzf daisy_global_images_V11.0.18.0.QDLMIXM_20210126.0000.00_10.0_286d778cee.tgz` on Linux and the boot.img is located in the images/ directory. Then you can follow the guide at https://www.thecustomdroid.com/root-xiaomi-mi-a2-a2-lite-android-pie-magisk/ to create the patched image and boot from it.

mariansam said:
Hi, big thanks for this. I'd rather patch the image myself, using a tutorial like this one – https://www.thecustomdroid.com/root-xiaomi-mi-a2-a2-lite-android-pie-magisk/. Where do you get the stock images?
Is this the right place? https://c.mi.com/oc/miuidownload/detail?guide=2 (search for "Mi A2 Lite")
Or this one? https://c.mi.com//miuidownload/detail?device=1700354
Click to expand...
Click to collapse
you can find updates here https://xiaomifirmwareupdater.com/miui/daisy/
depends how everyone uses to update his phone, but i always use fastboot file with xiaomiflash, it's only 2 clics and avoids me to care about uninstall magisk.
also the original boot.img is inside so just copy it on phone, magisk patch the file and then i fastboot boot the patched

hi! thanks for your work!
I've tried to update my phone, like I always do, restoring 11.0.17 boot stock image first, but I get an update error.
Any suggest?

u can try as i use to do, explained in message above

I tried but Xiaomi Flash doesn't work properly on my PC, I am afraid of losing data on phone.
Why am i unable to update after flashing stock boot image, like I always do??
Anyone having trouble?

Related

[Request] How to Create Patched Boot Image

I am looking to learn how to extract a boot image to patch. The last source for patched boot images has not updated since 9.5.10. I would like to be less dependent and be able to do it on my own.
Can someone put together a quick tutorial on how to extract a boot.img so I can run it though Magisk and create a patched one?
https://forum.xda-developers.com/showpost.php?p=79548858&postcount=6
I have the current rooted AA boot image in the guide in my signature. I extract them directly from the phone.
ozfive said:
I am looking to learn how to extract a boot image to patch. The last source for patched boot images has not updated since 9.5.10. I would like to be less dependent and be able to do it on my own.
Can someone put together a quick tutorial on how to extract a boot.img so I can run it though Magisk and create a patched one?
Click to expand...
Click to collapse
1)Download payload dumper.
2)Extract payload file from rom zip.
3)Put payload file in payload_input folder.
4)Run exe file.
5)After process complete check payload_output folder. All extracted there.
Download payload dumper from here :- https://forum.xda-developers.com/attachment.php?attachmentid=4760222&d=1558078935
Patched boot images are irrelevant and only necessary for devices without a working TWRP recovery. If you want to root, either boot TWRP once or boot and install TWRP (recommended) and then install the magisk zip from there.
larsdennert said:
I have the current rooted AA boot image in the guide in my signature. I extract them directly from the phone.
Click to expand...
Click to collapse
How do you extract the boot.img from the phone? I have the tmo version and would like to say on the stock room with root.
Sent from my GM1915 using Tapatalk
You need root to extract a partition, but if you have root then you have no need for it except to share it so someone else can get root.
In other words are you rooted already? If not, you'll need to use the other instructions or get a rooted or non rooted image from someone with a T-Mobile phone.
I'm going to guess you could fastboot boot boot.img to any rooted boot image for the one plus 7 pro, have root and then install magisk.
larsdennert said:
You need root to extract a partition, but if you have root then you have no need for it except to share it so someone else can get root.
In other words are you rooted already? If not, you'll need to use the other instructions or get a rooted or non rooted image from someone with a T-Mobile phone.
I'm going to guess you could fastboot boot boot.img to any rooted boot image for the one plus 7 pro, have root and then install magisk.
Click to expand...
Click to collapse
Not rooted yet, but everything I have read so far is that you need a patched boot.img to root, or you can create one from the boot.img in an oos package with magisk manager. The problem is, there isn't a tmo oos package out there yet, so it looks like rooting the tmo software isn't possible at the moment. Is this correct?
Sent from my SM-T550 using Tapatalk
Is your bootloader unlocked? That would be step one. Read up on the thread for that.
Not yet, but will be....trying to get my research done before I go for it... don't want to mess it up, been a few years since I rooted a phone.
Sent from my GM1915 using Tapatalk

Need help - oneplus 8t stuck in bootloop after flashing a wrong boot file

Hi all,
I tried to root my new oneplus 8t but stupidly enough i downloaded and used a wrong stock boot image (i need EU but used global).
Now my phone is stuck in bootloop, can someone assist please?
Or maybe someone can share with me a working patched file for EU (as i can't do that as my phone is not responsive anymore).
I tried to do so with magisk app.
Thanks in advance!
saharb14 said:
Hi all,
I tried to root my new oneplus 8t but stupidly enough i downloaded and used a wrong stock boot image (i need EU but used global).
Now my phone is stuck in bootloop, can someone assist please?
Or maybe someone can share with me a working patched file for EU (as i can't do that as my phone is not responsive anymore).
I tried to do so with magisk app.
Thanks in advance!
Click to expand...
Click to collapse
full flash is the only way
Refer this thread
sabeehp said:
full flash is the only way
Refer this thread
Click to expand...
Click to collapse
Thanks, but MSM doesn't recognize my phone, is there a way to make it work and recognize my phone?
saharb14 said:
Hi all,
I tried to root my new oneplus 8t but stupidly enough i downloaded and used a wrong stock boot image (i need EU but used global).
Now my phone is stuck in bootloop, can someone assist please?
Or maybe someone can share with me a working patched file for EU (as i can't do that as my phone is not responsive anymore).
I tried to do so with magisk app.
Thanks in advance!
Click to expand...
Click to collapse
Have your tried flashing the correct boot image? If all you did was flash the incorrect boot image then that should fix the problem.
BillGoss said:
Have your tried flashing the correct boot image? If all you did was flash the incorrect boot image then that should fix the problem.
Click to expand...
Click to collapse
In order to flash the correct one, i need to transfer it to the device and use magisk.
The problem is that the device stuck in boot loop so i can't do that.
That's why i asked if someone has already patched Europe version to share with me or any other option for me to fix it
Here is a collection of stock boot images (if you don't trust them, just extract it using a payload dumper from the ota zip that can be found in other threads)
OnePlus 8T Stock Boot Image Collection and Installation Guide
Download the stock boot image of all OxygenOS versions for the OnePlus 8T. Also learn how to flash a boot image on OnePlus 8T using Fastboot and TWRP.
www.thecustomdroid.com
Either flash or just boot the stock image in flashboot.
Copy stock image to phone and patch with magisk
Copy patched stock image to PC
Flash patched boot image in fastboot
saharb14 said:
Thanks, but MSM doesn't recognize my phone, is there a way to make it work and recognize my phone?
Click to expand...
Click to collapse
press volume down+volume up button then connect it to pc. it will detect as qualcomm qd loader (u need qualcomm driver)
saharb14 said:
Thanks, but MSM doesn't recognize my phone, is there a way to make it work and recognize my phone?
Click to expand...
Click to collapse
The thread referenced previously is the solution.
There is no other tool or method that will resolve your issue.
If you follow the instructions correctly it will work.
If you are confused on the instruction I suggest searching youtube and you will find many videos that will walk you through the process.

Android 11 and OOS11 OnePlus 7 Pro

Hello,
I have scoured the forums ever since the update to try and get back to where I was, with TWRP, and a rooted phone. TWRP is not as important as root is.
I saw that there is a way to get root if following these instructions:
Rooting OP7 Pro OOS11
Where can i find instructions to root my phone having Android 11?
forum.xda-developers.com
However, are there any specifics or edge cases I need to be aware of? For example, if I am on the newest update versus the first beta update that rolled around a few months ago? At what point on Android 11 and OOS 11 do these instructions not work?
And I was wondering if someone can please provide some links to make it a bit easier for me (of the boot.img file and other things?), I actually leave the country in a week and so I really want to get this done before I leave, it would really make my life easier
Is there a way I can root without wiping my phone? And if I have to wipe, is there an app similar to Titanium Backup that's reliable that I would be able to use without root and restore some important data of apps?
Thank you!! Any help is appreciated
No one has any answers?
technocrat7 said:
No one has any answers?
Click to expand...
Click to collapse
It's pretty simple. You just need to make sure you flash a patched boot image from the same build your device is on. The OP7 Pro forum is not very organized, and most of the available boot images are gdrive links buried in threads.
If you just so happen to be using the T-Mobile OP7 Pro, then I can help you. Otherwise you'll need to search around for a boot image for your device.
If you can get your hands on a stock boot image, you can copy it to your phone's SD card and use the Magisk Manager app to patch it. It will put the patched boot image in your phone's downloads folder. copy that to your PC and then use fastboot to flash it to your active boot partition
weakNPCdotCom said:
It's pretty simple. You just need to make sure you flash a patched boot image from the same build your device is on. The OP7 Pro forum is not very organized, and most of the available boot images are gdrive links buried in threads.
If you just so happen to be using the T-Mobile OP7 Pro, then I can help you. Otherwise you'll need to search around for a boot image for your device.
If you can get your hands on a stock boot image, you can copy it to your phone's SD card and use the Magisk Manager app to patch it. It will put the patched boot image in your phone's downloads folder. copy that to your PC and then use fastboot to flash it to your active boot partition
Click to expand...
Click to collapse
Thank you for the response.
I'm running a OnePlus 7 Pro
Android Version 11
Build Number: Oxygen OS 11.0.1.2.GM31CB
Model: GM1915
Is that the T-Mobile variant?
technocrat7 said:
Thank you for the response.
I'm running a OnePlus 7 Pro
Android Version 11
Build Number: Oxygen OS 11.0.1.2.GM31CB
Model: GM1915
Is that the T-Mobile variant?
Click to expand...
Click to collapse
Yes it is. The boot image linked in this thread is exactly what you need. Flashing boot will not affect your system image or user data.
weakNPCdotCom said:
Yes it is. The boot image linked in this thread is exactly what you need. Flashing boot will not affect your system image or user data.
Click to expand...
Click to collapse
Thanks!
So after I download this boot image, I flash it using fastboot?
Because TWRP isn't available right?
Then after that, what do I do to root it?
Download the latest magisk?
Do I download the apk or flash that too using fastboot?
technocrat7 said:
Thanks!
So after I download this boot image, I flash it using fastboot?
Because TWRP isn't available right?
Then after that, what do I do to root it?
Download the latest magisk?
Do I download the apk or flash that too using fastboot?
Click to expand...
Click to collapse
install Magisk Manager v23 on your phone.
flash boot a & b with fastboot.
reboot and done

Question Nord 2T 5G Full Factory ROM/Firmware with Scatter file for Unbricking

After successfully rooting my Nord 2T by backing up and then patching the stock boot.img I proceeded to patch the inactive slot within Magisk (it was unecessary of me..) and after rebooting entered a loop. Anyone know where I can get the factory ROM? I was on the May patch. Thanks in advance!
I am also looking for the factory OTA image.
How did you get the boot.img exactly?
jolaviska said:
I am also looking for the factory OTA image.
How did you get the boot.img exactly?
Click to expand...
Click to collapse
Good ol SP Flash but I think the backed up images are corrupted hence the need of factory firmware to use it to restore my device.
Apologies I did not realise you still needed the firmware. I have mirrored it here if you still need it May Patch Full ROM
garylawwd said:
Apologies I did not realise you still needed the firmware. I have mirrored it here if you still need it May Patch Full ROM
Click to expand...
Click to collapse
So extracting boot. img from your file won't be enough to do Root right?
Riski3Run said:
So extracting boot. img from your file won't be enough to do Root right?
Click to expand...
Click to collapse
You can't extract from the firmware. You must use spflash tool to pull the boot.img from the device (mediatek devices are a bit different to Snapdragon devices)
I'm going to do it today but I had to bring my daughter to the hospital after a fall she had which required stitches.
Once I have it extracted I might write a guide on how to do it with links to all firmware needed and have a thread where we will have both the stock and magisk patched boot.img's available.
Been like 6 weeks and no root on my device, this is the longest I have went without rooting in almost 7 years
garylawwd said:
You can't extract from the firmware. You must use spflash tool to pull the boot.img from the device (mediatek devices are a bit different to Snapdragon devices)
I'm going to do it today but I had to bring my daughter to the hospital after a fall she had which required stitches.
Once I have it extracted I might write a guide on how to do it with links to all firmware needed and have a thread where we will have both the stock and magisk patched boot.img's available.
Been like 6 weeks and no root on my device, this is the longest I have went without rooting in almost 7 years
Click to expand...
Click to collapse
Thanks. I rooted mine within a day but went too far with patching the inactive slot via Magisk and now phone is soft bricked. If you are still interested in extracting the boot image for patching then use this tool. I tried to use it to flash the payload.bin but phone still not booting. I even flashed all the extracted images manually in fastbootd. I guess the OTA file doesn't contain all the files needed to restore the device back to its factory state.
Anyone with the full firmware containing the SP Flash Scatter file please share it. You'll be saving everyone else. I bought my phone on a trip and there are no OnePlus repair centers over here so won't be using my phone until I can restore it myself
garylawwd said:
Apologies I did not realise you still needed the firmware. I have mirrored it here if you still need it May Patch Full ROM
Click to expand...
Click to collapse
Hello
Can't you upload this zip file somewhere else?
Each time download is not finished.
Riski3Run said:
Hello
Can't you upload this zip file somewhere else?
Each time download is not finished.
Click to expand...
Click to collapse
Saw you were able to fully extract the payload.bin so could you mirror the files as well..
Issue is now resolved Thanks @Riski3Run and @garylawwd
Alternatively extracting and flashing the payload.bin ALSO works. No need to extract the images just use this beautiful tool
garylawwd said:
Apologies I did not realise you still needed the firmware. I have mirrored it here if you still need it May Patch Full ROM
Click to expand...
Click to collapse
Hi Garylawwd, when I click on the link it displays an empty folder. Can you perhaps reupload the firmware? My device is bricked and I'm unable to find the stock rom and scatter file for CPH2399 :/
woodiewood3 said:
Hi Garylawwd, when I click on the link it displays an empty folder. Can you perhaps reupload the firmware? My device is bricked and I'm unable to find the stock rom and scatter file for CPH2399 :/
Click to expand...
Click to collapse
Were you on the latest June security patch?
garylawwd said:
Were you on the latest June security patch?
Click to expand...
Click to collapse
Yes I was on the June patch, but I completely messed up my Phone.. can't boot into recovery or fastboot, screen stays black.
When I plug in the phone my computer recognizes it as Mediatek usb port.
When I try to use mtk_gui it is able to connect but it freezes after DA extension and thus I'm unable to read or write anything from or to the device via mtk_gui.
I hope that I can flash the stock firmware via SP flash tool, otherwise I will probably need to send it to OP repairs centre.
But to flash via SP flash tool I do need the firmware + scatter file. ATM I'm unable to find them.
I am unable to create the scatter file via MTKDroid it says --- Unknown ROM structure, backup NOT possible!

Extracted Stock Files

So I see a lot of people using magisk patched boot images that are really old. It'd be better to patch the image yourself from magisk and use that. The problem might be that it's not that easy to extract it.
You can find most of the stuff from stock rom extracted by me here. The files were extracted from the Indian varient. Make sure to use the appropriate files for your stock rom. The index site does have other files like some old and unstable kernels so don't go flashing everything you see from the root directory. This just started as a personal archive. The domain is free, so idk how long it'll stay active either.
As always, use everything at your own risk.​
Do Magisk versions newer than v24.3 work this way?
newt23 said:
Do Magisk versions newer than v24.3 work this way?
Click to expand...
Click to collapse
Yes, patching the boot image is the recommended way to install Magisk.
The official guide does ask to patch AP wholly for samsung devices, but patching the boot image itself is faster.
Official Guide
I don't understand why I get bootloops if I update to v25.x from v24.3 from the Magisk app (using direct method). As I understand it, it also (re-)patches the boot image.
newt23 said:
I don't understand why I get bootloops if I update to v25.x from v24.3 from the Magisk app (using direct method). As I understand it, it also (re-)patches the boot image.
Click to expand...
Click to collapse
That's how I updated too. Try flashing the magisk zip directly.
Or, only update the magisk app, patch the boot image, rename it as boot.img, put it in a tar file, and then flash it to "AP" using Odin.
Hmm... this is funny. I patched the stock boot image and flashed it using Odin and still got bootloops. I took a full nandroid backup beforehand so I was able to get everything working by flashing TWRP again and restoring the previous boot image.
I get bootloops if I install v25.x from TWRP after installing a rom or update to v25.x from v24.3 directly or by patching the stock boot image. The only one that's left now is flashing v25.x zip from TWRP (while having a functioning system with v24.3) but something tells me it's going to end in bootloops too.

Categories

Resources