yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] xivay:
You've to remove twrp in order to use this method.

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

What logic do you employ behind the success of this guide in incremental updation?
[Xiaomi Mi A1 Guides, News, & Discussion] Fusquinha77:
Unfortunately the method didnt work for me. Uninstalled Magisk restoring bootimage, uninstalled modules, restored bootimage again via fastboot, relocked bootloader, but update keeps getting "error to update".

Factory reseted and waiting for the update to show again.

If It doesnt work, will reflash factory image

Hope It works
[Xiaomi Mi A1 Guides, News, & Discussion] xivay:
I don't think you followed the guide correctly. Here it is :

https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips
[Xiaomi Mi A1 Guides, News, & Discussion] Fusquinha77:
Followed the guide exactly, step by step

Update got error after the download, in "step 1 of 2"

Went to fastboot and restored original bootimage

Error again

Went to fastboot and relocked bootloader

Error again

Uninstalled Magisk completely

Error again

Factory reseted the device

The update doesnt show anymore

Now waiting for it to appear again
[Xiaomi Mi A1 Guides, News, & Discussion] yashj9:
same problem here, any solution?

---------- Post added at 06:49 PM ---------- Previous post was at 06:36 PM ----------

Note: If you followed old method to root device just copy this in data folder then use below guide

which 'data' folder?? where? can u pls specify location more precisely? :confused:
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
I'm sorry, not sure if I understood the question correctly :)
[Xiaomi Mi A1 Guides, News, & Discussion] xivay:
Leave it [emoji849]

---------- Post added at 07:36 PM ---------- Previous post was at 07:35 PM ----------

Can you tell me the exact steps you took to update your device?
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Nothing special, several days ago I made a full flash of stock Oreo ROM with December patch, then I booted patched boot.img and installed Magisk. Today I received OTA update with January patch, so I restored stock boot image in Magisk manager, installed OTA, installed Magisk to second partition and rebooted (exactly the same steps as in Magisk guide). Next month I'll repeat the same steps to apply OTA again. And then again and again.. :D
[Xiaomi Mi A1 Guides, News, & Discussion] xivay:
[emoji106]
[Xiaomi Mi A1 Guides, News, & Discussion] yashj9:
what was the previous guide here with different commands for slots a/b? , can some one pls share its steps i need commands to flash, i m stuck on bootloop so ..
[Xiaomi Mi A1 Guides, News, & Discussion] maputi:
I have a question.In case of using your procedure to return to stock boot image ( Restore stock boot.img and then do it properly

1. fastboot flash boot_a stock_boot.img

2. fastboot flash boot_b stock_boot.img

3. fastboot boot patched_boot.img

4. install magisk manager

5. install magisk directly

6. reboot )

when OTA arrives and I follow steps of Magisk OTA installation tips - I assume I don't have to restore stock image in Magisk manager.Right ?
[Xiaomi Mi A1 Guides, News, & Discussion] mvinicius76:
Friends, i followed correctly the steps to root MI A1 and was good to me. When i tried to update the phone with january's OTA, something wrong happened in the proccess and the OTA's installation fails in step 1... I restored the boot image in magisk, like recomended in tutorial, but i didnt have sucess to install the update... Someone can help me?
[Xiaomi Mi A1 Guides, News, & Discussion] dgml14:
what is the command to flash the stock.img?
[Xiaomi Mi A1 Guides, News, & Discussion] rasputine:
1. get your current slot

fastboot getvar current-slot

if the result are _a, then your slot is a

if the result are _b, then your slot is b

2. unlock the bootloader

fastboot oem unlock

i'm sure you have unlocked bootloader, just checking

3. flash the img

fastboot flash boot_x yyyy.img

x is your slot (a/b)

y is your stock boot img's file name

4. lock the bootloader

fastboot oem lock

5. reboot

fastboot reboot

done
[Xiaomi Mi A1 Guides, News, & Discussion] IamSubhodeep:
Can't Install OTA, Help!

Here are the steps which I followed.

• Uninstalled Magisk from manager using the complete uninstall method.

• Rebooted phone.

• Disabled automatic updates from Developer options

• Tried to install update.

It says installation failed.

Maybe I've messed with the stock boot.img file. (I remember flashing a stock boot.img file from MIUI forum to restore my device. This was done way before I had rooted my device.) I've also tried to flash a stock boot.img file again hoping it will resolve my OTA problem. Didn't help.

Note: I have substratum installed with a theme applied.

Any help will be really appreciated.

Thanks!
[Xiaomi Mi A1 Guides, News, & Discussion] haripkm114:
After my January security patch update, on rebooting I lost my Root access as well as trying to boot using January Patched_boot.img keeps me stuck in the bootloader. Then I want to force shutdown and restart the device to use. Hence getting no root access. What to do ?
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
To apply OTA you always must have stock boot.img - either by flashing it manually or using Magisk OTA update procedure (restore stock boot image in Magisk manager, apply OTA, install Magisk to another slot).
[Xiaomi Mi A1 Guides, News, & Discussion] haripkm114:
I am also stuck at the same. Solutions ?
[Xiaomi Mi A1 Guides, News, & Discussion] afrizal87:
I don't have experience with installed TWRP, but it would be probably better to restore stock boot image manually. Next time don't install TWRP, only boot it when you need it. This way you can use Magisk OTA guide without issues.[/QUOTE]

How to restore boot image manually? Sorry man im completely noob for this

---------- Post added at 01:24 PM ---------- Previous post was at 01:23 PM ----------
[Xiaomi Mi A1 Guides, News, & Discussion] xivay:
fastboot boot x.img , where x is the name of your boot file
[Xiaomi Mi A1 Guides, News, & Discussion] starboyvivek:
Unable to intall Magisk

after fashing process when I install Magisk and tap install button, there is no option for direct install,just download zip and patch boot image option available.

I have unlocked my bootloader and flashed patched boot image from fastboot

Please help anyone
[Xiaomi Mi A1 Guides, News, & Discussion] Warlord_Link:
Okay it work can root, but I can't use Google Camera.

After I install module to Magisk and reboot, it only show android one page loading. Then I try to reboot again but Gcam can't use.

If use old method to root will have Gcam work.

---------- Post added at 07:59 PM ---------- Previous post was at 07:58 PM ----------

If it don't have option, you just go fastboot and patch_boot.img again and reboot it will have option direct install.
[Xiaomi Mi A1 Guides, News, & Discussion] afrizal87:
Does installing twrp makes my device still don't get January update? I already check manually but still no update
[Xiaomi Mi A1 Guides, News, & Discussion] hacker1:
You will get the update notification, but installing the ota will fail.
[Xiaomi Mi A1 Guides, News, & Discussion] :
So, editing build.prop will disable ota?
[Xiaomi Mi A1 Guides, News, & Discussion] FerrarisIV:
Hello I unistalled Magisk and then I flashed this rom http://en.miui.com/extra.php?mod=rom/download&r=333&mobile=no with MiFlash tool, checkin clear data and lock.

But it's more than 20 minutes it is working, the status is

$fastboot -s 70a9de20 set_active a

Have suggestions please ?
[Xiaomi Mi A1 Guides, News, & Discussion] ltf_195:
I experience this once. After 1000+ second i restart my phone, and it working fine. If not working, you can try flash again.
[Xiaomi Mi A1 Guides, News, & Discussion] FerrarisIV:
THANKKKKKKK YOU it works now!
[Xiaomi Mi A1 Guides, News, & Discussion] idx1984:
Hi, after upgrading Mi A1 7.0 rooted as describe in this guide to Android Oreo 8.0 released yesterday from OTA, the device's camera is slow to open and bugs in landscape mode, as well as loss of read / write performance on SD and internal memory.
[Xiaomi Mi A1 Guides, News, & Discussion] lef7er1s:
Deleted
[Xiaomi Mi A1 Guides, News, & Discussion] kaiwanted:
Once again I flash boot.img, reinstalled magisk manager and worked.

"Guys I followed all steps, installed Magisk Manager and I don't see any direct install. There is only

1. Download zip only (which I had already downloaded)

2. Patch boot image file

Boot-loader is unlocked, patched_boot.img January is flashed, phone was restarted. what I am doing wrong?"
[Xiaomi Mi A1 Guides, News, & Discussion] lef7er1s:
Yes it works perfectly fine just did it. The only thing you need is patched_boot.img from your current nougat rom with December security patch. Here you are patched_boot.img or you can patch it your shelf like I did with magisk manager before you start the procedure. For this you will need stock boot.img (I extracted from stock rom)
[Xiaomi Mi A1 Guides, News, & Discussion] Soham Biswas:
Iwas on dec security patch. I followed the step for updating ota by restoring stock img. The downloaded the ota. And after completion of installation of ota i went to magisk and installed magisk to 2nd slot . Then from ota page i tapped on restart and update. The phone rebooted , showed installing update. The after starting the boot animation it went into a boot loop. My phone has slot b. Any other user facing this problem? Or any solution? Have seen many users who used this method successfully..do they have slot a specifically?
[Xiaomi Mi A1 Guides, News, & Discussion] Moazzam.anwer:
Did u tried this command fastboot boot patched_boot.img or something else? And remember if u r on a December security then u will need patched boot image of December for January u need a patched Boot image of January , if still your problem doesn't solves then u should flash the stock ROM using this guide https://youtu.be/sbkZoYs0LP0
[Xiaomi Mi A1 Guides, News, & Discussion] zorzgeo:
I have rooted my A1 with described method from 1st post and December update but my phone is Nougat version and i have roorted them (with success) with patched_boot.img file for Oreo. Only thing don't working are WiFi after rooting till installed Magisk. After that all is OK.

Question:

- Should i reflash it with patched_boot.img file for Nougat/December from post #507 or let it live it as is?

TNX
[Xiaomi Mi A1 Guides, News, & Discussion] xb360:
It might be because of selinux.

In Magisk, install module "Magisk Selinux Permissive Script" and reboot.
[Xiaomi Mi A1 Guides, News, & Discussion] PRASHANT #@:
I am having issues in opening default camera app it is taking ages to open and switch cameras after installing magisk and successfully rooting my device ,any help???
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Answer to your question is literally one post above yours.
[Xiaomi Mi A1 Guides, News, & Discussion] idx1984:
It worked, everything's ok. thank you.
[Xiaomi Mi A1 Guides, News, & Discussion] adikp09:
need help

I follow those method on the first page, it doesn't work on my phone. anybody pls help how to root mi a1 use correct way
[Xiaomi Mi A1 Guides, News, & Discussion] zorzgeo:
Phone must be recognised by the PC. ADB and FASTBOOT must recognise Your phone and that's all.

First of all type "adb devices" and You will see if recognised. After that continue with commands entering...

I have reflash my phone with Nougat/December patched_boot.img without any problems. No have to reflash as bricked with MiFlash Tool.

All's good!
[Xiaomi Mi A1 Guides, News, & Discussion] idx1984:
Turn on usb debugging on developer options. Conect to PC and wait for drivers detection, then repeat the procedure to root.
[Xiaomi Mi A1 Guides, News, & Discussion] jebiga:
It works. Thanks.
[Xiaomi Mi A1 Guides, News, & Discussion] renji02:
This method worked for me. I used this method with the December patch when Oreo first started rolling out.

Can I update without unrooting? Does the camera api2 work with the January partch?
[Xiaomi Mi A1 Guides, News, & Discussion] zorzgeo:
As said in 1st post "... to root phone without disabling ota updates." (OTA should work like a charm!), for camera, i don't know...
[Xiaomi Mi A1 Guides, News, & Discussion] PRASHANT #@:
Thanks I just saw it after posting it my problem here...

Flashed the selinux and no problems now ..
[Xiaomi Mi A1 Guides, News, & Discussion] sansan27:
hi, can anyone share the stock boot.img from january update please? it seems like i didn't have any backup boot.img files.

thanks.
[Xiaomi Mi A1 Guides, News, & Discussion] xb360:
If follow the guide in OP, the phone is booted in fastboot mode, adb command does not work. This will confuse newbie.

When in fastboot mode, the command to check if PC recognise it is "fastboot devices"

Ya, the trick is to "boot patched_boot.img" instead of "flash patched_boot.img". Then Magisk will able to install it's file and backup the original boot.img

But I see plenty people here flash it instead
[Xiaomi Mi A1 Guides, News, & Discussion] adikp09:
Ok sir.. l'll try again tonight, wish me luck :D
[Xiaomi Mi A1 Guides, News, & Discussion] zorzgeo:
It's true.

FastBoot mode needs fastboot commands, else adb commands.

I've got it. The point is to "boot" and not to "flash" .img file.

Tnx
[Xiaomi Mi A1 Guides, News, & Discussion] ashishmax:
Charging Rapidly is missing

after patching boot image ("fastboot boot patched_boot.img") charging rapidly (fast charge) is not working . I want to reverse the boot image please help.... i am not a technical person so please explain the steps briefly to reverse the boot image.

Tried this rooting process after January security patch.
[Xiaomi Mi A1 Guides, News, & Discussion] lalaphil:
same here, any help?
[Xiaomi Mi A1 Guides, News, & Discussion] hiato:
Just a question.. why wouldn't I just flash TWRP permanently and whenever there's an OTA, i can flash it through recovery, just like good old days?
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Because good old days method doesn't work. OTA can't be ADB sideloaded via stock recovery (and as far as I recall, it was never possible to flash stock OTA via custom recovery anyway).
[Xiaomi Mi A1 Guides, News, & Discussion] jsuln:
Hey guys,

Im still on october patch, rooted. I wanted to wait for this oreo thing to be a sure thing and bug free.

anyway, does this guide work if I flash on to the latest oreo factory rom image via miflash (to keep all data) and then root with the patched january boot.img and then install magisk, like in the guide in first post? Just double checking, as i don't want to end up bricked again :)

P.S do all the magisk modules (gcamera, hdr, video etc... ) work on oreo?

thanks!

jaka
[Xiaomi Mi A1 Guides, News, & Discussion] goofball2k:
It was never a change in charging times. It was just a message, they removed it from the latest oreo builds since everyone seemed to think that they implemented Qualcomm quick charging, which they did not.
[Xiaomi Mi A1 Guides, News, & Discussion] hiato:
Isn't a full image of the new stock system always made available? can't flash it using TWRP?

Excuse my old methods, my last development was with OnePlus One.
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Fastboot ROM is available usually one week after OTA, it might be possible to flash it manually partition by partition from TWRP, but it's much faster, safer and easier via fastboot/MiFlash.
[Xiaomi Mi A1 Guides, News, & Discussion] idx1984:
Install via modules.
[Xiaomi Mi A1 Guides, News, & Discussion] salemon876:
I've did exactly everything fine, and after reboot by Magisk Manager (after Magisk install) i've got an inscription: "no command".
[Xiaomi Mi A1 Guides, News, & Discussion] zorzgeo:
From THIS LINK we are choosing flash/recovery procedure and files too.

My A1 was Nougat/December but patched with Oreo patch and i am picked up from part "Flashing Guide for Fastboot Update" with Mi Flash Tool "Save User Data" option to recovery my A1 to oob state with all saved apps and data.

Now my A1 relocked with all oob goodies (Quick Charging too)... No Magisk, but i don't need it at all (for now).

Enjoy!
[Xiaomi Mi A1 Guides, News, & Discussion] lalaphil:
thanks, but modules are not present on the left side
[Xiaomi Mi A1 Guides, News, & Discussion] _MrAlpha_:
Ok guys, so my phone is rooted and all of that jazz. Today I got the January update and I tried installing it following the guide. However, the update can't install pecause there's an "installation error" just after phase 1 starts.

How can I get the new update? Should I un-root, update, then root again? If so, what's the easyest way to un-root?
[Xiaomi Mi A1 Guides, News, & Discussion] ryoadi:
It's happen for me too, can't find any solution.

From what I read there is a bug in v14.0 where the boot image backup doesn't get created properly, but I don't know the solution

Did we forget/skip some step or resources data or anything?

Maybe anyone can help? Thanks a lot.
[Xiaomi Mi A1 Guides, News, & Discussion] idx1984:
Click on Install >Download only, after go to Modules and add, find on Download folder or root internal/external memory.
[Xiaomi Mi A1 Guides, News, & Discussion] MaximeMNT:
I just received the January update, how do I update my phone? Because i got an error "installation problem" when i try to install it (and Magisk doesn't have stock image).
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
You can extract stock boot.img from fastboot ROM (or just flash it and keep data) http://bigota.d.miui.com/8.1.10/tissot_images_8.1.10_20180110.0000.00_8.0_8ea503201b.tgz

Source: http://en.miui.com/thread-1596182-1-1.html
[Xiaomi Mi A1 Guides, News, & Discussion] genomorro:
Use this guide

Short: Go to Magisk Manager → Uninstall → Restore Images
[Xiaomi Mi A1 Guides, News, & Discussion] MaximeMNT:
There is no way to download only the stock boot.img?

Magisk doesn't have stock boot.img.
[Xiaomi Mi A1 Guides, News, & Discussion] ltf_195:
If you install magisk using guide from this thread, you should have stock boot.img
[Xiaomi Mi A1 Guides, News, & Discussion] MaximeMNT:
I'm sure I used this guide though..
[Xiaomi Mi A1 Guides, News, & Discussion] jovinkk:
It doesn't seem like someone had that problem already. I am stuck in the

boot loop

after January update.

I followed the guide closely (restore stock image, install OTA, then install magisk to second slot, apply update) and did everything as I am supposed to. Any ideas why that happened?

Is there any way I get out of this without losing my data?
[Xiaomi Mi A1 Guides, News, & Discussion] KalolParty:
I flashed the boot.img but I just the android one logo running for more than 5 minutes.

The only solution to boot is to force reboot by holding the power button. Am I doing something wrong here?
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
Not really. Also I've just realized that you need December boot.img to apply January OTA. That's not really worth the hassle, just flash whole January ROM via fastboot or MiFlash.

Flash whole January ROM via fastboot or MiFlash.
[Xiaomi Mi A1 Guides, News, & Discussion] KalolParty:
Right here mate. Followed it to the letter and it didn't boot.

I had to hold the power button and reboot it again to make it work. We need a new patched img
[Xiaomi Mi A1 Guides, News, & Discussion] jovinkk:
How did you set your partition to B? "fastboot set_active b" does nothing and shows me a list of the commands ...

---------- Post added at 09:30 PM ---------- Previous post was at 09:13 PM ----------

Wait, you got it to work again?

I can't get it to shut down (even when holding the power button down all the time)...

---------- Post added at 09:51 PM ---------- Previous post was at 09:30 PM ----------

This will lose me my data though .. I haven't planned to lose my data everytime I install an OTA. Did the same thing about a week ago when I got the January OTA, stuck in bootloader as well. Thought it was because I didnt follow the guide. Flashed fastboot rom and lost all data that I didnt backup. Now I got the update again and thought it would work when following the guide. Turns out that's not the case either.
[Xiaomi Mi A1 Guides, News, & Discussion] okahdidi:
Did u use the latest version of magisk? People are reporting that it doesn't back up the stock boot image properly that is why OTA installation gets error message
[Xiaomi Mi A1 Guides, News, & Discussion] KalolParty:
yeah, I just held the power button and rebooted normally

I guess we'll have to wait for someone to patch the boot image or come up with some other way to install Magisk

---------- Post added at 03:22 AM ---------- Previous post was at 03:19 AM ----------

@jashancheema any possibility of you patching the boot.img of the January Oreo stable update?
[Xiaomi Mi A1 Guides, News, & Discussion] hacker1:
Why don't you just patch it yourself? Magisk Manager -> Install -> Patch Boot Image File
[Xiaomi Mi A1 Guides, News, & Discussion] scottjay:
Patched boot image for Jan 10 Oreo
[Xiaomi Mi A1 Guides, News, & Discussion] sdfkjsdlfkkjdfs2:
>NOTE: In order to apply OTAs, you HAVE to make sure you haven't modified /system (and /vendor if available) in anyway, even remounting the partition to rw will tamper block verification!!

- from github OTA guide

So I'm unable to update over OTA, and I believe it's because I downloaded an app that edited my system files but I'm not sure what it was. Is there any way to undo this and update?
[Xiaomi Mi A1 Guides, News, & Discussion] teacapan:
maybe usb cable, maybe PC usb port, :eek:
[Xiaomi Mi A1 Guides, News, & Discussion] Groovecain:
update your SDK Tools, you can download from here :highfive: https://developer.android.com/studio/releases/platform-tools.html
[Xiaomi Mi A1 Guides, News, & Discussion] jeevan_500:
Is it the boot image for stable Oreo fastboot image
[Xiaomi Mi A1 Guides, News, & Discussion] mvinicius76:
Same with me... Other thing is: when i did the command fastboot getvar current-slot, in fastbot mode, to see my current slot, appears to me the slot B... this is correct?
[Xiaomi Mi A1 Guides, News, & Discussion] KalolParty:
I can do that but where do I get the stock boot image? The fastboot ROM isn't out yet.

Will the one from the OTA's floating around work?
[Xiaomi Mi A1 Guides, News, & Discussion] iG0tB0lts:
Do I have to follow this process? For nougat I just booted TWRP, then flashed magisk.

What happens if I do the same here?
[Xiaomi Mi A1 Guides, News, & Discussion] KalolParty:
Luckily, the fastboot image was released and I patched it with Magisk

But I face the same problem where phone enters a bootloop and the only way to fix it is to force reboot it by holding the power button?

Any solutions? I beleive Magisk isn't patching the image properly but I could be wrong
[Xiaomi Mi A1 Guides, News, & Discussion] williamzerner:
the stock boot image from the download link. It is not a flashable zip.(sorry about editing ...didnt know how to upload file)
[Xiaomi Mi A1 Guides, News, & Discussion] jovinkk:
Just downloaded the latest ones, doesn't do anything still (trying to set slot a to active as slot b was my active one after the update) ... could it be that there's a problem with my partitions? It says the following:

(bootloader) slot-count:2

(bootloader) current-slot:_b

(bootloader) slot-retry-count:_b:7

(bootloader) slot-success:_b:No

(bootloader) slot-active:_b:Yes

(bootloader) slot-unbootable:_b:No

(bootloader) slot-retry-count:_a:7

(bootloader) slot-success:_a:Yes

(bootloader) slot-active:_a:No

(bootloader) slot-unbootable:_a:No
[Xiaomi Mi A1 Guides, News, & Discussion] sdfkjsdlfkkjdfs2:
This works, but when I reboot I am not rooted anymore. Any help?