yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] kenux66:
Work great. Thank You ! :)
[Xiaomi Mi A1 Guides, News, & Discussion] bubundas17:
Any one please stock boot image for mi a1, I did a full mess-up
[Xiaomi Mi A1 Guides, News, & Discussion] kenux66:
Look your PM :good:
[Xiaomi Mi A1 Guides, News, & Discussion] Tish997:
patched boot.img for APRIL security patch ???
[Xiaomi Mi A1 Guides, News, & Discussion] ngohoainam:
thanks you :) . your file works for me on April security patch :good:
[Xiaomi Mi A1 Guides, News, & Discussion] haiggou:
magisk after ota never worked 4 me

there is no step 2 in ota. after step i only have the option to reboot. when installing magisk in this moment to slot 2 the phone goes in bootloop
[Xiaomi Mi A1 Guides, News, & Discussion] pantezuma:
You can consider step 2 as "Installing AND before rebooting".

1) Restore Stock Boot Image

2) Download and install OTA (installation happens automatically after download, that's step 2 in magisk tutorial).

3) Install Magisk to second slot (After OTA) from Magisk Manager.

4) Reboot phone.
[Xiaomi Mi A1 Guides, News, & Discussion] haiggou:
Okay will try next month while installing [emoji16]

Gesendet von meinem A1 mit Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] kyrillos13:
Firstly you have to extract the stock boot image from the fastboot rom -- I extracted the stock boot.img from [MENTION=4863028]oreo27[/MENTION] april's fastboot image post -- and you put it anywhere in the phone's internal storage. Then you can patch it with Magisk. Open Magisk --> Install --> Install --> Patch Boot Image File and then you get as output a patched_boot.img file.
[Xiaomi Mi A1 Guides, News, & Discussion] oreo27:
That's not mine. I just took the link from [MENTION=6345368]Displax[/MENTION] if I recall correctly.
[Xiaomi Mi A1 Guides, News, & Discussion] Anandkrishna:
Where's April patched boot?

---------- Post added at 06:02 AM ---------- Previous post was at 05:59 AM ----------

Safety net false why?:confused:
[Xiaomi Mi A1 Guides, News, & Discussion] gordito_gr:
There are 2 versions in that link, what is the difference?

One is 'T', one is 'F'
[Xiaomi Mi A1 Guides, News, & Discussion] Luksy78:
Yeah, i would love to know this too. I tried google but got nothing.

EDIT: i think i figured it out but it would be nice if someone can confirm this: T is for TWRP and F is for Fastboot?
[Xiaomi Mi A1 Guides, News, & Discussion] Johnny75_:
please, can anyone upload only patched_boot of april? Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] xdecoy:
i'm already on april update. when i boot on pached boot, magisk says the it is already installed, but when i reboot, magisk is uninstalled. did i do something wrong?
[Xiaomi Mi A1 Guides, News, & Discussion] Siebenmik:
Here is april patched boot.

My suggestion for the future is to patch your own boot.img using magisk instead of asking a pre patched one.
[Xiaomi Mi A1 Guides, News, & Discussion] kyrillos13:
This ir right. T for TWRP, F for Fastboot.

That's the way it should work. You temporary boot your phone from the patched_boot.img (with: fastboot boot patched_boot.img) which is already rooted, and then you can patch (direct install with magisk) your phone's stock boot.img and have root permanently. That way you can restore the stock, unrooted boot.img with magisk before OTA and then patch it again after the OTA, following the second part of the guide in the OP.
[Xiaomi Mi A1 Guides, News, & Discussion] aliyawarkhan46:
April patched upadate:(:(:(:(:(:(

why is april patched update is not uploaded

PLZ JASHAAN Cheema Bro UPLOAD it
[Xiaomi Mi A1 Guides, News, & Discussion] sob0s:
How can I do this? Do you got a link\guide to follow?

Thank you.
[Xiaomi Mi A1 Guides, News, & Discussion] marhensa:
it BREAKS WiFi.

cannot use WiFi anymore with this patched kernel.
[Xiaomi Mi A1 Guides, News, & Discussion] kecrekchord:
Can you or anyone upload stock boot.img April update. i want to patch by myself. Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] jashancheema:
April patched img released

Download from here
[Xiaomi Mi A1 Guides, News, & Discussion] Siebenmik:
I can... There could be some problem with the update

P. S. It's not a kernel
[Xiaomi Mi A1 Guides, News, & Discussion] Vizluc:
Hello,

following guide for OTA update, after restoring images on Magisk, OTA update goes in error during install. I have not root anymore now.

What should i do? I need a march stock boot.img and flash in fastboot? Than OTA update and root again?
[Xiaomi Mi A1 Guides, News, & Discussion] busyfolk:
The april patch works fine. Thanks!!
[Xiaomi Mi A1 Guides, News, & Discussion] okahdidi:
Once image is restored,go to OTA and download and leave it to pass step 1 and 2. Once done and it asks for a reboot,go to magisk,click install and choose second slot(after OTA). Once it flashes and ask for a reboot,minimise it and swipe down and click on the reboot and that's it. U have your update while rooted. I rooted with January patch since January and this is how have been updating since then without issues. Good luck
[Xiaomi Mi A1 Guides, News, & Discussion] Vizluc:
Thanks for reply.

This point is clear. But during OTA step 1 i got an error, so installation failed.
[Xiaomi Mi A1 Guides, News, & Discussion] dibowz:
Yes indeed. I got the same issue. I did the steps stated in topjohnwu's github and it failed. I accidentally uninstall completely the magisk, and I got bootloop :crying:

The point is, I can't update OTA and I must download the ROM from Mi's Official and flash it with Mi Flash Tool to unroot and then update the OTA.

Please, whoever know the workaround, share it with us.

---------- Post added at 07:16 PM ---------- Previous post was at 06:41 PM ----------

\

Thanks! But can u tell us how to manually get the original boot.img and patch it with magisk on our own?

I have downloaded the OTA updates from system update menu and check the cache folder from root explorer and didn't get anything. Where is the OTA zip stored?
[Xiaomi Mi A1 Guides, News, & Discussion] okahdidi:
Then flash the ROM all over again,don't forget to click save user data. Flash via mi tools. Then follow the steps again as I described earlier. It should work. Note: use Jan patch image in 1st page to flash.

Atimes these errors are because of the patch boot image we use

---------- Post added at 01:02 PM ---------- Previous post was at 12:59 PM ----------

U can't see OTA anywhere saved on the phone. Note if u must update,u must have the original stock boot image or else u are wasting your time. If u want to patch image by yourself,it's easy.... Just copy the boot image to your phone,go to magisk,click install,click patch image,it will ask u the folder u have the boot image u already copied,go there,follow the steps and u have your patched boot image in the same place you kept your boot image
[Xiaomi Mi A1 Guides, News, & Discussion] quetzalcoatl2435:
From the other thread:

You need secure boot enabled to make topjohnwu's guide on github work. Otherwise it's gonna end in a bootloop.

Haven't tried it myself, though. April OTA isn't showing here yet.
[Xiaomi Mi A1 Guides, News, & Discussion] DavideLosito:
the thread title is wrong.

You say "without disabling ota with magisk".

While this thread details a procedure in which you keep installing and uninstalling Magisk for OTAs.

It looks like in someway I don't have a boot.img on the phone so Magisk can't uninstall with restoring images options.

Is there a way to manually install OTA _over_ a rooted and Magisk installation?

Is there a way to understand what's installed in my device boot slots, as I fear I made some mistake or confusion following different guides for rooting, and currently have only 1 slot flashed.

More: are we sure there is NO WAY to fool the OTA engine and fake an unrooted unlocked phone?

If I read a "without disabling OTA" thread I intend that the OTA updates work as Google intended them.
[Xiaomi Mi A1 Guides, News, & Discussion] dibowz:
Hi, thanks for the patched boot img! but I wonder how to retrieve the original boot.img? I want to try patch it by my self so if things go wrong, I can boot the original instead. thanks :D
[Xiaomi Mi A1 Guides, News, & Discussion] marhensa:
thank you it works.

also it DOESN'T BREAKS WiFi.

:cowboy::good:
[Xiaomi Mi A1 Guides, News, & Discussion] rox5550:
stock Boot image from March update

stock boot.img from march
[Xiaomi Mi A1 Guides, News, & Discussion] DavideLosito:
How do I convince Magisk that I have this image? :P

Technically: where do I put the file to be sure Magisk can see/use it during restore?

Sorry for nub questions... first Android after 9 years of bitten apples...
[Xiaomi Mi A1 Guides, News, & Discussion] 90180360:
I put the unzipped boot.img into the MagiskManager folder and I think it worked.

---------- Post added at 14:44 ---------- Previous post was at 14:01 ----------

After restoring the stock boot.img with magisk, is it still necessary to flash it?

Also don't you have to be careful about which boot.img to flash in the inactive slot, as it might contain an older version?
[Xiaomi Mi A1 Guides, News, & Discussion] okahdidi:
After restoring,no need to flash
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
Very strange behaviour ...

I have been using Magisk for quite some time, and did not have any issues. But this changed with the most recent (April update)

After using for 1/2 a day or so, I found my phone hanging in 'Recovery mode', telling me that some system files are damaged. Restart did not heelp

So I reinstalled the phone using Mi-Flash-Tool, installed the latest OTA, installed Magisk (direct method), and again after a couple of hours the phone ended in a boot-loop.

And again, I reinstalled the phone using Mi-Flash-Tool, installed the latest OTA, unlocked, installed the 'patched_boot.img', the phone booted, showed 'no Sim Card', a dimmed screen, and rebooted again and again..

So it seems it's getting worse ...

Any idea what went wrong?
[Xiaomi Mi A1 Guides, News, & Discussion] rox5550:
stock Boot image from March update

No need to put this image anywhere in andriod, simply save this one in ur laptop/pc. Use command prompt and type command fastboot flash boot_a boot.img

Fastboot flash boot_b boot.img

But remember if u ever boot wd TWRP and allowed mounting system, flashing wd boot image not worked for OTA. In that case u have to donwload fastboot rom file of Mi A1 for march update and flash it by mi flash tool by selecting save user data option at bottom. Then proceed for OTA update it will succeed.
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
Help needed!

There have been a couple of similar posts over last few months, but so solution was offered ...

1) After following the prcedure 'fastboot oem unlock' and 'fastboot boot patched-boot.img' my A1 starts booting but hangs forever at boot-animation.

2) When I do a force reboot (hold on/off key for 15sec) the device boots normally.

3) Going to MagiskManager I see 'ctsProfile: false', and when trying to install I am only offered 'download' and 'patch boot image', but no 'direct install'

I have re-flashed the current fastboot image with MiFlash tool several times, tried ' fastboot flash boot_a stock_boot.img' and 'fastboot flash boot_a stock_boot.img' , updated to the most recent fastboot ..., but nothing helps

Until 2-3 days ago everything was working fine

Any help is welcome!
[Xiaomi Mi A1 Guides, News, & Discussion] Bennybtc:
Just fresh install it
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
I reinstalled several times...

Ok, I was/am still 'preserving' my data
[Xiaomi Mi A1 Guides, News, & Discussion] little&lucky:
I had similar problem!

I wanted to update the April security by OTA, so I restored images and did OTA, but OTA failed. Then I rebooted the device and opened the Magisk Manager, found "Magisk is not installed", and I clicked "install" but couldn't find direct install! Only "Download ZIP only" and "Patch boot image file" in Select Method.

I don't know what to do now!:crying:
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
Welcome to same problem! At least I am not the only one ....

Did you try to re-flash the system using MiFlash? You can preserve your data
[Xiaomi Mi A1 Guides, News, & Discussion] little&lucky:
Can the problem be solved by reflashing the system using MiFlash? If it works, I will try!
[Xiaomi Mi A1 Guides, News, & Discussion] bejorahardjo:
ask

anyone succees get patch update? after use magisk
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
Your problem seems same, but from a different starting point (failed OTA).

I was starting from a 'clean system' - so I recommend Re-Flash with MiFlash (keep data!), upgrade to the latest OTA, install Magisk

Hope it helps ...
[Xiaomi Mi A1 Guides, News, & Discussion] bejorahardjo:
when you choose preseve data, flashing process take very long time, I was spend about 4 hour flashing &...not working, but when I move my data 1st then flashing again, not more than 15 minutes...done
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
Strange, flashing with MiFlash and 'preserve data' takes about 3-4 minutes for me ....
[Xiaomi Mi A1 Guides, News, & Discussion] 2363:
When I bought my phone (2 weeks ago) it was on Nougat, received March update immediately and update it to Oreo 8.0, then followed instructions in the first post, and installed Magisk and rooted it.

Now I received April update, But when I following the guide mentioned in the 1st post I failed to install the update and gives me "installation problem" as shown in the attached screenshot.

what should I do?
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
The 1st post here, applies to new installation of Magisk!

To reinstall Magisk after OTA, there are other recipes.

In your case, most likely re-flash the original ROM with MiFlash (option: keep data),OTA update, and then follow post #1
[Xiaomi Mi A1 Guides, News, & Discussion] lockers09:
April update patch not working for me

not sure what im doing wrong, but when i go to apply the April patched boot after a MiFlash recovery and OTA update, my phone screen just changes to the battery charging icon, no amount of time changes this.

Confirmed it's running the April patch level, debugging mode is on, oem unlock is done already (reran to be sure)

The device was fully wiped with flashall script within miflash.

Any ideas anyone on what im doing wrong?
[Xiaomi Mi A1 Guides, News, & Discussion] rafimkl8:
Installation Problem

Once I've rooted mi a1 using magisk and then uninstalled completely...

Then I've tried to root the phone using same method... But it doesn't work... What's the problem?
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
Can you describe the problem in more details?

Just to say 'does not not work' and 'what's the problem' is not sufficient information to help you ....
[Xiaomi Mi A1 Guides, News, & Discussion] little&lucky:
I have reflashed the system using MiFlash (selecting 'clear all') then installed Magisk, but 'direct insrall' still couldn't be found in select method, only 'Download ZIP only' and 'Patch boot image file' could be selected.

That's terrible!
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
That's exactly the problem I am facing ...

Have a look here https://xdaforums.com/showpost.php?p=76325076&postcount=4, and check if any of the 3 methods are working for you

Hope it helps ...
[Xiaomi Mi A1 Guides, News, & Discussion] little&lucky:
Finally I solved it! I didn't open the USB debugging in the developer option after reflashing! When I opened it, Magisk could be installed normally and four methods could be found in the select method!

---------- Post added at 05:27 PM ---------- Previous post was at 05:19 PM ----------

​

1. OEM unlocking is on

2. Automatic system updates is off

3. USB debugging is on

Checking above things in developer options before Magisk installing are very important!
[Xiaomi Mi A1 Guides, News, & Discussion] kusumalaga:
I'm on March trying to update to April but somehow after restoring stock image from Magisk and downloading the OTA it's failed just before starting "Step 1". I reinstalled Magisk and it's working normally. Is there any way I can do OTA update without downloading the update and flash it from PC? I mean that's what this thread is about right haha.
[Xiaomi Mi A1 Guides, News, & Discussion] little&lucky:
After successfully installing Magisk, I just rebooted the device and didn't do anything else, unfortunately the same problem appeared again! I don't know why. I am going to give up.
[Xiaomi Mi A1 Guides, News, & Discussion] TheBigBoom:
Looking for some advice on what to do after the following situation: I've had my phone for a few weeks, it came with Nougat, November level security update. Updated to December update and March Oreo update after that. Rooted using the patched boot. When the April update came around I used the OTA guide (restore images, install OTA, install Magisk in second slot when step 2 starts). However after rebooting the phone got stuck in a bootloop.

Tried to boot using the patched April boot through fastboot and it continued bootlooping. Tried again, this time using the stock April boot, boot successful! After I got on the system I got a little notification that the update has been finalised. After doing this and returning to fastboot, I was finally able to boot using the April patched boot and using it, I redid the direct install method (I did not think of trying to boot normally before using the patched boot again). The phone is back to normal after that, but I am left wondering what do I do when the next OTA comes? Is the stock boot backup overwritten by a corrupted one, making restore images useless (I guess in the worst case I'd have to flash the stock boot through fastboot)? And why did this happen in the first place?
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
Finally, after many attempts - I am able to install Magisk! Not sure what was wrong ...

How did I fix it:

Note: Xiaomi published a new FW yesterday, which included the latest (April) OTA update-> so need for OTA !

1) Installed original ROM using MiFlash

2) Fastboot oem unlock

3) fastboot boot twrp-recovery

4) TWRP: install Magisk-Uninstaller.zip (to get rid of all Magisk remains)

5) reboot system

6) fastboot boot twrp-recovery

7) TWRP: install Magisg-16.3.zip

8) reboot

9) Open Magisk Manager, install module1, reboot (to detect any module causing problems)

10) Open Magisk Manager, install module2, reboot

At the moment I am a 'Happy Magiscian', but let's wait and see

Maybe this helps others who are unable to install MAGISK
[Xiaomi Mi A1 Guides, News, & Discussion] DavideLosito:
Confirm that by reflashing stock ROM (flash_all_except_storage) and then unlocking and rooting with Magisk (no TWRP) fixes all issues.

Happly rooted and OTAed to April :)
[Xiaomi Mi A1 Guides, News, & Discussion] SmiteBott:
Can't seem to be able to install the magisk zip file within the manager.. it just downloads it every time

How can I actually install it?

already oem unlocked and flashed the img
[Xiaomi Mi A1 Guides, News, & Discussion] riccetto80:
yeah, had error to ota update too, and this procedure fixed it.

remember to flash with xiaomi flash tool with bootloader unlocked, i forgot it and flashed first time with bootloader locked and the flash procedure was "neverending" lol.

then, after the flash, bootloader need to be unlocked again, to run the patched boot image and root with magisk.
[Xiaomi Mi A1 Guides, News, & Discussion] Lord CESAR:
"remember to flash with xiaomi flash tool with bootloader unlocked"

Please step-by-step instructions on how to do this
[Xiaomi Mi A1 Guides, News, & Discussion] buffalodebile:
+1

Thanks !
[Xiaomi Mi A1 Guides, News, & Discussion] arturo181991:
Please helpme

Hello, I currently have the bootloader unlocked and I installed the root with Magisk, I am in the March update and I want to put the April, does this process works for me? Or First I have to remove the root to do the process, How can I do it?, thanks

PD: Since I have the bootloader unlocked, I go to the bootloader mode and I execute "fastboot boot patched_boot.img" (File April), the phone restarts but when I go to Settings, About section ... it keeps telling me that I am in the March patch :crying:
[Xiaomi Mi A1 Guides, News, & Discussion] Gyro01:
Stuck on boot loop after trying to update it with the guide linked in the first post..... "USE THIS GUIDE WHEN OTA ARRIVES" https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips

I had the update on pause and in the begging of stage 1 (just slightly downloaded) before starting the guide

this is what I did:

1. in magisk >uninstall>restore image

2. enabled ota and started the update

3.When stage 2 of the update started: Install → Install to Second Slot. This will install Magisk into the second boot image slot, which is the updated slot.

4.then I clicked reboot (sine the guide doesn't mention what to do), should I have clicked close instead?

now it's just boot looping non stop.. wtf???
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
So you had Magisk running with the March update?

This guide is for doing the first install, and not for doing an OTA upgrade!

There is several guides available which should help you.

My recommendation: install the most recent original FW (incl April OTA) with MiFlash tool (keep you data), and then follow the instructions in this guide
[Xiaomi Mi A1 Guides, News, & Discussion] Gyro01:
and this guide has a link to another guide for how to install OTA later.. I followed it and now my A1 is bootlooping
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
can you still go back to fastboot mode?

If yes, you could install back the orginal boot-image a 'fastboot flash boot_a original-boot.img' and 'fastboot flash boot_b original-boot.img' .

Based on my own experiences (https://xdaforums.com/apps/magisk/bootloop-flashing-patched-boot-image-t3780846 ), my recommendation: install the most recent original FW (which is incl April OTA) with MiFlash tool (option: keep data), and then start from the beginning
[Xiaomi Mi A1 Guides, News, & Discussion] Gyro01:
Yes I can go to fastboot, but I need to install fastboot on my PC, which one do your recommend?

is this the april patch you're talking about?

will this method delete all the the phone's data (photos files etc)?

I didn't install TWRP, only magisk, is it relevant?
[Xiaomi Mi A1 Guides, News, & Discussion] Tiemichael:
For the original boot-image: you can extract it from the orginal FW, eg from the xiaomi server http://bigota.d.miui.com/V.9.5.10.0...0.ODHMIFA_20180405.0000.00_8.0_b9e697ed56.tgz

In MiFlash, you can select 'keep data', so you don't loose anything! (photos, apps ... all are kept)
[Xiaomi Mi A1 Guides, News, & Discussion] Gyro01:
MAN THANK YOU SO MUCH!!!!!!!!

After I finished the update, my phone booted successfully with everything installed (except magic), and I got the message "your phone just got fresher" (or something similar)..

I'll be very happy to give you some $$ over paypal.. some guy on android IRC told me there's no other choice but to delete everything.. so again thanks a lot! ! !
[Xiaomi Mi A1 Guides, News, & Discussion] TheBigBoom:
The exact same thing happened to me! All you have to do is boot with the stock boot image (don't flash it) through fastboot. When Android loads it'll finalise the update and you should no longer be bootlooping on reboot. If you can't find the stock April boot I can send it to you in a few hours because I'm not on my desktop right now

Edit: I see I was too slow in writing this - hope it still helps someone!
[Xiaomi Mi A1 Guides, News, & Discussion] Gyro01:
look at the reply above, i fixed it via MiFlash, I checke "save user data" and then flashed a huge folder of 3.08GB named "tissot_images_V.9.5.10.0.ODHMIFA_8.0"

Right now I have oreo 8.0.0.. which version is the april one you mention?

Now I only want to install magisk again (I got the app but it's not rooted)

I'm not sure which guide to use now for just rooting it, I wanna back everything just in case before I do anything