yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
Try this one: for June 5 patch, Oreo 8.1 (arrived today for me)

I have really no idea what I was actualy doing, but it seems like it works at least for me. Use at your own risk, im not a dev. I made it with magisk interface and suffered few soft-bootloops in the process :P

Edited: Attachment failed to upload

New link: https://drive.google.com/open?id=1CvR3LSoS8Zb21fbquxLSCzpnCtNPAuSm
[Xiaomi Mi A1 Guides, News, & Discussion] marhensa:
here the patched_boot.img for

OPM1.171019.019.V9.6.3.0.ODHMIFE

Android 8.1

5th June Security Update

also, for some cautions.

make sure before flash / boot this image to re-enable magisk,

disable some modules in magisk manager which doesn't compatible with 8.1

I found some of my installed modules caused trouble with 8.1
[Xiaomi Mi A1 Guides, News, & Discussion] gdimak:
OPM1.171019.019.V9.6.3.0.ODHMIFE

Android 8.1

5th June Security Update

also, for some cautions.

make sure before flash / boot this image to re-enable magisk,

disable some modules in magisk manager which doesn't compatible with 8.1

I found some of my installed modules caused trouble with 8.1[/QUOTE]

So with the new update we follow the steps of the 1st page and instead we flash this img. you uploaded?
[Xiaomi Mi A1 Guides, News, & Discussion] polandro:
Make sure Magisk Manager is not installed on your SD card, but on the phone memory. There's a brief reference early in the thread , but it's easily missed. It took me ages to work it out as I'd used the card as internal memory.
[Xiaomi Mi A1 Guides, News, & Discussion] DeV91:
you may not have the newest fastboot tool. set_active was introduced in a new version of fastboot. try to update your fastboot / adb with the google android sdk (download)

i meant June 1 as in first June update :) so it should work, or atleast its working for me. im also on June 5th security patch.

maybe u had prior to update incompatible magisk modules actice, which caused bootloop?
[Xiaomi Mi A1 Guides, News, & Discussion] skkardam:
Is it working fine in 8.1?
[Xiaomi Mi A1 Guides, News, & Discussion] DDKO:
hey, can you upload for 5th june image please?
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
File from your post didnt work for me. Idk why, but the file I did for myself and the one marhensa shared both are 15 Mb and yours is 13 Mb... Maybe there are 2 different versions of the patch.

Already done, try the ones in previous posts from marhensa and mine with the method from 1st post (not the bootloader unlocking part)
[Xiaomi Mi A1 Guides, News, & Discussion] DDKO:
i tried

i have tried Marhensa image. But still don't work, yes his image better than the other image. But still, after i typed my password i get stuck at androidone logo, the line bar under the word of "one" still processing/loading.

And then, i tried to remove my password and still same. I got stuck and loading of android one logo. Can you tell me how exactly you did the root or flash this image correctly?:confused:
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
I just followed the OP instructions,

- Install magisk manager

- reboot phone in fastboot

- cmd / fastboot boot june_patched_boot.img

- phone boot. I opened magisk - Install - Direct Install - reboot again

I experienced few soft bootloops like you described BEFORE this procedure (I made a mistake when updated, and performed a factory reset. Also, the first time i flashed the other image and failed.), but every time solved by rebooting again (long pressing power button)

If it is still not working for you after few tries, you may try flashing magisk with the alternative method of TWRP described HERE

Instead of booting from a rooted image, you boot from a twrp recovery. Then you flash Magisk installer (strategically placed in your internal storage). I can confirm this works perfect (I used this way to root and extract the stock boot image to patch). Downside is you have to flash the uninstaller every time a security patch comes. This is why I just used this to get the image and then went with the patched image method.
[Xiaomi Mi A1 Guides, News, & Discussion] DDKO:
Also, i have tried that alternative method. But, i got new problem. The TWRP Recovery can't identify my sdcard/memory phone. I'm so frustrated, maybe i will try next time. With new 5th image from the person who post this thread first. Thanks for helping :3
[Xiaomi Mi A1 Guides, News, & Discussion] Z4Zeeshan:
it working fine but i cant open up my notification tray. no notification is being showed up its just totally blank. please suggest me what to do
[Xiaomi Mi A1 Guides, News, & Discussion] navroza:
I wanted to install OTA and restored images from magisk. I had xposed installed and I was not passing safetynet to install updates. I rebooted and got bootloop. I tried flasing/booting stock boot.img and still was bootlooping. then installed booted to patched boot.img and installed magisk rebooted and device works. I then restored images again and tried to install OTA. It downloads but install fails. Is there a way of fixing it without reflashing whole rom?
[Xiaomi Mi A1 Guides, News, & Discussion] hieron123:
It's possible that one of the modules isn't compatible with the latest Oreo causing your phone being unable to boot

Verstuurd vanaf mijn Mi A1 met Tapatalk

---------- Post added at 05:09 PM ---------- Previous post was at 04:59 PM ----------

Ok when I try to root my device using the patched boot IMG from one of the previous posts, on first boot after giving the fastboot boot patched_boot.img command Android wipes my user data.

What am I doing wrong?

Verstuurd vanaf mijn Mi A1 met Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
Do you have unlocked bootloader or locked? I've heard that if you unlock the bootloader again in new patches (8.0 may and 8.1) it wiped all user data. If you were locked and ran the entire procedure from OP it may be the issue.

No idea. Try rebooting, fastboot TWRP / wipe all cache / disable every magisk module and every app that may conflict with system UI.

I didn't even know there was a xposed ver compatible with oreo, did you flash uninstallers for everything that could break the system integrity? Disabled all magisk modules?

TWRP shows internal storage as "data" partition. At least in my device. try to look there
[Xiaomi Mi A1 Guides, News, & Discussion] Dusayanta:
Patched image for june security patch

Please provide the patched boot.img for june security patch.
[Xiaomi Mi A1 Guides, News, & Discussion] navroza:
uninstalled xposed with its own uninstaller ¯\_(ツ)_/¯ (without custom recovery). I currently have no magisk modules as I removed magisk completely then reinstalled.
[Xiaomi Mi A1 Guides, News, & Discussion] DDKO:
data partition? Is that a folder or something? Because the TWRP can't identify my internal storage. or you can say "0MB"
[Xiaomi Mi A1 Guides, News, & Discussion] luismnovo:
Hi guys,

Does anyone know if Magisk modules for camera lag and Gcam mod will work after installing the latest update?
[Xiaomi Mi A1 Guides, News, & Discussion] Bennybtc:
Yes it works
[Xiaomi Mi A1 Guides, News, & Discussion] jasmeet21:
[MENTION=7177145]jashancheema[/MENTION] still waiting for you bro!
[Xiaomi Mi A1 Guides, News, & Discussion] jashancheema:
June(8.1) patched img released

Download from here
[Xiaomi Mi A1 Guides, News, & Discussion] jack_21:
Thank you!

The problem is that the phone will bootloop, that's because i think that some modules are not compatible with 8.1, causing bootloop when activating magisk.

Not a big issue however, just restart to TWRP, open File Manager and delete all magisk-related files inside "/data/adb/" and /data, so that Magisk won't load any module.

Then enable one module at time to see which one will cause the bootloop.
[Xiaomi Mi A1 Guides, News, & Discussion] DDKO:
can you give the twrp link please?

Because i have this bootloop issue when i was booting the 8.1 june Image, or maybe you can help me how to solve this?
[Xiaomi Mi A1 Guides, News, & Discussion] jack_21:
Here you are

https://www.androidfilehost.com/?fid=818070582850498337

Just boot it from fastboot (rename the img to twrp.img, then enter the cmd "fastboot boot twrp.img")

Then go to Advanced -> File Manager -> remove /data/adb folder and only magisk-related files (like magisk.img) that you can see on /data (they are on the bottom usually)

Please note that after booting successfully, when you will install Magisk using direct method, the phone will bootloop again... just wait 5 minutes then restart holding power button, and your phone will be ok with root.
[Xiaomi Mi A1 Guides, News, & Discussion] uTukan:
Big thanks for this guide! Rooting on 8.1 went flawlessly :) So far the easiest rooting procedure I had with a phone (S3 mini, P70 and some Huaweis). :D

EDIT: Actually there is one thing, I can't seem to be able to download Instagram, it says that my device isn't compatible with that version, could it be something blocking it due to rooting? Any solution to this or will I have to sideload it from apkmirror or something like that?
[Xiaomi Mi A1 Guides, News, & Discussion] demencia89:
Is it official 8.1?
[Xiaomi Mi A1 Guides, News, & Discussion] uTukan:
Do you mean if I rooted the official 8.1? In that case yes, I did, just make sure to use the 8.1 boot.img from June, not May.
[Xiaomi Mi A1 Guides, News, & Discussion] jack_21:
I had to uninstall systemless Xposed and GravityBox, they were causing random bootloops when turning on / restarting the phone

Maybe systemless Xposed or GravityBox are not fully compatible with Oreo 8.1
[Xiaomi Mi A1 Guides, News, & Discussion] paolocorpo:
I have xposed and gravity box so issues on 8.1

How have you associated them to your bootloop a d restarting ?

Inviato dal mio Mi A1 utilizzando Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] jack_21:
After a simple edit in GravityBox and when restarting, the bootloop was there.

Also, when activating the Xposed module in Magisk, the phone bootlooped for 10 mins
[Xiaomi Mi A1 Guides, News, & Discussion] paolocorpo:
Clear !

Have you choosen the right version for your system ?
[Xiaomi Mi A1 Guides, News, & Discussion] jack_21:
Yes

I will retry
[Xiaomi Mi A1 Guides, News, & Discussion] adrianjchi:
How long does it take to boot after flashing june's boot image? Mine was stuck at boot animation about 15 minutes. I had to force a reboot but the patched image wasn't flashed after the boot.

Edit: tried the image found on the original post. It worked now.
[Xiaomi Mi A1 Guides, News, & Discussion] Boobseekr:
Anyone else tried the June patched image?
[Xiaomi Mi A1 Guides, News, & Discussion] m2972017:
I could follow all steps and install magisk then my device rebooted, found the unlocked bootlooder and deleted magisk again: What can I do? Thanks!
[Xiaomi Mi A1 Guides, News, & Discussion] Sly2031:
My WiFi is broken.

Did all the steps, I've been doing this for like 6 months and this is the first time this happen to me.

Can someone help me?
[Xiaomi Mi A1 Guides, News, & Discussion] RGarrido03:
Hi! This should void warranty, right? But, if I unroot it, will I get warranty back? Thx!
[Xiaomi Mi A1 Guides, News, & Discussion] IvanHephaestus:
I do not think that people need root guide
[Xiaomi Mi A1 Guides, News, & Discussion] volt122:
It does void your warranty as per mi forums. But in my case, my volume button was not working so I relocked my bootloader by flashing stock fastboot rom via miflashtool and submitted my phone in service center n they said my phone will be covered under warranty. I got my phone repaired free of cost. ?
[Xiaomi Mi A1 Guides, News, & Discussion] RGarrido03:
Wow! (Eddy Wally meme ?) thanks for your answer. I'm much happier now!
[Xiaomi Mi A1 Guides, News, & Discussion] freekarol:
It depends on where you live. If I remember well, in the European Union, you shouldn't void warranty unless it's proved that root caused a problem with a cell phone.
[Xiaomi Mi A1 Guides, News, & Discussion] hieron123:
I found a work around in another thread that works and bypasses the Xiaomi wipe user data script

Verstuurd vanaf mijn Mi A1 met Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] jcagara08:
oh how did I miss your post, I just did this hours ago and it wiped all my data, can you please share that link?

lucky me I backed up all the things important
[Xiaomi Mi A1 Guides, News, & Discussion] hieron123:
https://r.tapatalk.com/shareLink?ur...share_tid=3804406&share_fid=3793&share_type=t

Verstuurd vanaf mijn Mi A1 met Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] kuvus:
I have a problem with installing it.

When I boot to the patched image, the magisk manager says, that Magisk is already installed (I can't install it) and when i reboot the phone, MM says that Magisk is not installed :v.
[Xiaomi Mi A1 Guides, News, & Discussion] RGarrido03:
Can anyone patch July beta update? Thanks!
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
I'm not in beta so cannot help... but you can try to do yourself...

I will share the way I did it (might be a simpler way, but I dont know tbh), worked fine for me, but again: Im not a dev, try at your own risk :P

Boot in fastboot with TWRP (twpr for tissot here) and flash magisk zip

Reboot phone, open magisk, and do direct install from the app (to be sure it creates a new backup image)

In any root file manager, go to root folder / data and look for a file called "stock_boot_{randomhash}.img.gz"

Extract it in your internal storage

Go to magisk app again and look for the option Install > Patch boot image

Select the image you extracted from Gzip before

Patched image should be in magisk folder in internal storage. Copy to PC

Reboot to fastboot again with TWRP and flash magisk uninstaller (so you dont break OTAs)

Reboot to fastboot now using the patched_boot.img you created before and follow the normal steps
[Xiaomi Mi A1 Guides, News, & Discussion] RGarrido03:
Ok, I'll try. Thanks!
[Xiaomi Mi A1 Guides, News, & Discussion] GizmoFreak:
Same issue here.
[Xiaomi Mi A1 Guides, News, & Discussion] uTukan:
Hey, anyone else having problems with Snapchat giving the "Oh No! Your login temporarily failed,..."? Apparently, it's root related, I have Magisk hider on for Snapchat, but that does not help. Any idea how to fix it?
[Xiaomi Mi A1 Guides, News, & Discussion] GizmoFreak:
Okay solved. Use the patched boot image file from this post.
[Xiaomi Mi A1 Guides, News, & Discussion] kuvus:
I still have the same issue :/
[Xiaomi Mi A1 Guides, News, & Discussion] GizmoFreak:
Are you sure you used that file?
[Xiaomi Mi A1 Guides, News, & Discussion] kuvus:
Yes, I'm sure. I've checked it 3 times.
[Xiaomi Mi A1 Guides, News, & Discussion] franciscorupto:
magisk manager stuck

Hi guys. I've done all steps correctly (I think). When I try to open magisk manager after booting from patched_boot.img the app gets stuck at launcher (with the mask picture). If I reboot normally I can open Magisk Manager but I dont have direct install option... so i'm kind of stuck here. Any tips? Bootloader unlock is correctly done.

Edit: I tried booting twrp through fastboot and flashing magisk v16 there and firstly it got stuck at phone boot. I force-restarted it and it booted correctly but magisk manager got stuck anyway everytime i tried to open it.

Last Edit: Ok, I fixed it. I'll leave it here in case someone finds it useful:

-First I flashed the magisk uninstaller (as I said, I tried flashing magisk by twrp, so I needed to get all back to previous state)

-Then I booted normally and uninstalled magisk manager.

-Lastly, I flashed through twrp again, and it booted correctly and magisk manager was autoinstalled. Works like a charm.
[Xiaomi Mi A1 Guides, News, & Discussion] berluscraxi:
it's worked for me on v8.0.

thank you
[Xiaomi Mi A1 Guides, News, & Discussion] aniktanims:
I've successfully rooted my device, but unfortunately all file erased, why?

I'm on 8.1 June Patch! :p
[Xiaomi Mi A1 Guides, News, & Discussion] Midomad:
Because you unlocked you're bootloader.
[Xiaomi Mi A1 Guides, News, & Discussion] Argyle0297:
anyone has july update patched boot image yet?
[Xiaomi Mi A1 Guides, News, & Discussion] SM-03:
Is there any patched boot image for April Oreo Stable ROM, also, Would like to know if there is any bug in these builds or not, [MENTION=7177145]jashancheema[/MENTION]
[Xiaomi Mi A1 Guides, News, & Discussion] aavvaallooss:
I succesfully used the June one to Magisk root
[Xiaomi Mi A1 Guides, News, & Discussion] Samhain77:
Here it is: https://drive.google.com/file/d/1hac8MXSiw6N4UILn7UYvS4frLrteCF2K/view?usp=drivesdk
[Xiaomi Mi A1 Guides, News, & Discussion] heldchen:
had to re-root after updating june 8.1 to july 8.1 - after applying the update and before rebooting magisk manager didn't offer to reinstall to the 2nd slot this time. the option "Install to Second Slot (After OTA)" was completely missing and the other options obviously weren't right. reinstalling magisk using the june patched boot image from the first post was straight forward, still I hope this is not required after each update from now on...

anyone else coming from the june 8.1 build had the same issue?
[Xiaomi Mi A1 Guides, News, & Discussion] Don Jajo:
Yes, no option to Install Magisk from OTA here too. I'm now looking to apply patched boot but it has been rebooting, not working :(
[Xiaomi Mi A1 Guides, News, & Discussion] pantezuma:
Someone told me in magisk forum that second slot option has been removed for now due to compatibility issues.

You can always reinstall magisk booting via twrp and flashing the zip file after updating. (I did that a few hours ago).
[Xiaomi Mi A1 Guides, News, & Discussion] Don Jajo:
I don't use TWRP so I can apply future update seamlessly. I have been trying the June patched_boot and the one shared now, none seems to be booting. All stuck at the boot screen
[Xiaomi Mi A1 Guides, News, & Discussion] marhensa:
Thank you, all works as it should be.

Rooted.

Magisk Hide works hiding root.

Safety Net passed.
[Xiaomi Mi A1 Guides, News, & Discussion] Jfelips:
Flash the July, you'll get stuck at first boot. Then force reboot and it'll boot normally
[Xiaomi Mi A1 Guides, News, & Discussion] Don Jajo:
I updated. I'm still booting but when I fastboot boot into the patched boot it is stuck. Have to reboot to boot well into the default

---------- Post added at 05:48 AM ---------- Previous post was at 05:47 AM ----------

Don't know why this is not working for me. Booting into the patched boot gets stuck at boot screen
[Xiaomi Mi A1 Guides, News, & Discussion] nipunsdaddy:
The missing "Install to Second Slot (After OTA)" thing happened to me too. So I have a few questions to ask...

First, I have to uninstall Magisk Manager, right? Can i do that within the App itself?

Second, After reboot, will i get the normal update?

Third, Let's say the update goes perfectly. I have to flash Magisk through twrp again, is that correct?

Fourth, Do rooted apps (+Xposed modules etc.) run smoothly after this process or i have to reinstall them?

Thanks a ton for your answers..
[Xiaomi Mi A1 Guides, News, & Discussion] SM-03:
can anyone share the link of the Stock ROM Boot image of latest July 8.1 v9.6.4.0
[Xiaomi Mi A1 Guides, News, & Discussion] Samhain77:
Broken link
[Xiaomi Mi A1 Guides, News, & Discussion] SM-03:
now check

https://xdaforums.com/mi-a1/themes/help-to-install-dolby-atmos-sony-xperia-t3817484
[Xiaomi Mi A1 Guides, News, & Discussion] Amanpreetsingh:
Can anybody give me a July patched img file
[Xiaomi Mi A1 Guides, News, & Discussion] Parnas72:
You don't need to flash TWRP to the phone, you can just boot it from a fastboot image (fastboot boot twrp.img) and flash magisk so you will still have the stock recovery untouched and you will get OTA updates.
[Xiaomi Mi A1 Guides, News, & Discussion] Samhain77:
https://drive.google.com/open?id=1gnK8FzbxYTLK8OxgLn-lOElfNBuccjLw
[Xiaomi Mi A1 Guides, News, & Discussion] nipunsdaddy:
i have downloaded ota update but failed to install. can i follow OP post right away? i have magisk manager installed and downloaded july patch image already. or what should i do more?
[Xiaomi Mi A1 Guides, News, & Discussion] navroza:
on recent 8.1 update old patched_boot.img boots but once I open magisk app, its just stuck on splash screen. Then tried that boot img and still stuck at splash screen. Has anyone been facing similar issues?
[Xiaomi Mi A1 Guides, News, & Discussion] SM-03:
Is this stock ROM, the size is only 14mb & that is too small for an Original Stock image, I've seen image size from 1.5gb to 3gb after extraction
[Xiaomi Mi A1 Guides, News, & Discussion] Niyix:
I had this problem too because Magisk Manager installed himself into SD. I moved it into the Internal Storage and worked fine!
[Xiaomi Mi A1 Guides, News, & Discussion] Don Jajo:
Everything on Magisk runs smoothly except Xposed, phone was stuck in boot logo. Had to disable and remove Xposed Magisk module and reinstall from here

If any other Magisk module is proving stubborn, I used this to disable all and enable one after another - https://xdaforums.com/apps/magisk/magisk-v16-3-magisk-modules-remover-t3776718

---------- Post added at 11:05 AM ---------- Previous post was at 11:02 AM ----------

Just did that, never knew. Thanks! :)
[Xiaomi Mi A1 Guides, News, & Discussion] skkardam:
If i flash magisk manager zip file through temporary twrp then how to install next ota update?
[Xiaomi Mi A1 Guides, News, & Discussion] Samhain77:
This is stock boot.img only as you requested, not the whole July build.
[Xiaomi Mi A1 Guides, News, & Discussion] SM-03:
well, this is the patched july boot image right, I already got this one, but now I am asking about the Stock untouched July build image file, if you have the link then kindly share
[Xiaomi Mi A1 Guides, News, & Discussion] Choice_Legacy70:
Hello

Can anybody give me a July patched img file.I bought this phone recently and need July patched img.

thanks.
[Xiaomi Mi A1 Guides, News, & Discussion] Samhain77:
This isn't the patched July this is the unmodified July boot.img...

But nevermind, I've mispelled your request... this is what you want: http://bigota.d.miui.com/V9.6.4.0.O...0.ODHMIFE_20180712.0000.00_8.0_735823083f.tgz

;)

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

https://xdaforums.com/showpost.php?p=77090216&postcount=1284
[Xiaomi Mi A1 Guides, News, & Discussion] skkardam:
If i flash magisk manager zip file through temporary twrp then how to install next ota update?

---------- Post added at 07:22 PM ---------- Previous post was at 07:19 PM ----------

Please help
[Xiaomi Mi A1 Guides, News, & Discussion] ventussm:
Back up your stock boot image before flashing magisk, when ota arrives, uninstall magisk or restore stock boot image. It always works for me, if I don't touch system, otherwise you'll need to flash stock rom via mi flash tool.
[Xiaomi Mi A1 Guides, News, & Discussion] skkardam:
How to restore stock boot image?
[Xiaomi Mi A1 Guides, News, & Discussion] pantezuma:
You can boot TWRP and flash magisk and still be able to apply OTA.

The problem is when people flash it.

I did this for many months.
[Xiaomi Mi A1 Guides, News, & Discussion] paolocorpo:
I am on the same page

Inviato dal mio Mi A1 utilizzando Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] nipunsdaddy:
please help me with these questions..
[Xiaomi Mi A1 Guides, News, & Discussion] Marcos OC:
didnt show the option for me but update went fine. After that i just reflashed magisk from twrp (booted from fastboot), and worked without problems.

modules on magisk worked fine (the camera2api one at least), i dont use xposed so no idea about it, but dont be lazy and check that yourself, i suggest uninstalling before the update.
[Xiaomi Mi A1 Guides, News, & Discussion] nipunsdaddy:
Please give me step by step guide. im such a slow learner.
[Xiaomi Mi A1 Guides, News, & Discussion] skkardam:
How to able to apply ota after flash magisk through bootable twrp?
[Xiaomi Mi A1 Guides, News, & Discussion] Mihavey:
I updated my rooted device without any steps, just installed 8.1 update. I know this was pretty dumb decision. How can i root my phone now? Magisk just doesn't installing
[Xiaomi Mi A1 Guides, News, & Discussion] prorooter007:
Please provide any working July patched boot image

Will unlocking bootloader on July security patch wipe all my data?