yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] faithjano:
Thanks for your answer

I tried to flash many times boot images I find on this thread and, I don't know why, After many many times in works. My phone boot, I Lost my root privileges but I can reinstall without problem.

And I have no data lost, with february patch on.

Onestly I can't tell which Image I boot, so I can't help anyone.

For me is a mistery, but I'm not good enough to understand, I'm Just Happy that somehow I have my phone back working.

Anyway, thanks for your suggestion
[Xiaomi Mi A1 Guides, News, & Discussion] BunkerBert:
Hello all.

Ive rooted susessfully. (oreo with feb. patch)

But now i have a problem with gsam and wakelook dectector.

i cant install these apps as system apps. unable to install. ive tried to make /system rw (root explorer)

but still the same error.

any ideas?
[Xiaomi Mi A1 Guides, News, & Discussion] afrizal87:
Anyone got issue after updating to February patch then get magisk,the wifi wont turned on?

Please help, the update was okay but then wifi won't turned on after installing magisk, even with older version
[Xiaomi Mi A1 Guides, News, & Discussion] Sorries:
yes I am also having the same problem with Wifi.
[Xiaomi Mi A1 Guides, News, & Discussion] Roderik3000:
Just tried it, it does not work with the february patch.
[Xiaomi Mi A1 Guides, News, & Discussion] woody4165:
Does this mean that I will not loose any of the apps and apps data?

Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] DrXLR8:
hey,

i m a rookie here :D, can anyone help people here by making a tutorial video on this thread, just like one in the installation of gcam without root thread. I m sure most of the people need this, many people are confused too:confused:
[Xiaomi Mi A1 Guides, News, & Discussion] Roderik3000:
You will not lose any of your data and or apps.
[Xiaomi Mi A1 Guides, News, & Discussion] Pachenko_Gr:
Guys I have a problem with systemless root, if someone know, help me please...

The problem is that after install magisk and modules, sometimes (not every time) after reboot phone doesn't recognize sim card and I have to reboot a couple of times for signal restore. Does anyone facing this issue?
[Xiaomi Mi A1 Guides, News, & Discussion] GeeOctz97:
Hey, I tried to do February 2018 OTA so many times but it always ended up in "Couldn't update - Installation problem" halfway through step 1. I've done everything on page 1 but I still can't do OTA. Can anyone help me? Thank you
[Xiaomi Mi A1 Guides, News, & Discussion] altaf_lm10:
Got the updates?
[Xiaomi Mi A1 Guides, News, & Discussion] woody4165:
Thanks

So if I want to have March update since I'm having error even after disabling Magisk, I have to download the Jan fastboot image and then update to Feb/March before rooting and installing Magisk.

There is no fastboot image already with March update, I imagine...
[Xiaomi Mi A1 Guides, News, & Discussion] viitmen:
I have the exact same problem..have rooted january 1st updated and now i get february 87.3Mb update..but it fails on first step always
[Xiaomi Mi A1 Guides, News, & Discussion] yashaswee.exe:
magisk getting uninstalled after reboot. Before it was working fine but after flashing stock ROM I am facing this problem. Any solution??
[Xiaomi Mi A1 Guides, News, & Discussion] Dimcode:
I still got the magisk working but wifi issue come back after reboot... Have to fastboot boot patched_boot.img to make it work again... Kinda tidious, any solution?
[Xiaomi Mi A1 Guides, News, & Discussion] snowtiger:
Exact same problem here. Same error message following this guide: https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips

Any hints for us?
[Xiaomi Mi A1 Guides, News, & Discussion] Smultie:
Nothing happens at step 11:

11. Then open magisk manager apk and then install magisk installer using direct method and reboot once again

Nvm, Blokada messed with the download within Magisk manager
[Xiaomi Mi A1 Guides, News, & Discussion] Smultie:
Yeah, me too! Have you been able to find the cause?
[Xiaomi Mi A1 Guides, News, & Discussion] Pachenko_Gr:
No I didn't find any solution, nobody answered me so I am waiting for someone who solved it...
[Xiaomi Mi A1 Guides, News, & Discussion] apukwa:
Need January Stock Boot

Clearly not thinking well last night -- found it from the stock ROM here.

https://xdaforums.com/mi-a1/development/tool-aosp-8-0-ql1515-dec-8-2017-t3722184
[Xiaomi Mi A1 Guides, News, & Discussion] ngohoainam:
[MENTION=7177145]jashancheema[/MENTION] there is stable March img on official site. so when do you release new patched_boot.img for March? :fingers-crossed:
[Xiaomi Mi A1 Guides, News, & Discussion] kusumalaga:
Hi, I rooted my device using this guide with January patch. Now I want to update to Feb OTA but Magisk says there's no stock backup found. I haven't progress further cause I'm afraid I'll get bootloop or lost my apps and data. Is there a way I can update to Feb without losing all my apps and data?
[Xiaomi Mi A1 Guides, News, & Discussion] albsat:
Hello everybody,

A new A1 user, so gladly would appreciate a help please. Where can I find the stock boot img for February please (oreo version)?
[Xiaomi Mi A1 Guides, News, & Discussion] Dezqo:
Xiaomi provides official fastboot images, here's a link to the latest version (february security patch): http://bigota.d.miui.com/V9.5.4.0.OD...5773957dcd.tgz

Go to "Settings > About phone > Build number" on your device and check if you can find "V9.5.4.0". If yes, you already have this firmware installed and you can therefore use this to restore your stock boot image!

After you have downloaded and extracted the file, you can find the stock boot image under "images/boot.img".

If you run into any problems with ota updates you should run the "flash_all_except_storage.sh" script, then do an ota update and then reroot!

---------- Post added at 12:02 PM ---------- Previous post was at 11:52 AM ----------

This means the backup of your stock image is either corrupted or not available!

I suggest unrooting, updating via ota and then rerooting.

Here's the stock fastboot image provided by xiaomi (january version): http://bigota.d.miui.com/8.1.10/tissot_images_8.1.10_20180110.0000.00_8.0_8ea503201b.tgz

The stock boot image can be found in the archive under "images/boot.img" if you want to try reflashing it manually!

Here's what I suggest doing though:

Connect your device in fastboot mode and the run the "flash_all_except_storage.sh" script which can be found in the archive.

I suggest opening the script and deleting the line that relocks your bootloader for obvious reasons! (Or unlock it again afterwards)

After that just do an ota update on your device and then reroot and install magisk according to the OP.

Just ask me for help if you run into any problems :)
[Xiaomi Mi A1 Guides, News, & Discussion] Smultie:
April update is out!

Looking forward to instructions to go from Feb rooted to April rooted
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
It's not April, but March.
[Xiaomi Mi A1 Guides, News, & Discussion] kusumalaga:
Thanks a lot for your reply. I wonder if I can copy the stock boot image to magisk so I can load it from Magisk Manager restore function? Btw the link you posted didn't work, is there any other link for the stock boot image?
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
Hey guy, I've patched latest boot.img from tissot_images_V9.5.9.0.ODHMIFA_8.0 (aka March update).

[IMG="Screenshot"]http://i67.tinypic.com/2irqivq.jpg[/IMG]

If needed, it's here.
[Xiaomi Mi A1 Guides, News, & Discussion] chirantantab:
PlZ Chq and make sure its March Patched . Todays update build num is V9.5.9.0.ODHMIFA

and BTW Wifi Not Working
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
LOL, I'm drunk.

Its latest: 9.5.9.0.ODHMIFA.

I'm going to update my previous post.
[Xiaomi Mi A1 Guides, News, & Discussion] Dezqo:
I fixed the link in my original reply!

You can look into "/data" to see if Magisk has actually created a backup, it should be in an archive.

It also has a specific name so if you want you can try renaming the stock boot image you downloaded and putting it in the archive, however, it most likely won't work and you might get an error once you try to update ota...

Make sure to report back if you can figure it out!

Also, please edit your post where you quoted mine as well and update the link there.

---------- Post added at 03:18 PM ---------- Previous post was at 03:15 PM ----------

Thank you, any pointers on how I would go about patching the stock boot image myself? (for future use)
[Xiaomi Mi A1 Guides, News, & Discussion] kusumalaga:
Thanks! I'll try it and see how it goes.

Edit: If it's not too bothersome, If I want to unroot, update OTA and then root again without losing apps and data, can you tell me the right procedure? Like should I deactivate all Magisk modules before uninstalling Magisk etc? Thanks in advance.
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
Sure, it's very simple.

Just download from here on XDA the image you need.

Uncompress file, pick the "boot.img" file and move it on your device in a folder you choose.

Then, on your device (already rooted or not), open Magisk.

When you'll click install, on not-rooted device, you'll see two choices; just pick the option about image patch, (Sorry, I don't remember exact phrases and my device is not in English), then choose the file you moved on your device.

Magisk will do the magic and you'll find in MagiskManager folder a new file, patched.

Just copy or move it on your PC/MAC and use fastboot as usual.
[Xiaomi Mi A1 Guides, News, & Discussion] Dezqo:
That is surprisingly simple, thank you!
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
True! :)
[Xiaomi Mi A1 Guides, News, & Discussion] chirantantab:
Wifi not Working :D:D:D
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
Very strange.

I've downloaded few minutes ago Europe maps for TomTom.
[Xiaomi Mi A1 Guides, News, & Discussion] Dezqo:
It might not even be necessary to uninstall the Magisk modules, just disable them. Leave Magisk installed and use the "flash_all_except_storage.sh" script! (You won't lose your data)

After that make an OTA update and reroot with the patched march boot image that was just posted.

Not sure if I had to reinstall my Magisk modules though it shouldn't be a big deal.
[Xiaomi Mi A1 Guides, News, & Discussion] chirantantab:
ohh ! then I messed up something

steps i did

fastboot getvar current-slot

fastboot flash boot_b patched_boot.img

fastboot reboot

is all correct or should i modify something?
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
I've not uninstalled them, and after the root, everything was ok AND enabled.
[Xiaomi Mi A1 Guides, News, & Discussion] kusumalaga:
Okay it's even simpler then lol. Thanks a lot man, I'll try it soon.
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
Well, I always do this:

fastboot boot patched_boot.img

Device reboots by itself. I run Magisk, then click on Install button and choose Direct Install (3rd option I think).

Then I reboot again.

Done.
[Xiaomi Mi A1 Guides, News, & Discussion] chirantantab:
Ok let me try.. Reporting Soon
[Xiaomi Mi A1 Guides, News, & Discussion] Pachenko_Gr:
What I am doing every time is:

Reboot to bootloader

fastboot boot patched_boot.img

Wait to boot

After boot use direct install from Magisk manager
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
Remember to FLASH a clean boot.img on your device first, just to be sure.
[Xiaomi Mi A1 Guides, News, & Discussion] faithjano:
sorry guys,

but gcam and WIFI work with march patch img? Just confused

thanks
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
Wi-fi yes. Gcam I don't know, I'm not using it.
[Xiaomi Mi A1 Guides, News, & Discussion] Peninsula_:
April update is being pushed to my A1.
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
Good. It will turn into March after you'll install and reboot your device, magically.
[Xiaomi Mi A1 Guides, News, & Discussion] chirantantab:
Thanks Sir for ur valuable Suggestion ..Now Magisk works perfectly and booting ,wifi works :good::good::good::good:

Actually slot command may be making problems ..
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
Very good mate!
[Xiaomi Mi A1 Guides, News, & Discussion] pbiernik:
Hello! When I try to install the ota from my phone I get "installation error".

I thought that once I installed the February boot.img, I would be able to download updates from my phone all the time and that they would be installed directly.

Now I can not install the March update.

What should I do to install it? I have the rooted phone and gcam installed.

Thank you!
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
Well, just uninstall Magisk with option to restore original boot file and you'll ready to update your phone, after a restart.
[Xiaomi Mi A1 Guides, News, & Discussion] pbiernik:
Hi. Thanks for your help.

I did what you indicated, I restarted the phone and when I want to install the update I have the same error. I can see that magisk is no longer installed. What's wrong?
[Xiaomi Mi A1 Guides, News, & Discussion] xxqxpxx:
Guys how do i update to the latest april ota without losing root ? The ota is currently downloading and im on jan release with batched boot.img from this thread
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
Mmmh. That's very strange.

I can't help you right now.

I think you've to wait other people with similar issue and hope they'll fix it.

Fingers crossed for you.
[Xiaomi Mi A1 Guides, News, & Discussion] Dezqo:
I'll tell you how to fix this issue! In your case, only flashing the stock boot image is not enough!

If you go back a bit in this thread you'll see a post by me with download links for stock fastboot images. Download the right one and run the script "flash_all_except_storage.sh".

You can then do a normal OTA update without errors.

After that you can unlock the bootloader again and reroot with the patched march image from a few posts ago!

---------- Post added at 06:35 PM ---------- Previous post was at 06:32 PM ----------

There's a tutorial on how you can update without losing root in the OP! Did you read the whole post?
[Xiaomi Mi A1 Guides, News, & Discussion] -vpa:
Updated to March security without problems like a month ago to February one.
[Xiaomi Mi A1 Guides, News, & Discussion] ItsChecalin:
help me on my mi a1 not work wifi on security patch march help me¡¡¡¡¡¡¡https://xdaforums.com/showthread.php?t=3728654&goto=nextnewest
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
Ok. Keep calm.

If you FLASH without deleting internal data from latest (March) OTA images, everything works, right?

The correct script to launch is "flash_all_except_storage.sh" or "flash_all_except_storage.bat" according to your OS
[Xiaomi Mi A1 Guides, News, & Discussion] ItsChecalin:
I did the process that is at the beginning of the post, had the February patch, then remove the root in restore image in magisk manager, then install the update ota in March but I no longer appreciate the wifi then decided to install the image again via fastboot February but it does not work

sorry for bad english
[Xiaomi Mi A1 Guides, News, & Discussion] ghale:
So, if I'm not wrong: you've tried March update, then you tried to downgrade to February Update?

I mean, using OTA images you can find in "Fastboot Images" section here, right?
[Xiaomi Mi A1 Guides, News, & Discussion] 000013:
HELP

Why is it that after doing step #10, when I need to install magisk installer using direct method, I open magisk manager and instead of having install button, I only see uninstall button? Why is it already installed?
[Xiaomi Mi A1 Guides, News, & Discussion] ItsChecalin:
Does the Wi-Fi work for you? It appeared to me like that but it does not pull the wifi in which patch you are?

---------- Post added at 12:23 AM ---------- Previous post was at 12:21 AM ----------

already flashee the full rom of March bro how to root so as not to lose the otes you explain to me
[Xiaomi Mi A1 Guides, News, & Discussion] 000013:
Idk if wifi is working, I only use data connection. I am on Feb patch. Do we need to install magisk manager apk BEFORE or AFTER booting into patched boot?
[Xiaomi Mi A1 Guides, News, & Discussion] ItsChecalin:
is what brother does not try to do it before and patching it to March I ran out of WiFi
[Xiaomi Mi A1 Guides, News, & Discussion] 000013:
nvm dis

---------- Post added at 02:14 AM ---------- Previous post was at 01:57 AM ----------

Can you give me a link of clean boot.img (Feb patch, boot.img only not full rom, I only use data connection :() please?
[Xiaomi Mi A1 Guides, News, & Discussion] fahrihassi:
March security update

Hello, i just updated my phone but my magisk dont work... i already did fastboot boot patched_boot.img with march patched boot.. then after restarted my phone, wifi is not working and there's isnt a choice of install in my magisk... any solution?
[Xiaomi Mi A1 Guides, News, & Discussion] fadhlipc:
Hello. Where can i download latest boot.img for march/april 440mb update?
[Xiaomi Mi A1 Guides, News, & Discussion] kusumalaga:
Yes I can confirm that after flashing the March patched_boot.img provided by [MENTION=655944]ghale[/MENTION] my device Wifi isn't working but Magisk is still there. However after I remove Magisk and reboot, the wifi is working again but I can't install Magisk. When I click install it says "download zip only" or "patch boot image file" so I'm guessing the boot.img isn't patched. Tried to flash the patched boot.img again and wifi is back to not working again. Maybe there's something wrong with the patched_boot.img?
[Xiaomi Mi A1 Guides, News, & Discussion] Masjoe94:
sir, how to uncompress file image

sir, how to uncompress file images OTA
[Xiaomi Mi A1 Guides, News, & Discussion] lokesh@36:
March patch boot image

Can anyone share working march patch boot image
[Xiaomi Mi A1 Guides, News, & Discussion] Shivam_0897:
When will Patched boot image of March come?
[Xiaomi Mi A1 Guides, News, & Discussion] chirantantab:
I can assure u the boot image was patched Successfully, and boot image is OK .., may be wifi was problematic but Only small step i did after patched boot.img I used Mobile data connection to download magisk16.zip and after flashing the zip file restart the device wifi backs to normal.

## if ur downloaded magisk zip file is saved to sd card instead of auto flashing then u did something wrong with fastboot.

The Correct steps What I did using the [MENTION=655944]ghale[/MENTION] patched boot.img

-->chq updates

-->uninstall magisk completely also every modules,turn off all root accesses, del substratum layers (del everything related to root/modifications)

--> flash last released fastboot rom by Xiaomi i guess feb security patched Rom BUT choose Save User Data Option before flashing believe me you won't Loose any data if u properly follow the instructions. (Before rooted u need to flash fresh boot.img file from the previous month build i.e FEB; if u are not sure where it is located then simply follow the mi flasher and save user data option to flash)

---> Then Updated 440mb via OTA. and successfully updated the system.

----> Switched to Bootloader; if ur device is locked then use "fastboot oem unlock" command

--->type "fastboot boot patched_boot.img" which was provided by [MENTION=655944]ghale[/MENTION]

--->Wait for sometimes device will boot automatically ....if not type "fastboot reboot"

---> After reboot it may happens wifi not working properly but don't worry ...install magisk and download magisk zip file USING MOBILE DATA CONNECTION; flash automatically via magisk manager and reboot.. Everything is fine also wifi is working smoothly.

**After Patching and installing magisk If magisk.zip directly saved to sd card instead of flashing then ur device is not patched properly***

Do What I did step by step ..u can install magisk/root Successfully.

Hope it Helps. :good: :highfive:
[Xiaomi Mi A1 Guides, News, & Discussion] kusumalaga:
Thanks for your reply. So you're saying the wifi is suppose to be not working at first? Is there any way I can install Magisk without using data? Because I'm not on any data plan right now, just wifi.
[Xiaomi Mi A1 Guides, News, & Discussion] jashancheema:
Thread updated

official march patch releasd .

Use it
[Xiaomi Mi A1 Guides, News, & Discussion] Skeuomorphic:
Wifi working?
[Xiaomi Mi A1 Guides, News, & Discussion] kusumalaga:
Yes it's now working with this patched_boot.img

Edit: Everything is working well with the patched_boot.img posted in OP (wifi). Not sure what's wrong with the previous file though, but I didn't get wifi to work with it. In my case I had all my apps and data but I still have to re-install Magisk modules to get it to work (cam2api enabler for gcam etc), all the modules downloaded from Magisk repo should be in Magisk folder and all I need to do is re-install them.
[Xiaomi Mi A1 Guides, News, & Discussion] zap-o-post:
For OTA updates there is a guide in the first post.

But which methode should I use for the Mi A1?

Devices with A/B Partitions?
[Xiaomi Mi A1 Guides, News, & Discussion] ngohoainam:
correct! use "Devices with A/B Partitions" method for Mi A1 (rooted). remember to follow correctly what guide tells you :)
[Xiaomi Mi A1 Guides, News, & Discussion] haybend:
What to do next?

Hello guys.

I am in need of assistance, there are so much data on this long post and i'm not sure what i should do next (also afraid to do something that will brick my phone by accident).

1 Month ago i updated my phone to android 8 January patch, and i did exactly as described on the OP:

I used the patched_boot.img of january, installed magisk and my phone was rooted.

Today i noticed there is April update on my phone and i wanted to update, so based on what i read on the OP and the comments i opened magisk pressed uninstall and choosed restore images.

After that i tried to use the OTA, but it fails on the start and give "installation error".

I have no clue what to do next and im afraid to brick my phone. Can anyone please guide me what i should do now to get the OTA and then how to root phone again?
[Xiaomi Mi A1 Guides, News, & Discussion] Dezqo:
Download the official fastboot firmware for your version (january) here: http://bigota.d.miui.com/8.1.10/tissot_images_8.1.10_20180110.0000.00_8.0_8ea503201b.tgz

Please make sure that this is the correct version in your system settings!

Execute the "flash_all_except_storage.sh/.bat" script.

Update your phone via OTA.

Reroot according to the OP.

Please try to use the search function or at least google your problem (a solution in this thread would probably show up), this is the fourth time I have posted this!
[Xiaomi Mi A1 Guides, News, & Discussion] rockeris:
hi to everyone, i have a problem with magisk. after the feb update, magisk uninstalls automatically after every reboot.
[Xiaomi Mi A1 Guides, News, & Discussion] hathim170:
Same issue here.. magisk got uninstalled automatically after every reboot
[Xiaomi Mi A1 Guides, News, & Discussion] maxpaguro:
Yes it's now working with this patched_boot.img for me too!:good:and thanks everyone:victory:I have a question thow: how to make the patched_boot.img? what the patch consist? It interesting for me (maybe not only for me:fingers-crossed:)to know how to make it an why:cool: Tks in advance
[Xiaomi Mi A1 Guides, News, & Discussion] Jack_Bristow:
magisk uninstalls automatically after every reboot with the boot of March. Is there any solution?
[Xiaomi Mi A1 Guides, News, & Discussion] realtebo:
Same problem here. It worth to say that I was in a very very dirty condition: sloat a and slot b had differents boots, patchs, etc ....

I flashed the latest official fastboot stable rom using save user data method

- See here: http://en.miui.com/download-333.html .

- The actual version at 26 of March 2018, Version: V9.5.4.0.ODHMIFA (Android O) , is updated at Febraruy patch

- I'm happy to say that after flashing the 'dirty' is now clean and all my app and data are still here !

- Now my boot loader is locked again

- Now I'm able to install March 2018 update.

I'll retry this evening to unlock + install twrp + install magisk and magisk installer and I'll update you