yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] Vatumb:
The phone is running on the latest September Security Patch. So flashed the September patched boot img.

But after flashing the super su phone stuck on the Mi Logo Screen.

But fixed it - flashed the august patched boot img and now it works fine. Super Su is installed and Thre phone is rooted. checked with Root Checker app.
[Xiaomi Mi A1 Guides, News, & Discussion] antimatter.web:
Tried that, got this error

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot patched_boot.img

target reported max download size of 536870912 bytes

sending 'boot' (65536 KB)...

OKAY [ 1.490s]

writing 'boot'...

FAILED (remote: partition table doesn't exist)

finished. total time: 1.514s

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

How did you flash August boot.img? I tried it too but get the same failed/partition error like with september boot.img
[Xiaomi Mi A1 Guides, News, & Discussion] antimatter.web:
Restored with miflash tool
[Xiaomi Mi A1 Guides, News, & Discussion] sunshinebhushan:
Do I need to unlock the bootloader first to root the device? If yes, is there any other way to root the device without unlocking?

Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] Eflatun:
my A1 stuck on bootlogo too
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
That information doesn't help me to understand your problem. Please explain what went wrong...
[Xiaomi Mi A1 Guides, News, & Discussion] Eflatun:
İ flashed august boot after that bootlopp all the time

Try miflash with factory image =bootloop

Try flash with cmd command bootloop

Try agust boot again, or september bootlop

Tried clean and lock flash = bootloop
[Xiaomi Mi A1 Guides, News, & Discussion] JaadiBooti:
All my browsers say that V2 is a virus.

V1 just does not open even when fastboot commands are installed.
[Xiaomi Mi A1 Guides, News, & Discussion] Russel Got stucked:
cant install adb , DPinst_64 is missing
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
Mostly some problem with your mobile. Cuz if it was software related, then clean flash of stock rom should have fixed it
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
I'm aware of V1 problems, that's why I released V2 with those problems fixed. And rest assured that there's no virus in V2, & mostly browsers are showing virus either as advertisements or due to ADB drivers
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
Can u please try re-downloading ? Cuz I went thru the code again, & I couldn't find any problem, even DPinst_64 exists in driver folder. Or maybe your antivirus is deleting that file, try disabling it for temporarily to install drivers.
[Xiaomi Mi A1 Guides, News, & Discussion] crewster:
So would unlocking the bootloader and relocking it with this tool void my warranty?

Enviado desde mi Nexus 7 mediante Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
According to few sources, Xiaomi has told that neither unlocking bootloader nor rooting will void your warranty :)
[Xiaomi Mi A1 Guides, News, & Discussion] crewster:
That's just great news! Is there any link to read through those sources? I just wanna make sure no problem would arise from rooting. Thank you very much for this tool!

Enviado desde mi Nexus 7 mediante Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] Shankar B:
Well you can always relock the bootloader and unroot the device worst case scenario. :D
[Xiaomi Mi A1 Guides, News, & Discussion] TerQQ:
have anyone installed magisk instead supersu? i have read in other post it gives bootloop, is it true?
[Xiaomi Mi A1 Guides, News, & Discussion] iaio72:
Thanks for your tool, great

Just an answer, how Can i use flash Fire?

This app work with root, and with your tool the phone doesnt its rooted....so?
[Xiaomi Mi A1 Guides, News, & Discussion] ubercool786:
Does SuHide work? I really need safetynet to pass
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
My tool temporarily roots your device, so with that you can use FlashFire to permanently root your mobile.
[Xiaomi Mi A1 Guides, News, & Discussion] iaio72:
-temporarily root-, so after reboot with your tool, i have root to use flashfire? ok i try again!

thx
[Xiaomi Mi A1 Guides, News, & Discussion] Dan244CZ:
My phones writes: No command. Any Idea?
[Xiaomi Mi A1 Guides, News, & Discussion] abeeshek:
BRICKED !!!

I am an experienced user. not sure what went wrong but after flashing SU via flash fire. my device is stuck on MI unlocked screen for more than half n hour now. I am assuming its soft bricked now. any help guys ??? *ps : its not in bootloop*

EDIT : everything worked out perfectly now !!! my pc port was problematic, changed my port and repeated the whole process...all went well !!! thanks(clicked as well) !!!

EDIT : now therz weird problem....though it got switched on after soft brick but now once i switch it off or restart it doesnt get boot up unless I root it again using your tool !!! :crying::crying::crying: whats happening here ??? please help. :eek:
[Xiaomi Mi A1 Guides, News, & Discussion] manu730:
Excelent work! works like a charm for me (v2 and sept. patch).

Now my doubt is: when the next OTA come if we update we loose the root and have to repeat the process? (assuming that the update will work)
[Xiaomi Mi A1 Guides, News, & Discussion] antimatter.web:
I think I had the same problem. If you get told boot with temporary root use flashfire -> flash zip but don't flash straight away. After adding zip go to everroot option and select inject supersu. Then flash. That's how it worked for me
[Xiaomi Mi A1 Guides, News, & Discussion] abeeshek:
thanks !!! all good now !!! :)
[Xiaomi Mi A1 Guides, News, & Discussion] xlp199621:
help

I want a meter 6 to unlock the BL tool, okay?
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
Yeah, if you update you'll loose root. Next time, just download the patched boot.img of latest build, with same AIO Tool, & flash that. Root again with flashfire, that's all :) (y) . But I do understand that it's irritative to do all this again n again after every update, so I'm looking for an alternative method, if I get any, I'll surely update :D
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
Thanks for pointing it out. I have updated the guide :)
[Xiaomi Mi A1 Guides, News, & Discussion] antimatter.web:
Nice one :good:
[Xiaomi Mi A1 Guides, News, & Discussion] leowjc:
How do I avoid losing root after rebooting?
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
By using flashfire. Please follow the 2nd post.
[Xiaomi Mi A1 Guides, News, & Discussion] farazshaikh982:
september build added and works too Enjoyy;);)
[Xiaomi Mi A1 Guides, News, & Discussion] chdolodocha:
It works good~ thanks ~!!!!

I can use google camera HDR+ now ~
[Xiaomi Mi A1 Guides, News, & Discussion] off-_-:
MI5X

Will this work on mi5x?:смущенный:
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
Nope
[Xiaomi Mi A1 Guides, News, & Discussion] erimin5:
well....soft bricked my phone after using this. now restoring with Miflash tool and default rom again. ..
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
Can u please how did ur mobile get soft bricked?
[Xiaomi Mi A1 Guides, News, & Discussion] saraomani:
Hi Guys,

I have just bought Mi A1 and I am coming from oneplus one . I was using magisk to root and hide root from certain apps (Banking apps mostly).

With the current rooting options for A1, is there any similar mod/app to make the safety net check pass with rooted phone?
[Xiaomi Mi A1 Guides, News, & Discussion] sunshinebhushan:
Successfully unlocked the device using this tool.

But unable to root the device, followed the procedure from 2nd post. After the first boot, I went to Flashfire app but it couldn't acquire the root.

Can you help me in this?
[Xiaomi Mi A1 Guides, News, & Discussion] leowjc:
How did you root with Magisk? Mind to share the steps?
[Xiaomi Mi A1 Guides, News, & Discussion] saraomani:
I was, as in on oneplus one. Anyways I have rooted my Mi A1 and banking apps are working normal. Not sure how safety check is maintained using the the root method mentioned in thread. But I'm glad it works :)
[Xiaomi Mi A1 Guides, News, & Discussion] sunshinebhushan:
Tez app by google is not working with root on this device. Waiting for magisk to work on this device.
[Xiaomi Mi A1 Guides, News, & Discussion] saraomani:
Yeah, just realized Tez isn't working probably there are more. I shouldn't update my banking apps which are working right now till we get the Magisk support.
[Xiaomi Mi A1 Guides, News, & Discussion] sunshinebhushan:
Magisk just got supported for our device. Head over to development thread.
[Xiaomi Mi A1 Guides, News, & Discussion] Devansh Bhinde:
Device stuck on logo after every reboot and have to use step 4 (root) to boot the phone every time.

---------- Post added at 07:18 PM ---------- Previous post was at 07:16 PM ----------

Same problem.Any workaround?

Edit: Worked after the inject SuperSu option.Thank you!
[Xiaomi Mi A1 Guides, News, & Discussion] saraomani:
In development section I can only see 3 threads for TWRP recovery. Can you please link to the magisk thread?

Update: Nevermind, found it :)
[Xiaomi Mi A1 Guides, News, & Discussion] saraomani:
Hi [MENTION=5393309]ghpranav[/MENTION] , I really apprecitate your work with AIO tool, can you please also provide stock boot.img so if user want to go back to complete unroot and stock.
[Xiaomi Mi A1 Guides, News, & Discussion] ZanaGB:
Will this survive future updates? Furthermore, could i theoretically update to Oreo with this? or would the OTA be broken?

So far it seems to be doing OK.

Also. do i need to keep flashfire for this to work?
[Xiaomi Mi A1 Guides, News, & Discussion] Ammo thind:
switching between ambient and normal lockscreen touch works but not go to unlockscree

sir please help me i faced black screen issue on mi a1 then i full reset phone by fastboot erase userdata and cache now my phone is not booting up with september or august patched boot.

so i think that stock boot image will solve that

so please provide me link of stock boot for mi a1
[Xiaomi Mi A1 Guides, News, & Discussion] subhoghatak:
Links to the tool with September patch! and will it affect future Android OTA updates ?

---------- Post added at 12:17 PM ---------- Previous post was at 12:16 PM ----------

U can use the MI Flash tool to recover.

https://androidmtk.com/download-xiaomi-mi-flash-tool
[Xiaomi Mi A1 Guides, News, & Discussion] tosmopolitan:
Great tool! Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] Dornyx:
I don't know how to perform these steps. Could someone help me, please?
[Xiaomi Mi A1 Guides, News, & Discussion] kdng:
Is it possible to root with a locked bootloader?
[Xiaomi Mi A1 Guides, News, & Discussion] ferhatugur:
no
[Xiaomi Mi A1 Guides, News, & Discussion] rockice:
I have unlocked and rooted my phone. Can I still keep rooted after I re-lock bootloader?
[Xiaomi Mi A1 Guides, News, & Discussion] 25251325zz:
After being rooted, my phones cannot install update via OTA. Any suggestion ?
[Xiaomi Mi A1 Guides, News, & Discussion] NITRO_100:
I guess you should flash untouched boot file which will deroot you but I'm not 100% sure.
[Xiaomi Mi A1 Guides, News, & Discussion] paras_143:
Can we flash latest update with flashfire? I have rooted with twrp recovery.
[Xiaomi Mi A1 Guides, News, & Discussion] manu730:
Waiting confirmation and the option to unroot in the tool
[Xiaomi Mi A1 Guides, News, & Discussion] ferhatugur:
last week i tried the same but stuck with bootloop. you need to keep the BL unlocked.
[Xiaomi Mi A1 Guides, News, & Discussion] sunshinebhushan:
I couldn't update to October build either. Can you share the non-patched stock boot.img for September build?
[Xiaomi Mi A1 Guides, News, & Discussion] NITRO_100:
I don't have it, you can download factory image and extract it
[Xiaomi Mi A1 Guides, News, & Discussion] sunshinebhushan:
OK. I got it here

Edit: Flashed the Sep stock boot.img still ending up in error for Oct build. BTW I have Aug build in my other slot i.e. slot b
[Xiaomi Mi A1 Guides, News, & Discussion] manu730:
Maybe if build.prop has change is not possible
[Xiaomi Mi A1 Guides, News, & Discussion] rockice:
Thanks. So I turn off system updates to avoid update error for October build.
[Xiaomi Mi A1 Guides, News, & Discussion] sunshinebhushan:
Anyone who has rooted using this method and successfully updated to oct build? Kindly help to update.
[Xiaomi Mi A1 Guides, News, & Discussion] 25251325zz:
So what should i do next to get the Oct update ?

Will reset factory data help ?
[Xiaomi Mi A1 Guides, News, & Discussion] kunalgargmba:
October update has been released for MI A1. Can you please create the patched image for October release? I just checked and found that there is only Sep & Aug patched images available for download.
[Xiaomi Mi A1 Guides, News, & Discussion] 25251325zz:
so... did we have any update ?
[Xiaomi Mi A1 Guides, News, & Discussion] dinozaur516:
it should be better to wait some time, as I understood. First of all no panic, just wait. And our many respected developers will do their work and make us happy :)
[Xiaomi Mi A1 Guides, News, & Discussion] tosmopolitan:
Guys try reflashing stock boot image, on both your A and B partitions(for example flash august stock on A and september stock on B). That is how I fixed it personally. Your OTA is failing because there is a problem with your A partition too(this patched_boot.img somehow ****s up your other partition too, I wont be using this tool again).
[Xiaomi Mi A1 Guides, News, & Discussion] ForTheOne:
Same is the case with me. Please help!!:confused::confused:
[Xiaomi Mi A1 Guides, News, & Discussion] sunshinebhushan:
I resolved the issue by flashing the stock firmware through Miflash.

But somewhere I read that, flashing Sep stock boot in one partition and Aug stock boot in the other has succeeded to install the Oct update.
[Xiaomi Mi A1 Guides, News, & Discussion] ForTheOne:
I am confirming this. This is the way I was able to update.
[Xiaomi Mi A1 Guides, News, & Discussion] androwide:
Patched boot img for october

Hi devs, where is the october pached.img?
[Xiaomi Mi A1 Guides, News, & Discussion] krakaku:
Hi guys,

I want to enable camera2 api and install gcam, but I don't need root for any other reason.

I was thinking that I can use this tool to:

unlock the bootloader

select option 3 from the menu to "root" the device (

without

using the patched boot.img)

edit build .prop

restart the device and lose root

My major concern is, if after all these I update via OTA, will I face any issues (bootloops, etc.) and will the build.prop stay edited?

Thanks!
[Xiaomi Mi A1 Guides, News, & Discussion] xvagosx:
I want it for the exact same reason, Google Camera. However, we need the patched boot.img to get that tethered root. When you select option 3 it will try to flash (boot, not flash) the patched boot.img, so without the corresponding October one the tool does nothing.

However, on a Greek forum I've read that someone did it as you describe (with the September Security Patch and the respective patched boot.img). He unlocked, rooted with Sept patched.img, edited build.prop, installed GCam, rebooted and lost root, build.prop was still saved. He has not posted yet about October OTA and whether it messed things up. I've sent him a PM and I'm waiting.

I'll keep you posted.

I'm thinking if it's worth it to flash a September Security Patch stock rom, perform the aforementioned actions, and then update to October just to see if it works. But I'm too afraid to do so because I'm left without a phone if anything goes wrong and tomorrow's a big day for my job...
[Xiaomi Mi A1 Guides, News, & Discussion] keeent:
Let's wait and see :)
[Xiaomi Mi A1 Guides, News, & Discussion] krakaku:
Oh ok! I'll try this and I'll let you know.
[Xiaomi Mi A1 Guides, News, & Discussion] songwut8999:
You have patched_boot-Oct.zip

You have patched_boot-Oct.zip
[Xiaomi Mi A1 Guides, News, & Discussion] Klirioth:
Can I unlock bootlader with the update october using this tool? or its only for september update?
[Xiaomi Mi A1 Guides, News, & Discussion] Aly Rezz:
Permissions From Xiaomi?

What about the permissions from Xiaomi? I mean they have a website where we need to request them to unlock our phone. So is it legal to unlock the device with this tool without any permissions??

---------- Post added at 06:11 PM ---------- Previous post was at 06:07 PM ----------
[Xiaomi Mi A1 Guides, News, & Discussion] kyro:
the tool has virus if i try to download, Win defender removed it . Why is XDA allowing virus/malware to be distributed like this ?
[Xiaomi Mi A1 Guides, News, & Discussion] NITRO_100:
It doesn't have virus, false positive.
[Xiaomi Mi A1 Guides, News, & Discussion] zabed akhtar:
not working rooting method
[Xiaomi Mi A1 Guides, News, & Discussion] leowjc:
So this thread is abandoned.
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
UPDATE

Sorry for taking this much time, but I was quite busy due to studies. Anyway, I have updated the links & added Oct build support. Also, due to many requests, I have even uploaded the stock boot.img . Enjoy :good:
[Xiaomi Mi A1 Guides, News, & Discussion] zazzy24:
Please check if you are flashing the correct patched boot image and follow the instructions properly, it will work for sure..
[Xiaomi Mi A1 Guides, News, & Discussion] deepesh_p:
Root—Install Google Camera—Lose Root—Continue Updates

Hi ghpranav, thanks for your awesome work. Having gone through the entire thread, I did find one question on the previous page that asked my exact question but hasn't been answered. Please help.

Situation:

1) Phone already on latest stock Oct security patch.

2) Want to root only to make the necessary build.prop edit to install gCam.

3) Don't mind losing root once that is done, as far as the build.prop edit sustains itself to make the gCam work without issues.

4) Want to continue to receive OTAs.

Side note: not very familiar with the rooting process, especially with the lack of knowledge about A/B partition and the current active partition my system is running on. Just thought you should know to guide me better. Thanks :)
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
You can use my tool to temporarily root your device. Just follow the Rooting procedure as given in the 2nd post. But don't use FlashFire to install SuperSu, so that you won't make the root permanent. Instead, with the first boot, make necessary changes which you want in build.prop & reboot. Then, root will be lost, but your changes will retain. But don't forget that "any" change in system partition will result in you not getting any OTA updates...
[Xiaomi Mi A1 Guides, News, & Discussion] deepesh_p:
Thanks, that provides much clarity! Isn't there a workaround to keep both the better (gCam) camera experience while also retaining safe and fast OTAs updates? It would be a bummer to choose only one of the either. Almost makes it seem as if Google and Xiaomi don't want you to have a wholesome experience. Look forward to a possible workaround from you. Great work :)
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
There's one way. Let's say you are presently on slot A, now you root your phone temporarily & make modifications to build.prop. Now when an OTA update arrives, switch to slot B, & then you'll receive the OTA & you can update your phone from there. Now, you'll be in the latest update & also you'll retain the modifications in slot A :)
[Xiaomi Mi A1 Guides, News, & Discussion] Devansh Bhinde:
There's no patched_boot.img in the folder.Or am I missing a detail step?
[Xiaomi Mi A1 Guides, News, & Discussion] deepesh_p:
That sounds amazing!! How do I know what slot I am on and how do I switch between them?? Can't wait to give it a shot. So excited!

Edit: Also, what happens when the next to next OTA arrives? Wouldn't that want to go to the previous slot (slot A as per your example)? Will it be a problem then?

Sorry, for all the granular ask, the behind the scenes update with A/B partition seem magical but also very confusing at times.
[Xiaomi Mi A1 Guides, News, & Discussion] leowjc:
thanks for your update. Will you be adding function to support OTA updates? say, adding option to fastboot into slot a, and etc.
[Xiaomi Mi A1 Guides, News, & Discussion] ghpranav:
Thanks for reporting. The file has been fixed. Please re-download the patched October file. Or just rename boot.img to patched_boot.img :p
[Xiaomi Mi A1 Guides, News, & Discussion] Devansh Bhinde:
No problem I tried renaming but it didn't work.Is the Patched file 30mb? And Stock 60mb?

Edit:Rooted
[Xiaomi Mi A1 Guides, News, & Discussion] androwide:
How to Flash October Security Patch file, if i have already ROOTED with September Patch??
[Xiaomi Mi A1 Guides, News, & Discussion] blackyz01:
How to patch October update
[Xiaomi Mi A1 Guides, News, & Discussion] androwide:
if i flash the stock ROM downloaded from Xiaomi's website, using MiFlash Tool, will it UNROOT my Mi A1 phone, please let me know. thanks.
[Xiaomi Mi A1 Guides, News, & Discussion] rkview37:
Yaa,it will unroot for sure
[Xiaomi Mi A1 Guides, News, & Discussion] androwide:
thats COOL, thanks for this quick reply..
[Xiaomi Mi A1 Guides, News, & Discussion] cornion:
Hi, can i relock the bootloader after edit buildprop without inject the supersu.
[Xiaomi Mi A1 Guides, News, & Discussion] fedextopone:
Update Rom Via Ota

I have unlock bootloader and root my mia1 using your tools v2. Can i update my mia1 via ota without damaging (bootloop/brick) my handphone ?

I get a notification to update my phone (75.7MB update size).
[Xiaomi Mi A1 Guides, News, & Discussion] androwide:
its not recommended to Relock the bootloader after system modification, it can cause hard brick to your device,

---------- Post added at 08:23 AM ---------- Previous post was at 08:19 AM ----------

yea you can update ur device without any issue, just download the Mi A1 Stock Rom file, and MiFlash tool, and flash the ROM file on your device, keep in mind that it will UNROOT your device, but you can ROOT it again with the same method, also there is no data loss, so enjoy, and let me know if you have any questions, follow this guide to complete it,
[Xiaomi Mi A1 Guides, News, & Discussion] deepesh_p:
Hey,

I had a query that the OP [MENTION=5393309]ghpranav[/MENTION] did answer but I couldn't get the changing the slot bit of his response.

Basically, I just wanted to root only to make the build.prop changes to enable camera2API and install Google camera. Post that I don't mind losing root and want to make sure I keep getting OTA updates.

My query is—

1) How do I know if I'm running on slot A or B?

2) Let's imagine I'm on slot A. I will now unroot slot A using this tool.

3) Now I'll make the necessary build.prop changes to enable camera2API.

4) As per [MENTION=5393309]ghpranav[/MENTION], I should now change to slot B to make sure I get the next update. How do I do that?

5) Once I do boot to slot B and install the next update (say November patch), what happens when the December update comes and it wants to install on slot A? Wasn't it rooted? Will it not create a problem then?

Hope I'm clear enough in explaining my concern for you to help answer my questions. FYI, I'm running stock ROM with the latest second security patch of Oct (75 mb one). I haven't unlocked my bootloader or rooted my phone yet. Look forward to your instructions :)
[Xiaomi Mi A1 Guides, News, & Discussion] a3des:
To find out which partition is active:

adb devices
adb reboot bootloader
fastboot devices
fastboot getvar all

For switching partition:

fastboot set_active a
fastboot reboot
[Xiaomi Mi A1 Guides, News, & Discussion] drdhavalnaik@gmail.com:
successfully rooted but after rooting lost WiFi working so back2stock for now... need a brief procedure to root mi a1 without loosing any functionality ... thanks in advance up2date till last update..
[Xiaomi Mi A1 Guides, News, & Discussion] nilkanth.marshiwane:
Root with magisk 14.4.All modules now working.With magisk 14.4 I personally didn't loose any functionality. Working great!
[Xiaomi Mi A1 Guides, News, & Discussion] drdhavalnaik@gmail.com:
can u please give me the detailed procedure to root with magisk... thank you in advanced