yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] Jack_Bristow:
But I do not want to replace the recovery. By the way, I tried to replace recovery to twrp, and the moment it's replaced, there's a problem with the Wifi, which forced me to flash the aforementioned (Version: V9.5.4.0.ODHMIFA) rom Stock.
[Xiaomi Mi A1 Guides, News, & Discussion] RedBlueGreen44:
Is there a video on how to do all of this?

Should I update to the latest OTA first?
[Xiaomi Mi A1 Guides, News, & Discussion] MarwanKhalid55:
After I patched the boot img I tried to install magisk to second slot after OTA (March), it stuck at (Downloading Magisk-V16.0 zip) and when reboot magisk is uninstalled automatically ? Any solutions please??

Edit: I tried to flash stick rom (January) then update to Feb. then March. After that I patched boot.img (March). Installed Magisk Manager then isntal Magisk with the Direct method but no luck still get uninstalled when I reboot :( PLEASE HELP!!!!
[Xiaomi Mi A1 Guides, News, & Discussion] Gyro01:
I want to root my MI A1 in order to recover removed photos,

1. Would it really help recovering files?

2. Can I un-root the device to default afterwards ?

3. Do root un-rooting require restoring MI A1 to default ?

4.Should I download both patches or just the latest march one?
[Xiaomi Mi A1 Guides, News, & Discussion] Smultie:
Right.

So I'm on February rooted (with the method from the OP) but I think I have a modified /system (since I'm using AdAway).

When I try to update to March with the link from OP (https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips) I get an error when trying to update.

Is there a way for me to update to March while keeping root?
[Xiaomi Mi A1 Guides, News, & Discussion] jordanxp:
I've rooted my device using this method and everything was ok, but had to reset my device. It is still rooted and unlocked, but now I can't restore images via Magisk because the backup got wiped. What to do? Use fastboot boot boot.img from the official image from Xiaomi or fastboot flash boot boot.img ? Or maybe something different? Thank You!
[Xiaomi Mi A1 Guides, News, & Discussion] Gyro01:
where the hell do I get that fastboot, I tried already 3 different versions, none identified the device.

also the magisk guide has different ways to install, which one should I pick?

This guide is so misleading

this is what I did so far:

enabled dev and oem unlocking

installed magisk apk

unzipped&transferred the patched_boot.img to a new folder in the MI's storage

installed it via magisk, backed up to PC the new patched_boot.img from "MagiskManager" (it was invisible via PC, so I added it to a Zip via android, then extracted the zip)

installed all sort of fastboots on my pc and tried to run those commands which didn't work

sorry but this+the magisk guide are so un-understandable to me.. absoutely no reference to fastboot and weather I should follow the marked in orange part of it(see pic)

I also tried to do the "power+vol up" procedure, looked like it killed my phone,it got stuck on the no command, then I power+Vol up again, got stock on fastboot screen and managed to get out of it by holding power again (if i recall correctly)...

Is there an xda live chat support or something?
[Xiaomi Mi A1 Guides, News, & Discussion] jordanxp:
https://xiaomifirmware.com/guides-and-tips/guide-install-adb-fastboot-drivers-pc/ To get the fastboot driver, than use Minimal ADB and Fastboot. Than use the " fastboot boot " command. After A1 boots with it, open magisk manager apk and then install magisk installer using direct method and reboot once again
[Xiaomi Mi A1 Guides, News, & Discussion] Gyro01:
I only now saw this reply, but i followed these instructions:https://wiki.lineageos.org/adb_fastboot_guide.html#setting-up-fastboot

typed

I don't remember typing "fastboot boot" though (you can see in the picture I didn't)

Then I opened the magisk app (which I installed beforehand), and it said at the top magisk installed.. then I rebooted the phone and now the status is "Magisk is not installed"..

Also what do you mean by "direct method"?

BTW, in developer options, "OEM unlocking" is grayed and under it written "Bootloader is already unlocked"

===================

EDIT

I just did the whole process again

[IMG="https://i.imgur.com/L6DcQ1v.png"]https://i.imgur.com/L6DcQ1v.png[/IMG]

As you can see, after entering your command it replied "expected argument"... then I entered the same commands again.. the phone started normally and in magisk manager (which was pre-installed) it says "Installed Version v16.0"

WHAT TO DO NOW? WHERE IS THAT DIRECT METHOD?

Thanks:good:

=============

3rd edit lol

I entered root explorer, it asked me for access, which I given it, came back to magisk, suddenly I have the install button, I used the direct thing and now I rebooted, I installed "root checker basic" and it says root access is properly installed on this device"..
[Xiaomi Mi A1 Guides, News, & Discussion] MarwanKhalid55:
Magisk isn't doing anything when I click on install ->Direct install ? WHHYYY??

Edit: Ok, after a few minutes it starts downloading the zip file, after it finishes downloading it says "Error Downloading zip" ? Sloution PLEASE??????
[Xiaomi Mi A1 Guides, News, & Discussion] Jack_Bristow:
Having no choice, we will have to use a different way to installed magisk well.

I installed TWRP and after that everything works fine. Recommend.
[Xiaomi Mi A1 Guides, News, & Discussion] MarwanKhalid55:
Can you please tell me the steps?

Does it disable OTAs?
[Xiaomi Mi A1 Guides, News, & Discussion] Smultie:
Anyone?
[Xiaomi Mi A1 Guides, News, & Discussion] MarwanKhalid55:
Try flashing stock rom then update to March then reroot
[Xiaomi Mi A1 Guides, News, & Discussion] Smultie:
I'd rather do it without having to reinstall everything :)

I thought that was the whole idea of this method!
[Xiaomi Mi A1 Guides, News, & Discussion] MarwanKhalid55:
No you're not gonna lose your data, just flash the stock rom with xiaomi flash tool and click on "save user data" at the bottom right

Here check this video:

https://www.google.com.eg/url?sa=t&...QQwqsBCCcwAA&usg=AOvVaw36RdcyBx_woGwnGO1B_7t8
[Xiaomi Mi A1 Guides, News, & Discussion] Smultie:
I can't open the video. Thanks though!
[Xiaomi Mi A1 Guides, News, & Discussion] pooniaprashant:
My 4 year old boi, stop using google then, it also follows "****ty instructions from an average Pajeet"

Can't believe how blatantly racist people penetrate through every constructive platform these days.

edit: also the bootable twrp for tissot (oreo) is from "an average Pajeet", hope u won't use it.
[Xiaomi Mi A1 Guides, News, & Discussion] Smultie:
Thanks. This worked!
[Xiaomi Mi A1 Guides, News, & Discussion] MarwanKhalid55:
Glad I could help :)

---------- Post added at 10:02 PM ---------- Previous post was at 09:59 PM ----------

Now Can someone PLEASE HELP ME????

Why does Magisk manager keeps telling me "Error Downloading zip" when I try "Install-> Direct Install"???
[Xiaomi Mi A1 Guides, News, & Discussion] jack_21:
Does using the built-in "SuperSu" of Magisk makes some changes in partitions?

I just followed the tutorial to let Android installing OTA (disable magisk restoring the stock image from the manager) but the Update Installer keeps stopping saying that there is an Installation Error, like when you make some change on one or more partition (data for example)
[Xiaomi Mi A1 Guides, News, & Discussion] symbianvn:
Thanks! it worked for me :)
[Xiaomi Mi A1 Guides, News, & Discussion] jack_21:
I solved reflashing stock images (modem, boot, system) to the currently active slot (a); maybe using Xposed or some other rooted app will mount r/w the system partition and that will cause the Installation Error issue
[Xiaomi Mi A1 Guides, News, & Discussion] MarwanKhalid55:
Magisk Manager takes time to start downloading the zip file, after it downloaded gives me "Error Downloading Zip"

Edit: Now, after it finally started the download and finished and then started the installation process and finished, I clicked on reboot, it rebooted after that the phone rebooted automatically the "No command" message appeared, I flashed the stock rom then tried rooting again, and all what I wrote happened again and again and again, What now? Can someone kindly help me ??please??
[Xiaomi Mi A1 Guides, News, & Discussion] Jack_Bristow:
You will use to install in twrp.
[Xiaomi Mi A1 Guides, News, & Discussion] woody4165:
Ciao [MENTION=655944]ghale[/MENTION] and all!

I haven't found a post to follow to upgrade from Jan patch to latest (march).

I'm having issues applying the OTA with Magisk following the guide on first page, I alway get an error and step 1 does not complete.

So there is a way, if I understood right, to upgrade via fastboot image to Feb and the applying the march patch via OTA.

Are these steps the correct ones?

1 - remove completely Magisk and all modules (I have also Xposed, I think I have to remove it also, or I can leave it?)

2 - reboot and install fastboot image via XiaomiMiFlash (or should I use the .sh/.bat inside the fastboot zip?)

3 - reboot with updated rom and now get the march patch via OTA

4 - unlock bootloader (if locked) and get root via Magisk like the first time and like in first post (in this case I should select the patched boot image you posted, correct?)

Is it correct?

Thanks all
[Xiaomi Mi A1 Guides, News, & Discussion] drshafi01:
Hi, i am on nougat 7.1.2 rom with December update. Magisk & twrp recovery installed. Now i downloaded march update but when i am going to install it, it takes me to twrp recovery after that nothing happens. Please tell me how can i update & after update my root is works or not?
[Xiaomi Mi A1 Guides, News, & Discussion] tigerija:
After I write fastboot oem unlock into PowerShell I get this:

gyazo.com /62edf7fcb51d37ef59d980eb6b53d852

Remove space after gyazo.com. Was not able to post a link.

Never did this before. Read a lot about it, and watched lots of tutorials and did not see others having this issue.

Can anyone help? Thanks.
[Xiaomi Mi A1 Guides, News, & Discussion] Elcio96:
Root Xiaomi Mi A1 with april update

Can someone send me a link or anything like a tutorial,video etc teaching how i can root my phone . I' ve tried Xiaomi Mi A1 tool but could'nt initiate twrp afger fastboot.
[Xiaomi Mi A1 Guides, News, & Discussion] woody4165:
Hi all

These are the steps I've done to update manually reinstalling the rom without loosing any app, I was on the Jan patch.

- Downloaded the march patched image (see first post). Unzip, will use later.

- Downloaded the Feb rom starting with "tissot_images_V9.5.4.0......" you can find in this thread

- Unzipped and executed the command flash_all_except_storage.bat/.sh

- Now the rom is stock, unrooted and with locked bootloader

- Started the rom and made the OTA update to march.

- Installed the latest Magisk Manager (see first post)

- Restarted the phone in fastboot mode and send the command "fastboot oem unlock" and "fastboot boot march_patched.img"

- the phone rebooted and now my issue

The issue now is that when I open Magisk Manager I cannot install Magisk in direct mode, as written in the first post, since it seems that it's already installed and I have only the Uninstall choice.

What can I do to install Magisk?

Thanks!
[Xiaomi Mi A1 Guides, News, & Discussion] ngohoainam:
When your phone finished restart can u turn on wifi? if u can not so your issue is the same with mine. my resolution is using cellular data to download and install magisk :) after install magisk and restart, my phone is rooted :)

hope this info can help you :)
[Xiaomi Mi A1 Guides, News, & Discussion] 90180360:
Edit: Fixed itself.
[Xiaomi Mi A1 Guides, News, & Discussion] woody4165:
Thanks [MENTION=7815628]ngohoainam[/MENTION]

That's probably going to resolve my issue, I forgot that probably I read something about it.

Now, though, I've done again all the steps and I'm stuck at Feb patch, I don't get the march one.

I've tried with installing new beta Google Play Services, clearing/deactivating/reactivating Google Service Frameworks, but no March update.

I'm really tired that to get a simple security update (even with a stock ROM) there is so much trouble.

Never had this with my previous Xiaomi phone with Lineage OS.

Thanks again.

PS: How and when can I install TWRP ?

I've tried after Magisk, but then I get TWRP and no Magisk anymore
[Xiaomi Mi A1 Guides, News, & Discussion] fijea:
Hey guys, just wanna share something I did to my gf's A1.

Just in case anyone stucked in a bootloop after applying OTA update.

I think the problem lies within updating OTA without flashing the patched_boot.img from the latest security update.

Please note I did this on a Windows, but I think it should also work on a Mac.

Enter Fastboot Mode.

Turn off your A1 by holding down Power + Vol. Up button & connect it to your PC / Mac.

(if you find a dead android image then hold Power + Vol. Up and select restart bootloader)

Download the fastboot image from here.

(in my case the file name called tissot_images_V9.5.9.0DHMIFA_8.0)

Extract the file and locate flash_all_except_storage.bat (.sh for Mac) inside the folder to keep your data safe.

Double click on it & your A1 should be unrooted & locked.

To reapply root, follow the guide on first post, but only using the patched_boot.img from march security update.

Hope this helps.
[Xiaomi Mi A1 Guides, News, & Discussion] woody4165:
Very similar to one of my previous post, but more detailed.

What about custom recovery?

What about the fact I'm stuck to Feb without receiving the March update, after trying to apply it several times?

Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] realtebo:
You can Simply flash the new March fastboot rom. The reroot and reunlock

Actually i did this and i have no problem, but I have not twrp installed..
[Xiaomi Mi A1 Guides, News, & Discussion] woody4165:
Thanks [MENTION=5005976]realtebo[/MENTION]

I haven't found the March fastboot ROM, where can I find it?
[Xiaomi Mi A1 Guides, News, & Discussion] realtebo:
http://en.miui.com/download-333.html
[Xiaomi Mi A1 Guides, News, & Discussion] TheBigBoom:
Hey guys, got a Mi A1 recently and will be putting magisk on it in the coming days. I have a question I can't find a definite answer of - my phone is currently still on Nougat, so I'll be updating it all the way to the March update. Now, when i get to installing magisk after booting with the patched boot do I do direct install, or install in second slot (as it says second slot is after ota, but I'm not sure if that's after ota in general or only if you've gone the route of restore images -> download update -> install in second slot -> reboot to apply update)? And will the phone brick if i do the wrong one?
[Xiaomi Mi A1 Guides, News, & Discussion] tigerija:
I did all the steps but when I check my root with Root Checker it says its not rooted.

Anyone has any idea?

Is there another way to know?
[Xiaomi Mi A1 Guides, News, & Discussion] woody4165:
What do you see in Magisk, is all green?
[Xiaomi Mi A1 Guides, News, & Discussion] Bennybtc:
Hey, what should we do if the next OTA update is based on oreo 8.1.0?

Is the guide for OTA still works?

Or we should uninstall magisk completely and wait for another method?
[Xiaomi Mi A1 Guides, News, & Discussion] Luksy78:
I successfully applied this, thanks.

Just have a question regarding OTA updates. What will happen when April update comes out? Should i just download it and update my Mi A1 or what? How does that work?
[Xiaomi Mi A1 Guides, News, & Discussion] Amanpreetsingh:
Same question
[Xiaomi Mi A1 Guides, News, & Discussion] pantezuma:
Recently I updated from Nougat to Oreo (March update) following the guidelines in Magisk thread. No problems at all.

Guess same would be applicable to update from 8.0 to 8.1
[Xiaomi Mi A1 Guides, News, & Discussion] thepandas:
I followed these step but whenever double click on flash_all_except from the folder windows open 'open with' dialog box, hence unable to proceed furthur..

Can anyone help me with this, yes i know that we flash through mi flasher, but i wanted to try with above method only...

thanks in advanced..
[Xiaomi Mi A1 Guides, News, & Discussion] woody4165:
Instead of double click, try to open a CMD and then go to the folder that contains the ROM with the .bat

Then execute the command from there.

You need to have also fastboot.exe in the PATH or in the same folder.
[Xiaomi Mi A1 Guides, News, & Discussion] Nollog:
Have any of you had the phone fail safety net randomly like every 2 or 3 restarts?
[Xiaomi Mi A1 Guides, News, & Discussion] gillesiviera:
Is it possible to lock the bootloader after this procedure?
[Xiaomi Mi A1 Guides, News, & Discussion] AsusGhost:
Hello, I have followed your guide (Root+Magisk) and installed Xposed framework, as a Magisk module, along with 5 Xposed modules.

Pls note that right after Xposed installation, Magisk did't pass the SafetyNet test, but when I installed the Xposed module "No Device Check" I got inconsistent results from Magisk SafetyNet Checker vs two apps: i.e Root & SafetyNet Test + SafetyNet Attest; see attached screenshots.

I wonder now:

1) When the next OTA will arrive, will be enough for me to apply the procedure described here?

2) Shall I remove Xposed and the related modules before applying OTA?

3) Should OTA be not installable since some system file/setup has been changed by Xposed, what shall I have to do in order to reset my MIA1?

I look for advise now.

Thanks and regards
[Xiaomi Mi A1 Guides, News, & Discussion] ngohoainam:
1. just follow the guide at 1)

2. u dont need to remove Xposed and related module
[Xiaomi Mi A1 Guides, News, & Discussion] yashj9:
April patch boot image plz, im on bootloop need the file.

Edit: solved by flashing stock march update.
[Xiaomi Mi A1 Guides, News, & Discussion] Luksy78:
Has someone tested this? Is this enough to apply the April OTA update without any issues?
[Xiaomi Mi A1 Guides, News, & Discussion] Siebenmik:
Use this if you are ALREADY on April 1st security patch.

https://dumpshare.net/6332468patched_boot.img
[Xiaomi Mi A1 Guides, News, & Discussion] killerhorse:
Doesn't Work for me. When an update is available I have to install the original fastboot image before istalling the update. Otherwise the update faills.

Gesendet von meinem Mi A1 mit Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] Luksy78:
Have you been able to fix your bootloop problem? We need feedback guys, otherwise this will just turn into more of a ****show.
[Xiaomi Mi A1 Guides, News, & Discussion] yashj9:
Yes , sry forgot to edit that, its all well now , recovered from bootloop by flashing stock march update, then updating it to april and then flashing patched boot image of april to gain root :)
[Xiaomi Mi A1 Guides, News, & Discussion] arturo181991:
April OTA

Hi, thanks for this guide, just now I have a notification about April OTA, I download it but when it begins to install say Error, how can I install it? thanks bro
[Xiaomi Mi A1 Guides, News, & Discussion] pantezuma:
Same situation. Error when start installing after download.
[Xiaomi Mi A1 Guides, News, & Discussion] bruceas:
Is there patched boot.img for April?
[Xiaomi Mi A1 Guides, News, & Discussion] Bennybtc:
Please provide feedback to rest of us, how do you guys update to april security patch :)
[Xiaomi Mi A1 Guides, News, & Discussion] szpelon:
Anyone knows how to update?

I cant update using Magisk or without.
[Xiaomi Mi A1 Guides, News, & Discussion] 90180360:
> ROOT MI A1 (OREO 8.0) without disabling ota with magisk

Without disabling ota they said...

Anyone have a stock boot.img from March?
[Xiaomi Mi A1 Guides, News, & Discussion] Shashwat Xtremezs:
April Patch File

When We Gonna Have April Patch File As April Security Update Is Available Now.....?
[Xiaomi Mi A1 Guides, News, & Discussion] turoskym:
patch it through magisk
[Xiaomi Mi A1 Guides, News, & Discussion] yadavdharmendar:
Need patched_boot.img for April security update

That has just arrived

#request
[Xiaomi Mi A1 Guides, News, & Discussion] kyrillos13:
Here it is (April's patched boot.img)
[Xiaomi Mi A1 Guides, News, & Discussion] -vpa:
Updated to April 2018 security OTA, still no problems, so all OTA's (3? I don't remember) worked correctly from the beginning - page 1.
[Xiaomi Mi A1 Guides, News, & Discussion] Bennybtc:
What do you mean?
[Xiaomi Mi A1 Guides, News, & Discussion] sgr2sagar:
April Boot.img file

where to find patched boot img file for April 2018?
[Xiaomi Mi A1 Guides, News, & Discussion] symbianvn:
Thanks, it work for me.

How can I make a patched boot? Please guide :)
[Xiaomi Mi A1 Guides, News, & Discussion] mandar1997:
thanks man passed safety check keep it up :D
[Xiaomi Mi A1 Guides, News, & Discussion] solocesarxd:
Me too
[Xiaomi Mi A1 Guides, News, & Discussion] solocesarxd:
After installing successfully magisk root with the instructions. I cant install modules from magisk manager. It says /data/magisk isn't setup properly. Atm i am using the root for adaway. And things like that
[Xiaomi Mi A1 Guides, News, & Discussion] goofball2k:
You may have forgotten a step. Within Magisk Manager, click on Install and select Direct install. Reboot after that is done. Then try adding modules. I had it fail the first time but then it worked afterwards.

Here's a test. If you click on Safety Net check, do you pass right now? I failed before I did the direct install and rebooted. Now i'm passing.
[Xiaomi Mi A1 Guides, News, & Discussion] Leonhart9907:
Well its simple for those who get stucked at AndroidOne logo or bootloops. Its caused by some modules or root thingy from the previous version that is 7.1.2 Nougat ... well i was totally dumb at this but i just took my time to backup my important stuffs and then i flashed the 7.1.2 Nougat 1st December OTA Fastboot rom with the MiFlash Tool and choosed the Clean & Relock option. And took my time to update it to the 2nd December OTA and then after updated it to Android O using the System updates .... after a clean and fresh Oreo installed ... i just did exactly as the post instructions (and of course reading some of the comments posted for further clear instructions) and then it worked very well without any error.

P/S : Knowing my current slot is on boot_a ... i used the command "fastboot flash boot_a patched_boot.img" and it worked like magic.

So i don't know how some of you guys have problem with both the commands with boot_a or boot_b in it or without it.

TO ANYONE THAT IS READING ON FOR FURTHER INFO BEFORE DOING THIS .. TAKE ADVICE FROM ME

GO AND BACKUP ALL YOUR STUFFS THEN FLASH A CLEAN LATEST NOUGAT OTA FASTBOOT ROM WITH MIFLASH AND THEN PATIENTLY UPDATE IT TO THE 2ND DECEMBER OTA AND ALL THE WAY TO ANDROID O... THEN COME BACK TO THE POST AND FOLLOW EXACTLY WHAT ITS INSTRUCTED. THATS WHAT I DID :) (sorry for caps)
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Please update your instructions or title as by flashing patched boot.img you break OTA updates (step 11) and Magisk can't be uninstalled (there is nothing to restore). You have to flash stock boot.img to apply OTA.
[Xiaomi Mi A1 Guides, News, & Discussion] GugntLEE:
update: I got it, just use cmd in the same folder with the .img file. It's successfully rooted!

hi, in step 4, where's the fastboot folder located? :confused:

btw, I've unlock the bootloader
[Xiaomi Mi A1 Guides, News, & Discussion] goofball2k:
Whereever your fastboot.exe file is.
[Xiaomi Mi A1 Guides, News, & Discussion] jashancheema:
No ota working with this trick
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Let's wait for next OTA update, we'll see ;)
[Xiaomi Mi A1 Guides, News, & Discussion] jashancheema:
Hehe ,?????
[Xiaomi Mi A1 Guides, News, & Discussion] rishabhjain1996:
slow camera launch speed

after successfully rooting , all my apps that require camera( camera app, snapchat, etc) take around 5-10 sec to launch camera interface. however they worked fine before rooting.

any fix?
[Xiaomi Mi A1 Guides, News, & Discussion] mrchrister:
You can fix this by using the selinux permissive module in magisk
[Xiaomi Mi A1 Guides, News, & Discussion] mattcode:
Does Magisk Hide support the Barclays and Pingit apps?
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
It should. I've tried it successfully with my banking app.