yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] nilkanth.marshiwane:
Yes, you can install ota with unlocked bootloader. No problem at all, but you must have unmodified system with stock boot image. Unlocked bootloader didn't hinder ota.

---------- Post added at 04:25 AM ---------- Previous post was at 04:21 AM ----------

Systemless adaway not working. It modifies system host files, means ota fails to install. Ota not working even with magisk root.
[Xiaomi Mi A1 Guides, News, & Discussion] kobe4rings:
How do I update to the latest OTA with magisk installed ? It gives me a "installation error" when I try and update to november security patch
[Xiaomi Mi A1 Guides, News, & Discussion] cyrilva:
i have received nov patch. but when i tried to restore stock boot in magisk, its throwing error stock backup doesn't exist. please help
[Xiaomi Mi A1 Guides, News, & Discussion] rodsayd:
EDIT: Guys, it worked for me. You have to be on stock recovery and just follow the steps on OP. I had magisk installed with the xposed module and the Magisk A1 module installed, and was also using gravity box. Still I enabled Core Only and it worked.

Ok so here's the steps I took to update to Nov Patch. I don't have TWRP installed (I just BOOT into it to flash Magisk), but I did have magisk with a few modules just like OP said.

1- Enter to Magisk and enable "Core Only" and "Magisk Hide", then reboot.

2- Enter Magisk app and tap safety netcheck and make sure it's passed (two green ticks).

3- Download and install OTA, reboot.

4- After this, I had lost root so I followed steps on first post again-- Boot to TWRP, flash magisk again, and voila!

Rooted and with OTA's-
[Xiaomi Mi A1 Guides, News, & Discussion] sednafx:
I have followed these steps however I am not getting the November update notification. I am on Oct 1 update still. I manually check and it says "up to date". I have checked safety net and all is well....

Anyone have thoughts on how to force the download?

Edit. I'm in the USA on AT&T.

Update: It appears to be tied to my google play account. I factory reset and skipped the google account and was able to install the November update. I may remove my account and clear the app cache a test again for the next update.
[Xiaomi Mi A1 Guides, News, & Discussion] ramiwi:
It doesnt work for me (enabled "core only" and "magisk hide", also removed magisk module "a1 tweaks v1.2"). My update size is 466.9MB. After download finished it says "Couldn`t install system update".
[Xiaomi Mi A1 Guides, News, & Discussion] rodsayd:
I don't know how to force it really.

You have to be on stock recovery, did you pass safety net check? You have to enable core and reboot of course, for it to take effect.
[Xiaomi Mi A1 Guides, News, & Discussion] ramiwi:
I did pass safety net check, not sure about recovery. I followed this guide so only booted to twrp without flashing but when trying to enter recovery im getting "no command".
[Xiaomi Mi A1 Guides, News, & Discussion] cyrilva:
Thanks worked perfectly for me
[Xiaomi Mi A1 Guides, News, & Discussion] Dr Grato:
I failed. Followed all the steps. ?
[Xiaomi Mi A1 Guides, News, & Discussion] ventuss:
Try what has been suggested in this post https://xdaforums.com/showpost.php?p=74591883&postcount=39. I had the same issue and after flashing system and boot, November update did installed smooth.
[Xiaomi Mi A1 Guides, News, & Discussion] Dr Grato:
U flashed the system.img and boot.img through twrp or fastboot? And, if through fastboot, do u unroot first then flash or u keep ur root and twrp and flash through fastboot?
[Xiaomi Mi A1 Guides, News, & Discussion] ventuss:
I uninstalled Magisk, restoring original boot, but I was not able to install the update. Afterwards I have removed magisk manager and via fastboot flashed both system.img and boot.img for both partitions, then OTA installation went fine.
[Xiaomi Mi A1 Guides, News, & Discussion] Dr Grato:
Restoring original boot is automatic after uninstall magisk right?
[Xiaomi Mi A1 Guides, News, & Discussion] brajesh.sharma87:
You have stock boot image of October update? if yes please upload
[Xiaomi Mi A1 Guides, News, & Discussion] RavinduSha:
I was able to force update my device by Clearing data of "Google services framework" app and "Carrier services" app. Then checked for update.
[Xiaomi Mi A1 Guides, News, & Discussion] ventuss:
[/COLOR]

Yes, if you select this option during magisk uninstall
[Xiaomi Mi A1 Guides, News, & Discussion] ltf_195:
Thanks, I'm able to received update.
[Xiaomi Mi A1 Guides, News, & Discussion] asparaz43:
Can not alternatively use the magisk zip uninstaller before the ota?
[Xiaomi Mi A1 Guides, News, & Discussion] nikkpap:
Magisk and latest OTA

Hi I want to ask how can I update to the latest OTA November do I have to do a complete re flash rom or I can do it on the fly

Let's say by uninstall magisk etc can anyone help

My device pass the safety net
[Xiaomi Mi A1 Guides, News, & Discussion] Devansh Bhinde:
Stuck here after restoring stock boot image.
[Xiaomi Mi A1 Guides, News, & Discussion] Miky28:
I had to flash rom 7.10.30 with....

flash_all_except_storage.bat*– Flash new ROM and save all personal data on your phone.

Than I can update.
[Xiaomi Mi A1 Guides, News, & Discussion] wfonz:
Hi, I'm on stock november updated rom, can i follow this guide anyway?
[Xiaomi Mi A1 Guides, News, & Discussion] killed2:
I just did it yesterday on November update, but I only installed Magisk, no xposed
[Xiaomi Mi A1 Guides, News, & Discussion] Nidhin@xda:
Bro please tell me the steps I'm on November update still not rooted....i didn't understand the op instructions..

Sorry for the bad English..
[Xiaomi Mi A1 Guides, News, & Discussion] proinsias:
After November update and new flash of magisk it's OK. Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] asparaz43:
Download zip twrp 3.1.1.1 img and put it in the fastboot adb folder on the pc and rename it to recovery.img, download magisk 14.4 and put it in the phone's memory. Enable debug usb connects the phone from the terminal by the command fastboot boot recovery.img From twrp flash zip magisk and reboot ;)
[Xiaomi Mi A1 Guides, News, & Discussion] Nidhin@xda:
That's it.. rooted..?
[Xiaomi Mi A1 Guides, News, & Discussion] asparaz43:
Yes! It works AdAway, titanium backup, Nova double tap to turn off the screen etc. etc :good:
[Xiaomi Mi A1 Guides, News, & Discussion] Nidhin@xda:
One more does bootloader unlocking will erase my data ?
[Xiaomi Mi A1 Guides, News, & Discussion] DeV91:
AdAway messes with system/etc/hosts (even tho it says systemless in settings).. i wouldnt use that if you want to keep getting OTAs

source: wasnt able to update to november patch (uninstalled magisk restored stock boot and hosts file was still modified)
[Xiaomi Mi A1 Guides, News, & Discussion] goofball2k:
No, it doesn't erase your data
[Xiaomi Mi A1 Guides, News, & Discussion] super jet 100:
If i turn off sensor buttons backlight by changing brightness to 0 in /sys/class/leds/button-backlight folder will get an OTA update when I change it back to default value ?
[Xiaomi Mi A1 Guides, News, & Discussion] yuoip:
I'm having a problem with this procedure. I just receive a new Mi A1 that shipped with the August update already installed. So, I let it apply the 1 GB Nov. update. Then I unlocked the bootloader per the instructions. The command

fastboot oem device-info

correctly showed the bootloader as unlocked. Rebooted. Flash screen shows as "unlocked." However, after the reboot the A1 I proceeded to try to boot into recovery.img. I could boot to the bootloader successfully and the command

fastboot devices

correctly reports the A1. However, all other fastboot commands fail, including these:

fastboot oem device-info

fastboot boot recovery.img

fastboot reboot

I can only reboot with a long press on the power button.

Did the November update break this method?

Any suggestions?

Nevermind. Figured out that phone needs to be physically reconnected after every boot.
[Xiaomi Mi A1 Guides, News, & Discussion] yuoip:
So, now I have my first bootloop. I unlocked the bootloader and then did:

fastboot boot recovery.img

to load TWRP. I then installed magisk 14.4 which seemed to complete successfully. However, when I rebooted it went into the bootloop. I cannot boot to recovery mode. It give a "no command" screen. Although I can boot into fastboot, the only command that works is

fastboot devices

These commands all fail:

fastboot oem device-info

fastboot reboot

fastboot boot recovery.img

In all cases the commands fail with this message:

FAILED (command write failed (Unknown error))

I tried to flash the stock rom, but when I tried to run MiFlash-2017-7-20 install command windows popped up an error that that program cannot be installed on my computer. I assume that is because my windows 10 installation is 32-bit while the program is 64-bit, but it doesn't actually say that.

It looks to me like the bootloader is damaged or missing. How can I recover from this?
[Xiaomi Mi A1 Guides, News, & Discussion] barnumbirr:
This is strange. After installing Magisk 14.5 while still following your tutorial the Play Store app on my phone is broken (get an error code 0 while trying to install or update apps) and some apps stopped working (Facebook, Twitter and a few others). Anybody else run into the same issues?
[Xiaomi Mi A1 Guides, News, & Discussion] ves626:
I'm having similar problem, the phone freezing itself very often, cause of the crashing apps :/
[Xiaomi Mi A1 Guides, News, & Discussion] barnumbirr:
Maybre try this: https://xdaforums.com/showpost.php?p=74652203&postcount=92

using this: bigota.d.miui.com/7.11.18/tissot_images_7.11.18_20171117.0000.00_7.1_3ac9b1f856.tgz

Apps don' crash anymore, Play Store works again but I've lost root/Magisk. Can't seem to reinstall Magisk as trying to install a module states that Magisk is not activated.

It's not the perfect solution but at least my phone works reliably again. I'll try to figure out the issue with Magisk and post here if I find anything interesting.
[Xiaomi Mi A1 Guides, News, & Discussion] ves626:
Unfortunately even after this method the apps are still crashing :(

It lags like a hell and I've noticed, that this problem happens in times when the phone has around 500mb of free RAM and CPU is under 50%....

LogCat shows repeatedly something like that: ,,Scheduling restart of crashed service com.google.android.apps.messaging/com.google.android.ims.service.JibeService in 272683ms" with lots of different apps...

I have no problem with Magisk(1456) and systemless Xposed, it works well on my device.....
[Xiaomi Mi A1 Guides, News, & Discussion] Amfakh:
anyone have stock boot img for november update?
[Xiaomi Mi A1 Guides, News, & Discussion] Dr Grato:
Anyone can gelp whats wrong with this?
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
I had this issue as well, probably caused by corrupted magisk.img (some modules seem to cause this, but not always). The only thing which helped me was to boot into TWRP, flash Magisk uninstaller, flash Magisk and set it up again from scratch.
[Xiaomi Mi A1 Guides, News, & Discussion] Dr Grato:
I tried to flash uninstaller but the system cant be mounted. Hurmm
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
There is no reason to mount the system, everything related to Magisk is on data partition. Use the latest version of uninstaller from the official Magisk thread.
[Xiaomi Mi A1 Guides, News, & Discussion] Dr Grato:
I tried but it said cant mount system. I dont know. Tried to tick the mount system option but it revert back to unmounted system.
[Xiaomi Mi A1 Guides, News, & Discussion] vickth:
[MENTION=494678]ilpanos[/MENTION] Should I install the exact version of magisk in your tutorial (Magisk-v14.4-20171103-073038), or can I install the latest Magisk-v14.5-20171106-074848 version?
[Xiaomi Mi A1 Guides, News, & Discussion] sipollo:
For me magisk 14.4 works perfectly, while with magisk 14.5 i couldn't install any module (error extracting zip file)
[Xiaomi Mi A1 Guides, News, & Discussion] wulfe13:
Magisk 14.5 is working fine on mine
[Xiaomi Mi A1 Guides, News, & Discussion] Andromeduh:
Question - if I already installed this can I lock my bootloader again?
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
No. You can relock bootloader only if you have stock system and boot partitions. Magisk installation modifies boot image and hence you can't lock the bootloader.
[Xiaomi Mi A1 Guides, News, & Discussion] Andromeduh:
But I'll still get OTA right?
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Yes, but once you receive the OTA, you'll need to restore the stock boot image, otherwise it will fail to install. You can check detailed instructions with explanation on the official Magisk page, particularly "device with A/B partition" section.
[Xiaomi Mi A1 Guides, News, & Discussion] Andromeduh:
Got it buddy. Thanks a lot for the response! Been a while since I tinkered with my phone since my previous devices (6P and Note 5) worked fine on my workload but I kinda missed the stellar camera quality from 6P so I have no choice but to root it. Now I'm a happy camper!
[Xiaomi Mi A1 Guides, News, & Discussion] sniek:
I'm on the latest update (6nov) and when I install magisk (14.4 or 14.5) via bootable twrp 3.1.1-1 everything seems to be fine, but for some reason my A1 can't find any wifi networks anymore. When I reset to stock I can see wifi networks again. Any advice?
[Xiaomi Mi A1 Guides, News, & Discussion] nikkpap:
Anyone who made a success with adaway or other adblock and update the ota too
[Xiaomi Mi A1 Guides, News, & Discussion] myblessayu:
Hi,

I rooted my A1 using with AIO tool using TWRP and SuperSU. How to undo that root and root using Magisk?
[Xiaomi Mi A1 Guides, News, & Discussion] cyberangel22k:
The december update has rolled out. Can I clarify the process of updating without losing OTA?

1. Uninstall/disable modules.

2. Uninstall magisk using magisk manager to restore stock boot.img.

3. Download and apply update.

4. Reboot.
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
1. not needed

2. yes

3. yes

4. install Magisk to the second partition

5. reboot

More info here.
[Xiaomi Mi A1 Guides, News, & Discussion] cyberangel22k:
Thanks for the info.
[Xiaomi Mi A1 Guides, News, & Discussion] Aman301582:
I used this method but updates still fail.
[Xiaomi Mi A1 Guides, News, & Discussion] pradhyu69:
Done that still installation failed
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Have you mounted system as R/W even once? For example in TWRP, while modifying build.prop, etc.?
[Xiaomi Mi A1 Guides, News, & Discussion] pradhyu69:
I haven't installed twrp just boot into it and installed magisk.

Installed xposed and gravity box,Systemless magisk modules for gcam.

Once i installed DPI changer app and changed DPI but after that i unistalled it.
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
When you first start TWRP, it asks if you want to allow mounting system as R/W. You must swipe screen to confirm. If you don't pay enough attention to the warning, it's quite easy to enable system R/W mounting. Xposed was systemless or the standard one?
[Xiaomi Mi A1 Guides, News, & Discussion] pradhyu69:
When i boot into twrp from fastboot it didn't ask for system r/w it just started from main menu.

And i installed xposed from magiskmodule. Which is systemless i think.
[Xiaomi Mi A1 Guides, News, & Discussion] cyberangel22k:
I'm updating to december security patch and it fails installing at step 1. I did not touched the system. All my modules are systemless. I find it also weird that when I pressed restore stock boot image, it's instant like less than 2 secs. Is that how fast to restore stock boot image?
[Xiaomi Mi A1 Guides, News, & Discussion] pradhyu69:
Samething with me..i am done trying. I'll flash oreo fastboot when it available.:)
[Xiaomi Mi A1 Guides, News, & Discussion] Rakibboss:
is it gonna work for oreo?i mean ota.
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Try to reflash system and boot image from November ROM and apply OTA again. If it fails, I've read reports of success with flashing October ROM and update via OTA from there (will be about 1gb big). Or just wait for a full December ROM and flash it when available.
[Xiaomi Mi A1 Guides, News, & Discussion] STEKAM:
when you have the full December rom , how do you flash ? MiFlashTool, ADB Sideload, TWRP...
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
ADB sideload is for OTA updates, but this feature is broken on this phone.

TWRP probably can flash stock images, but never tried it.

MiFlash is only GUI for fastboot commands as far as I understand, haven't used it. But you can follow the official guide.

Which leaves us with manual flashing. Unpack the ROM and run "flash all except storage.bat" (I remove OEM unlock and lock from the script first). This way I know what's going on and if there are any issues during the process.
[Xiaomi Mi A1 Guides, News, & Discussion] Apih95:
Do i need to uninstall all the module in magisk ? Currently i have A1 tweak and xposed-magisk. The right procedures would be

1.uninstall all magisk module including xposed-magisk?

2. Magisk manager-uninstall>restore boot image but not reboot it yet?

3. Apply ota update, once its starting step 2 install magisk back assume currently a slot then install on second slot which is b?

4.ota finish update then reboot ???
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Go through this guide, or just flash November boot image from fastboot, apply OTA, install Magisk again from TWRP.
[Xiaomi Mi A1 Guides, News, & Discussion] pradhyu69:
Nahh..Now I'll wait for oreo update then only ill flash
[Xiaomi Mi A1 Guides, News, & Discussion] Apih95:
Mine is not working. Just now flashed November fastboot rom with saved user data option. I cant seem to apply ota , update failed. Im so clueless right now. Or do i have to wipe system data etc in twrp and flash November rom again?
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
That's strange. I wouldn't wipe anything with TWRP. Just wait for December fastboot ROM, this is probably the safest way how to update the system.

Stock boot is automatically backed up during Magisk installation into /data/stock_boot_hash.img.gz. If it's not there, reflash boot.img from November fastboot ROM.
[Xiaomi Mi A1 Guides, News, & Discussion] sachin273:
Can somebody give a direct download link to Mi flash tool? i dont want to register at that site only for this....
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
I have just tried 5 different sites hosting Mi Flash tool, none of them required registration.
[Xiaomi Mi A1 Guides, News, & Discussion] myself379:
I get the same problem as yours, I manage to make the OTA work by flash 1st October patch instead. Follow here https://xdaforums.com/showpost.php?p=74790371&postcount=83

but now since the ROM is out, I guess get from there is better.

p/s: Malaysian? :respect:
[Xiaomi Mi A1 Guides, News, & Discussion] sachin273:
I was referring to the official site not host sites. I would like to ensure that i get the official version and i requested here because many are likely to have it already.

By the way thank u very much for the very helpful reply. it's usefulness would have further degraded if you had quoted one of the sites you took the trouble to visit to prove your point.:good:
[Xiaomi Mi A1 Guides, News, & Discussion] tinyXperia:
First link when you google 'mi flash tool'

http://en.miui.com/thread-345974-1-1.html, downloads without login
[Xiaomi Mi A1 Guides, News, & Discussion] sachin273:
Thanks a lot for your prompt reply. The description says version 6.x.x. I am downloading right now to check. Do you guys really believe i would ask without googling:o

The fact is, it is not a crime if i am. this is a forum thread tagged 'Guides, News and discussion', not development is it?

I do not mean to offend you at all and this comes straight from my heart trust me. u at least gave a link.

PS: i downloaded the tool meanwhile but it says a newer version is already installed. this newer version happens to be one of those i downloaded earlier today (before posting here) and happens to be older that that quoted in op...
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Official site doesn't require an account as well. Maybe if you would share your non working link, I would bother to paste mine. People on XDA probably won't bother with useless GUI wrapper which only runs fastboot commands located in the ROM image.

Long story short, UTFG.
[Xiaomi Mi A1 Guides, News, & Discussion] sachin273:
Long story short: U R talking through your hat.

This is the only version of the story. i wouldnt bother replying further.

For your info: if u click the link to the stock rom in op u are directed to a thread on the same site but here they do ask for resistering (under flashing guide-link to the mi flash tool)

And i may or may not use the fastboot commands, its my choice, inability, laziness whatever u may like to call it.

Help if u can, dont bother if u cant or dont want
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Yeah, you should probably learn to use the Google first. http://bfy.tw/FWUw. First link, official page, no registration, took less than a minute to find it. You're welcome.
[Xiaomi Mi A1 Guides, News, & Discussion] jigs4wkiller:
Does anyone know a miflash tool alternative for Linux?

I know that most things also work with Fastboot but it is sometimes very annoying.
[Xiaomi Mi A1 Guides, News, & Discussion] Apih95:
Lol malaysia can what ? Sorry for my bad english :eek:
[Xiaomi Mi A1 Guides, News, & Discussion] Displax:
Use fastboot directlty, just unpack this tools to "tissot_images_7.12.7_7.1" folder and run "flash_all.sh". Nothing complicated.

https://developer.android.com/studio/releases/platform-tools.html
[Xiaomi Mi A1 Guides, News, & Discussion] proinsias:
Unfortunately this time the update does not work. It downloads but does not install. Why was it that until the November update I had no problem? The only difference is that a few days ago I installed the Play Services beta taken from apkmirror to overcome battery drain problems.
[Xiaomi Mi A1 Guides, News, & Discussion] Abudinka:
same here, tried applying like posted in the tutorial linked in the thread post. didnt work, magisk got uninstalled along the way and safety net passed, but cts profile false ATM, altough hope there wont be trouble with upcomming oreo upgrade, maybe its a bad rom

edit: i installed magisk after nov ota
[Xiaomi Mi A1 Guides, News, & Discussion] laogiacodai:
After Dec Updated, Magisk got uninstall. I must flash again from TWRP
[Xiaomi Mi A1 Guides, News, & Discussion] wakhaiha:
I had follow the step carefully. however i stuck at this step:

After flashed Magisk via TWRP and boot to rom, i couldnt find magisk installed in my system. I using Magisk 14.5 and my device is up to date (December patch)
[Xiaomi Mi A1 Guides, News, & Discussion] laogiacodai:
So try to install the app?
[Xiaomi Mi A1 Guides, News, & Discussion] wakhaiha:
Do I need to manually install the magisk manager apk after flash magisk from TWRP? I am little bit confuse with the step, it said

i thought magisk manager app installed together during the flash.
[Xiaomi Mi A1 Guides, News, & Discussion] laogiacodai:
You should try to install the app to see how
[Xiaomi Mi A1 Guides, News, & Discussion] wakhaiha:
Thanks. I installed the manager, and it shows magisk 14.5 were installed. Thanks again:good::)
[Xiaomi Mi A1 Guides, News, & Discussion] proinsias:
I installed magisk 14.5 and magisk manager 5.4.3 but the update of December fail during installation
[Xiaomi Mi A1 Guides, News, & Discussion] babarafa:
If i have updated my mi a1 with the december update. can i still use this?
[Xiaomi Mi A1 Guides, News, & Discussion] dbgt:
why you recommend only booting (and no flashing) twrp?? Does it affect safetynet??
[Xiaomi Mi A1 Guides, News, & Discussion] manan001:
Because twrp is still not stable.
[Xiaomi Mi A1 Guides, News, & Discussion] barnumbirr:
Something strange: since installing Magisk 14.5 by following the instructions in this thread, I don't get OTA updates anymore. I'm stuck on november security update, have tried checking for updates manually, rebooting the phone and even clearing Google Framework service data but still won't work. Any ideas?