yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] saurabh9212:
I need Mi A1 December 2019 Boot img V10.0.16.0.PDHMIXM

If anyone have then please give me link.......
[Xiaomi Mi A1 Guides, News, & Discussion] Drunkoslav:
Yeah, me too. Do you got it yet?
[Xiaomi Mi A1 Guides, News, & Discussion] :
OTA link and steps to get the boot.img are in the OP.

Internet connection isn't the best where I am right now, which is why I haven't done it yet.
[Xiaomi Mi A1 Guides, News, & Discussion] Drunkoslav:
I am not sure what i am doing wrong, but i installed Python 3 and when i run it and do "python -m pip install protobuf" command, i get this error:

>>> python -m pip install protobuf
File "<stdin>", line 1
python -m pip install protobuf
^
SyntaxError: invalid syntax

Not sure what it means, never used Python before, but i can't install protobuf, neither run script.

Would you please provide some guidance?

Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] :
You are trying to run the command inside the Python shell.

You're supposed to run it on the command line (or terminal if on linux).
[Xiaomi Mi A1 Guides, News, & Discussion] Drunkoslav:
Oh yeah! It's working now. Thanks for support :)
[Xiaomi Mi A1 Guides, News, & Discussion] jb_rock:
I extracted December's boot.img using Payload Drumper, here, it works perfectly.
[Xiaomi Mi A1 Guides, News, & Discussion] gsausalito:
Hi:

Here it is!

View attachment 4928133

Regards
[Xiaomi Mi A1 Guides, News, & Discussion] chikamhrn:
HI. I'm a super newbie in this type of thing. So please help.

First, I downloaded the .img, but when its done, the name is not patched_boot.img. It's just a random number with .zip extension. the question is, should I change the name and extension to patched_boot.img, or extract it? 'cause I already extract the zip file, and it has no file with .img inside.

Second, which protobuf should I download? I found lots of protobuf from github.

Thanks.. I need help x_x
[Xiaomi Mi A1 Guides, News, & Discussion] Zentom:
I'm kind of a noob but as far as I know, I only need the boot and stock December ROM which I couldn't find anywhere else. Since we have the stock December ota here, how could I go about flashing it? Do I just flash it using twrp or use miflash?
[Xiaomi Mi A1 Guides, News, & Discussion] Zentom:
Oh, and January 2020 OTA is up from Xiaomi, jsyk.
[Xiaomi Mi A1 Guides, News, & Discussion] h1427096:
can anyone please provide me patched boot.img for april 2020? thanx
[Xiaomi Mi A1 Guides, News, & Discussion] jb_rock:
April 2020 Here. Original and patched boot img.
[Xiaomi Mi A1 Guides, News, & Discussion] hell0:
Even though it's disabled in developer settings my phone downloaded and installed the May 2020 update on its own during a reboot. Is this happening to anyone else? Also has anyone seen the May 2020 boot.img?

//e

Extracted and patched myself from PKQ1.180917.001.V10.0.21.0.PDHMIXM

https://mega.nz/folder/TUdxTSqQ#en0LFB_vJiet4mj5otUeDA

the phone takes only files with the original name, boot.img, other names fail (silently) for me

e.g.

vs

same file, different name
[Xiaomi Mi A1 Guides, News, & Discussion] h1427096:
This is happening to me twice a year.

I would really appreciate August patched image if anyone can provide me. I can't make it on my own.
[Xiaomi Mi A1 Guides, News, & Discussion] h1427096:
can anyone at least explain how to create untouched boot.img please?
[Xiaomi Mi A1 Guides, News, & Discussion] matheusber:
Me too. As I don't have the original file for tinkering :(

Can anyone point where can I find OTA for August 2020...

Hi, the first post on this thread tells how to :)

matheus
[Xiaomi Mi A1 Guides, News, & Discussion] hell0:
To get the original files/full updates search the web for the build, e.g. V10.0.24.0.PDHMIXM, I found https://xiaomifirmwareupdater.com/archive/miui/tissot/ which links to files from https://bigota.d.miui.com/ so they seem okay to download.

/edit

Auguste 2020, Magisk 20.4

untested, I'm still in May :cyclops:

https://mega.nz/folder/WVlUXAKK#qEmoybBsFKKNBe_6rvNSEg
[Xiaomi Mi A1 Guides, News, & Discussion] :
Forgot to correct this. Thanks for reminding me. You don't need to update to beta channel anymore since it works with the stable one right now.
[Xiaomi Mi A1 Guides, News, & Discussion] fernoct:
Thanks. I encountered an issue after "fastboot boot patched_boot.img" command phone did not boot and after few mins I have hard rebooted (Vol+ & power) then the Erase command triggered. "Erase" displayed. I'm in the latest Aug update.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Where did you get the August untouched boot.img from? (The thread I've linked has images up to the July update)

EDIT1: Nevermind I found it (link). Will test asap. Just make sure not to use the latest one provided in this reply since this is a BETA release and it doesn't have the same boot.img as the official one.

EDIT2: used the guide on my August updated Mi A1 and it worked fine, no bootloops and the procedure was the exact same that is explained in the OP. Make sure you use the correct untouched boot.img I guess. (Also added pics for verification)
[Xiaomi Mi A1 Guides, News, & Discussion] :
Posted some of the untouched images on the OP.

Still, I recommend to people who use this guide to find the proper boot.img themselves.
[Xiaomi Mi A1 Guides, News, & Discussion] fernoct:
I took the the latest fastboot rom from the below thread and extracted th boot. Yeah, you must be correct. May be it's the beta release. Thank you so much for your prompt response.

https://xdaforums.com/mi-a1/how-to/ota-xiaomi-mi-a1-ota-links-t3718542
[Xiaomi Mi A1 Guides, News, & Discussion] :
You're welcome. And sorry for the wipe you encountered. Hope you didn't lose a lot of important files.
[Xiaomi Mi A1 Guides, News, & Discussion] gad1nm:
Hi,..

Need some advice..

Assume i run all the process until patched boot and then boot, after that install titanium backup through playstore and make full backup, my data will still exist..

Then i install twrp and my data will erase but i can restore it with titanium...

Is my assumption right?
[Xiaomi Mi A1 Guides, News, & Discussion] :
The wipe will erase everything on the device, also your titanium backups. You'd probably need to move the backups to your PC or your external SD so that they don't get erased.
[Xiaomi Mi A1 Guides, News, & Discussion] jmisturini:
Hello

I didn't understand this part. You are talking about generate my own patched img or extract the boot.img from my OTA.

Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] :
Extracting them from your OTA would be nice but it's probably kind of a hassle for you to do so. Just search for the fastboot image in the threads mentioned in the OP.

I searched for some of them and posted them in the OP but just to make sure I recommend getting them yourselves.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Added September UNTOUCHED boot.img.

Didn't test so use at your own risk. (should work fine though)
[Xiaomi Mi A1 Guides, News, & Discussion] raiden_1115:
Can I relock bootloader after rooting?
[Xiaomi Mi A1 Guides, News, & Discussion] sash11:
No. This is a no-no if you don't want to bootloop your phone
[Xiaomi Mi A1 Guides, News, & Discussion] rubenswing:
I am on stock Sept. rom used the patched Sept. boot.img and it works fine :good::good: I however have a question how do I flash a custom kernel, if I boot using TWRP (temporarily) will it wipe the phone.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Yep, it will wipe the phone.
[Xiaomi Mi A1 Guides, News, & Discussion] Omineca:
If anyone has successfully updated without data loss, could you post the procedure? I'm on the August update and I have used the procedure described in this thread to root my phone. I'm thinking about updating to the September security patch, but I'm not sure how to go about it.
[Xiaomi Mi A1 Guides, News, & Discussion] sash11:
You have to uninstall Magisk from Magisk Manager. After phone reboots, apply the OTA. After that flash in fastboot patched_boot.img for September to be rooted again. Then install Magisk Manager from the APK. That's it.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Personally I haven't ever updated OTA after doing this procedure so I don't know if it would work properly.

I usually clean install the new updates (atm I'm not even rooted). The thing is I don't know if the OTA has to use the stock recovery in order to update so maybe that would trigger the wipe commands.

If you don't have any data to lose, you can try and report back though (or if someone already has can elaborate more on how it went)!
[Xiaomi Mi A1 Guides, News, & Discussion] sash11:
If in doubt, one can fastboot stock boot.img just to be on a safe side. Then apply the OTA. This way a stock recovery will be preserved.
[Xiaomi Mi A1 Guides, News, & Discussion] Omineca:
Thanks for the replies. I don't really want to lose my data, so I'll wait to backup everything I need before I attempt anything.
[Xiaomi Mi A1 Guides, News, & Discussion] Omineca:
I tried to OTA update. I uninstalled Magisk, rebooted, attempted the update, and failed. Then I fastboot booted the original August image, attempted the update, and failed.

So I reinstalled Magisk (had to re-patch the untouched image to complete the re-install successfully) and I'm back to where I started. Since everything is good on the August update, I think I'll just keep using it until there is a compelling security reason to wipe everything, install TWRP, and go from there.
[Xiaomi Mi A1 Guides, News, & Discussion] Faleou:
Hi, for me it says no such file or directory eventhough patched_boot.img is in my device and computer, do i need a folder like an adb and fastboot folder? if so could you link me one, im just left with that last part so if anyone could help me ill be very grateful :)
[Xiaomi Mi A1 Guides, News, & Discussion] sash11:
patched_boot.img should be in the same directory as your fastboot executable.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Added October UNTOUCHED boot.img.

Sorry for the delay, was kinda busy lately.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Added November UNTOUCHED boot.img.
[Xiaomi Mi A1 Guides, News, & Discussion] alfian555:
my magisk doesn't have "direct instal (recommended)" option. help me
[Xiaomi Mi A1 Guides, News, & Discussion] sash11:
Does your phone have root to begin with? You have to flash patched_boot.img first and not just install Magisk Manager on a stock system.
[Xiaomi Mi A1 Guides, News, & Discussion] Inti31:
does it work under Pie also? After the update my A1 isn't rooted anymore...
[Xiaomi Mi A1 Guides, News, & Discussion] :
Should work if you have an untouched Pie boot.img for the specific update you are using, but I am waiting for the full release before I post it in the OP (update has been pulled twice and isn't available at the moment)

I used the second official Pie update for some days and while it worked fine, focusing issues on Gcam made me roll back to Oreo, so I'll wait till that's fixed.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Added January UNTOUCHED boot.img.

Didn't test myself but should work fine.

(also added the December one for archive purposes)
[Xiaomi Mi A1 Guides, News, & Discussion] :
So I thought that the thread didn't make much sense unless you don't want to wipe your device (and if you never mess with recoveries) so I just simplified the thread to "Rooting without TWRP" from "Rooting without TWRP and wipes" (the guide was using the bypass of the wipes using the volume down trick, but it seemed kinda stupid since the wipe commands were still there and your device would be wiped if you booted into any recovery)

I believe you can just flash the Magisk zip on TWRP, if you chose to use TWRP so this thread is still kinda pointless. Will be using this as an untouched boot.img archive thread, I guess.
[Xiaomi Mi A1 Guides, News, & Discussion] dixtir:
Have you tested the Patched boot image for January?

---------- Post added at 03:39 PM ---------- Previous post was at 03:17 PM ----------

Yes I want to roll back Oreo too because of the Gcam focus issue.Currently my device is on Pie 9 with January security patch level. Previously I rooted my phone just to enable camera 2 API and EIS. I removed root and locked my bootloader after enabling camera 2 API.

So can you help me to roll back my device to Oreo?
[Xiaomi Mi A1 Guides, News, & Discussion] :
I haven't tested the January boot.img

In order to roll back to Oreo you must either have an EFS backup from your device, before the upgrade, or you can use the one that people have shared here on XDA (a TWRP backup). I have used the one that people shared as well since I hadn't backed up mine either and it worked but not sure if it's the same as the original so use with caution. After you restore that, you can MiFlash the last Oreo update without a problem (you can find a guide to the entire process on the Guides section of the forum).
[Xiaomi Mi A1 Guides, News, & Discussion] arielo182:
Tried to do this in Pie, but i cant activate wifi anymore, plus, in the last step magisk doesnt give me the option "Install"
[Xiaomi Mi A1 Guides, News, & Discussion] :
Magisk wouldn't show "Install" because you must have a network connection for it to download and install the package of the latest release.

Just did the entire procedure without using TWRP on a fresh install of latest Pie and it worked fine, booting into the patched_boot.img didn't prevent me from activating Wi-Fi and everything works fine after installation.

Sorry that I couldn't get back to you earlier about this. Didn't have time to update in the last week and I decided to do it just now so that I can test if Magisk works fine.

TL;DR: I didn't encounter the issue you mentioned.
[Xiaomi Mi A1 Guides, News, & Discussion] arvind7955:
Where did you get the patched img for january update?
[Xiaomi Mi A1 Guides, News, & Discussion] sash11:
In the OP download January update boot.img and patch it yourself.
[Xiaomi Mi A1 Guides, News, & Discussion] Saurabh3498:
Has anyone tried this method on latest security patch level?

I wanted to try this out but I'm scared.

Can someone tell me where I can find untouched boot.img for V10.0.4.0.PDHMIXM?

Thanks in advance.
[Xiaomi Mi A1 Guides, News, & Discussion] :
I have, it works fine. What's V10.0.4.0.PDHMIXM though? Is it the beta one? The stable one is V10.0.4.0.ODHMIFE and the untouched boot.img for it is in the OP.
[Xiaomi Mi A1 Guides, News, & Discussion] Saurabh3498:
No, I guess V10.0.4.0.PDHMIXM is for people who received pie update in december..
[Xiaomi Mi A1 Guides, News, & Discussion] :
I believe that one was V10.0.3.0.ODHMIFE, but alright.
[Xiaomi Mi A1 Guides, News, & Discussion] jvcosmo:
Did a fastboot flash of latest android pie and patched the boot.img... after reboot, got a bootloop.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Probably did something incorrectly, I've tested this method. Make sure you do fastboot boot and not flash. Also make sure you're using the boot.img suited for the update installed on your device.

If it still doesn't work, I'm not sure what's wrong.
[Xiaomi Mi A1 Guides, News, & Discussion] jvcosmo:
Steps:

1 - download and fastboot tissot_images_V10.0.4.0.PDHMIXM_20190104.0000.00_9.0_2cee840c96

2 - copied boot.img to device and patched with magisk manager 7 and magisk 181

3 - copied patched_boot to pc and fastboot boot patched_boot.img

4 - bootloop.

I've tried with boot and install of magisk with TWRP too, no success.
[Xiaomi Mi A1 Guides, News, & Discussion] :
So you are on V10.0.4.0.PDHMIXM? Official one is V10.0.4.0.ODHMIFE from what I know of.
[Xiaomi Mi A1 Guides, News, & Discussion] jvcosmo:
I've downloaded from miui website...

https://en.miui.com/download-333.html

Author: MIUI Official TeamVersion: V10.0.4.0.PDHMIXM (Android P) Size: 1616M

Download MIUI Forum app to get the latest updates Download now
[Xiaomi Mi A1 Guides, News, & Discussion] :
Well I don't think the "PDHMIXM" is the official OTA. I always extract the image from the official OTA link and this is not the one.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Reuploaded images to a different file host (MEGA)
[Xiaomi Mi A1 Guides, News, & Discussion] jvcosmo:
this is the oficial website, acording to this post:

https://xdaforums.com/mi-a1/how-to/ota-xiaomi-mi-a1-ota-links-t3718542

that firmware was the fastboot one...

---------- Post added at 09:38 AM ---------- Previous post was at 09:32 AM ----------

This website is linked in xiaomi website.... f##king versions!
[Xiaomi Mi A1 Guides, News, & Discussion] lpchaim:
Yeah, PDHMIXM here as well and I just can't get magisk to work on Pie. Prepatched images, extracting boot images from the exact same update as my build number straight from xiaomi's site, backing up my own as is and patching, twrp install, nothing works. Guess I'll try a custom rom for now.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Will look into this soon. Will keep you guys posted if I figure it out.
[Xiaomi Mi A1 Guides, News, & Discussion] :
So I updated and this time I got the PDHMIXM too. I extracted the OTA and rooted fine (I don't use the Xiaomi ones). Added the boot.img I used in the OP.

Also added some screenshots as proof.

If you'd like to dump your OTAs use this to extract the OTA link before updating and payload_dumper to dump the images.

This was the OTA link for V10.0.4.0.PDHMIXM, in case you don't want to look for it. After dumping, all you have to do is get the boot.img from the output folder and follow the instructions in the OP.
[Xiaomi Mi A1 Guides, News, & Discussion] lpchaim:
Oooh it worked now, thank you!! Really appreciate the quick response, will keep all that in mind. ☺️
[Xiaomi Mi A1 Guides, News, & Discussion] :
Awesome, glad it worked.
[Xiaomi Mi A1 Guides, News, & Discussion] morcio:
By any chance, have you got an OTA or fastboot link to the latest February update 10.0.5.0.PDHMIXM? Or at least untouched boot.img.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Here you go (Full OTA link)

Will extract the boot.img when I have the time.

Reminder that I haven't installed this update.
[Xiaomi Mi A1 Guides, News, & Discussion] zorzgeo:
Hello.

Need some HELP :(

I have flash January2 (V10.0.4.0.PDHMIXM) as attached in 1st post because that was my rom version, patched it with magisk and boot in to it but after that i have no WiFi at all and Magisk/SuperSu working fine... After phone reboot, no more Magisk and SuperSu (Manager remains) but WiFi appear and working good.

What to do and where i am wrong?

TNX
[Xiaomi Mi A1 Guides, News, & Discussion] :
Added February UNTOUCHED boot.img.

Hey, I think another member encountered this issue in this thread, read up on previous pages.
[Xiaomi Mi A1 Guides, News, & Discussion] zorzgeo:
I have resolved problem.

It's my fault because on my phone was February Sec. Patch not a January2 so i unbricked the phone after a couple of hours ;)

TNX
[Xiaomi Mi A1 Guides, News, & Discussion] morcio:
Tried your february boot.img, patched with magisk and followed OP - ended with "android one" logo loading forever. Pushing the power button restarts the phone but Magisk does not show direct install method.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Yeah, it's probably because you restart and it boots with the stock boot.img after that so obviously there won't be a direct install choice.

I haven't tested the method on the current update, I just post the boot.img whenever it's out.

EDIT: Tested it for you, and it works as intended, same process as always. Didn't finish the process since I don't need root at the moment (everything was on latest February update). Added screenshot as well.
[Xiaomi Mi A1 Guides, News, & Discussion] tocadiscø:
nice tread bro, i have recovered the root with this, but i got a question, i cant install the february update via ota in any ways, i can download this file? im half lost here :(
[Xiaomi Mi A1 Guides, News, & Discussion] zorzgeo:
Device will not be wiped out when b/l unlocking with this steps

:

- unlock b/l in developer options

- reboot in fastboot mode (power button+vol- or type: Adb reboot fastboot)

- in dos prompt (as admin)/or in terminal type with one hand but with another, keep holding&pressing vol- button (don't release it): Fastboot oem unlock

- after a couple of a seconds phone will reboot again in fastboot mode and then release vol- button

- type: Fastboot reboot

and phone will reboot in system without any data or something else wiped out or lost!!!
[Xiaomi Mi A1 Guides, News, & Discussion] tocadiscø:
I got a problem

my device is stucked on the three lines before android one logo boot

and i just can bypass this booting the patched boot image, but, if i restart the device, the same problem returns, someone got this?
[Xiaomi Mi A1 Guides, News, & Discussion] :
This used to be part of the guide but I don't really recommend it anymore. It's pretty pointless. Just unlock normally once and keep it that way. Will get wiped once and you will have a vulnerability since your bootloader will be unlocked but if you mess around with your device (switching around ROMs etc.) it's worth it I suppose.

The wipe that you skip with this method will occur if you boot into any recovery.
[Xiaomi Mi A1 Guides, News, & Discussion] :
Have you installed any Magisk modules?

If yes, check if one of those is responsible.
[Xiaomi Mi A1 Guides, News, & Discussion] tocadiscø:
i got 0 modules haha

but i have formated from a new rom stock and clean all, cuz these problems i have related, and i have followed ur tutorial

but i need to press volume down before execute FASTBOOT OEM UNLOCK to dont wipe storage, and after this i finally have updated my device with de february patch, unlock the bootloader, and rooted with no problems with resets and any things, tnx bro, u topic help me a lot

obs: sorry for my bad english haha
[Xiaomi Mi A1 Guides, News, & Discussion] simpleman1010:
I fully uninstalled magisk and rebooted so I can install the February OTA update but I can't install the update it says *couldn't update installation problem *
[Xiaomi Mi A1 Guides, News, & Discussion] zorzgeo:
After MAgisk uninstalling, must roll back original boot.img (for Your current ROM) and then to install update ;)
[Xiaomi Mi A1 Guides, News, & Discussion] Warft:
Hi michkost, same case like morcio. I try to charge the patched_boot.img whit your guide, but can't pass of android one screen, I explained better here:

https://xdaforums.com/mi-a1/help/bootloop-reboot-try-to-root-android-pie-t3907003

Can you help me?
[Xiaomi Mi A1 Guides, News, & Discussion] :
What's the update you are on? (Check in About Phone and report back)
[Xiaomi Mi A1 Guides, News, & Discussion] Warft:
I'm in 10.5 february update.

Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] :
Not what I meant but alright.

Is it V10.0.5.0.PDHMIXM?
[Xiaomi Mi A1 Guides, News, & Discussion] Warft:
Yes, this is
[Xiaomi Mi A1 Guides, News, & Discussion] :
Then the guide should work as it is.

Can't guide you any further, sorry.
[Xiaomi Mi A1 Guides, News, & Discussion] Warft:
Really thanks, finally i can solved make this:

https://xdaforums.com/showpost.php?p=79040998&postcount=3
[Xiaomi Mi A1 Guides, News, & Discussion] :
Look in this thread (or this). You might be able to find it. Just warning that there were 2 different updates in January.

P.S You don't have to look through all the pages. Use the search function.
[Xiaomi Mi A1 Guides, News, & Discussion] simpleman1010:
I fully uninstalled magisk then tried to install the February update but it keeps failing and I keep getting this message

" couldn't update

installation problem"
[Xiaomi Mi A1 Guides, News, & Discussion] zorzgeo:
Also must roll back phones original boot.img

Without that You can't update.
[Xiaomi Mi A1 Guides, News, & Discussion] sash11:
Flash stock boot.img and system.img from your current build. All data and apps will remain intact. Then try to take OTA.
[Xiaomi Mi A1 Guides, News, & Discussion] simpleman1010:
how do I flash the system img?

and where can I get it?
[Xiaomi Mi A1 Guides, News, & Discussion] sash11:
fastboot flash system system.img

You can get it from fastboot image or full OTA image.
[Xiaomi Mi A1 Guides, News, & Discussion] simpleman1010:
so I just need the stock boot img to flash the boot img and system

or do I extract something from the stock boot img

sorry I'm new to this