yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] sumit17:
goto extracted fastboot rom's images folder and find partition.xml file , you will see exact commands for your mobile.
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Update: Version: V10.0.9.0.PDHMIXM (Android P) added :)
[Xiaomi Mi A1 Guides, News, & Discussion] himzz0007:
hi i am on evolution rom i want to sell my phone so i have to go back to stock pie.........should i simply flash this rom via mi flash and locked the bootloader??? or any other method?
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
This is what I would do on a Windows machine ;) Hit thanks if helpful :)
[Xiaomi Mi A1 Guides, News, & Discussion] djzero86:
I am running the v10.0.10 version, and get a new update? 100 mb...
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
The monthly security patch :) Hit thanks if helpful
[Xiaomi Mi A1 Guides, News, & Discussion] Apih95:
I cant update this . Why ? I returned from los16 to stock rom just now. The update is huge, after waiting to complete and it can't update really make me frustrating. Is there any other way? Like flashing OTA package in stock recovery or something. Sorry long time not using stock rom :silly:
[Xiaomi Mi A1 Guides, News, & Discussion] KaaMyA:
Your update gets downloaded, or get an error during that Procedure?

Is your device Rooted?

If yes, you won't get it until you restore stock recovery.

If not, clean Google's services cache and you again.
[Xiaomi Mi A1 Guides, News, & Discussion] Apih95:
Update downloaded..when press to install it say cant install..mine is not rooted. Just got back to stock rom and disable google app that i dont use such as duo and etc..
[Xiaomi Mi A1 Guides, News, & Discussion] Apih95:
I think i know what cause the update to be failed..i not clean flash before return to stock. Im just using save user data , then got problem like phone is force close. Later got system destroy. After clean flash last night my phone working without force close anymore . So gonna try to update back :victory:
[Xiaomi Mi A1 Guides, News, & Discussion] Subhajitdas298:
Hi please share latest ROM link.

Thanks in advance.
[Xiaomi Mi A1 Guides, News, & Discussion] cmenghi:
from https://t.me/notify4twrprom

Jan Security Update for Mi A1

Changelog :-

-Jan 2020 security update

Official ROM Update TWRP

(PKQ1.180917.001.V10.0.17.0.PDHMIXM)

https://androidfilehost.com/?fid=4349826312261706200

Custom ROM Modem Update (Jan 2020)

https://androidfilehost.com/?fid=4349826312261671198

ROM Source:

https://hugeota.d.miui.com/V10.0.17.0.PDHMIXM/miui_TISSOT_V10.0.17.0.PDHMIXM_34ff76e301_9.0.zip
[Xiaomi Mi A1 Guides, News, & Discussion] burimi007:
Hi everyone, its been long time since i updated my Mi A1, im on july update 2018, can i flash lastest rom Jan Update with MiFlash without losing data ? I have bootloader unlocked and rooted with Magisk.
[Xiaomi Mi A1 Guides, News, & Discussion] doshimeet62:
sec.dat file flash error

i am getting error in sec.dat file

i.e in this command

fastboot flash sec /images/sec.dat

help me resolve the same.

This is the error>>>>

C:\adb>fastboot flash sec images/sec.dat

target reported max download size of 534773760 bytes

sending 'sec' (0 KB)...

OKAY [ 0.031s]

writing 'sec'...

FAILED (remote: flash write failure)

finished. total time: 0.069s

---------- Post added at 11:35 AM ---------- Previous post was at 11:27 AM ----------

i am getting error in sec.dat file

i.e in this command

fastboot flash sec /images/sec.dat

help me resolve the same.

This is the error>>>>

C:\adb>fastboot flash sec images/sec.dat

target reported max download size of 534773760 bytes

sending 'sec' (0 KB)...

OKAY [ 0.031s]

writing 'sec'...

FAILED (remote: flash write failure)

finished. total time: 0.069s
[Xiaomi Mi A1 Guides, News, & Discussion] ushilives:
Cheers dude! Never heard of this all in one tool.
[Xiaomi Mi A1 Guides, News, & Discussion] blacklist3d:
July fastboot image https://bigota.d.miui.com/V10.0.23....0.PDHMIXM_20200707.0000.00_9.0_b49c1d0e32.tgz
[Xiaomi Mi A1 Guides, News, & Discussion] xiaomiA1:
@doshimeet62 have you fixed the issue with error in sec.dat file? I tried to flash the two latest stock images, but I get the same error
[Xiaomi Mi A1 Guides, News, & Discussion] YK RAJ:
Hi,

Is anyone able to solve the sec.dat error?

I'm also facing the issue with Redmi Note 5 Plus(Vince).

Thanks in Advance!
[Xiaomi Mi A1 Guides, News, & Discussion] coremania:
Camera gets fast after a bit usage, WhatsApp is stable here,

Bt drain will be watched tomorrow after some hours of usage.
[Xiaomi Mi A1 Guides, News, & Discussion] Blackheart151:
gave it service center,

they are replacing the whole motherboard

have to wait 3 days without any phone...

downloaded the update before this post was up

and tried it.. having a bad time... just giving a heads up so no else does it..
[Xiaomi Mi A1 Guides, News, & Discussion] tuelho_post:
hello could someone tell me briefly where the image was unpacked?

---------- Post added at 06:09 PM ---------- Previous post was at 06:02 PM ----------

hello could someone tell me briefly where the image was unpacked? ;)
[Xiaomi Mi A1 Guides, News, & Discussion] meindianbro:
Google Drive Link , Fastboot Rom N2G47H.7.12.29 (Android O) Size: 1084M

tissot_images_7.12.29_20171228.0000.00_8.0_c9a6ea979b.tgz 1.36GB

https://drive.google.com/file/d/1V6qn9HRiXD-pzb8xeHW0jupDzX90T2fX/view?usp=sharing

tissot_images_7.12.29_8.0 (Extracted Folder) 2.96GB

https://drive.google.com/drive/folders/1LHLRR0BoGjulddEsTJSWcwahNn3q3BoO?usp=sharing
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
If you are looking for the download link, it is this one http://bigota.d.miui.com/7.12.29/tissot_images_7.12.29_20171228.0000.00_8.0_c9a6ea979b.tgz

If you are looking for a tool to unarchive it with for Windows apps like 7-zip or bandizip work, on mac apps like the unarchiver and on linux you already should be fine ;)

If this doesn't help, I am sorry, I just have guessed, what your question meant. :D
[Xiaomi Mi A1 Guides, News, & Discussion] xddxd:
OP, you should tell in your post to not touch the flash_factory.bat or .sh file, as it deletes your IMEI.
[Xiaomi Mi A1 Guides, News, & Discussion] ngohoainam:
my mi a1 phone is currently at Jan update. - Oreo. Now i am having this issue. Can i flash this official image to downgrades??? :confused:
[Xiaomi Mi A1 Guides, News, & Discussion] DJBhardwaj:
Yes, but make sure to wipe the device as well along the process. Downgrading from a higher security patch could often result in bugs if dirty flashed.
[Xiaomi Mi A1 Guides, News, & Discussion] NITRO_100:
I flashed it yesterday (clean all-bootloader stayed unlocked) and I consider it stable, because I haven't had any major issues so far.

What battery drain ? At least after few days you could say if there is battery drain.

-No slow opening camera here

-As I can see it's problem in the stats, not actual bluetooth drain

-no app crash, especially whatsapp since I use it a lot
[Xiaomi Mi A1 Guides, News, & Discussion] Ayush061:
Which is best stable official O or beta O i m confused currently i m in N ? Help which is best btw thm ?
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
http://bigota.d.miui.com/7.12.29/tissot_images_7.12.29_20171228.0000.00_8.0_c9a6ea979b.tgz ;) Use the latest labeled stable
[Xiaomi Mi A1 Guides, News, & Discussion] Ayush061:
How to root it thn without installing twrp installer i can boot twrp or ? Any patched boot.img ?
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
I haven't rooted mine at the moment, but I tested with the TWRP beta images here in the board and they booted fine directly (without being flashed). So this should probably be no issue.
[Xiaomi Mi A1 Guides, News, & Discussion] Ayush061:
Link ...... Beta ? Twrp ! Also in official did u get fp gesture working ?

Edit: got twrp link
[Xiaomi Mi A1 Guides, News, & Discussion] alkesh95:
If you are replying to a particular thread then you don't have to quote whole OP.
[Xiaomi Mi A1 Guides, News, & Discussion] goofball2k:
https://xdaforums.com/mi-a1/how-to/root-mi-a1-oreo-8-0-disabling-ota-magisk-t3728654
[Xiaomi Mi A1 Guides, News, & Discussion] mhdsanto85:
Is there a fastboot image from latest oreo beta? january?
[Xiaomi Mi A1 Guides, News, & Discussion] ngohoainam:
sir, u mean factory reset? :confused:
[Xiaomi Mi A1 Guides, News, & Discussion] kunalshgkr:
After installing latest Oreo stable rom via fastboot I can't login into my Google account. During setup process, the setup stuck on checking for update(my internet connection is stable).
[Xiaomi Mi A1 Guides, News, & Discussion] DJBhardwaj:
Yes. In the MiFlash window, select "clean all" option at the bottom of the window.

---------- Post added at 08:52 PM ---------- Previous post was at 08:51 PM ----------

Reboot and check again. If it still doesn't work, enter stock recovery and wipe cache.
[Xiaomi Mi A1 Guides, News, & Discussion] DrDrag0n:
Hi there, I accidentally ran "Flash_factory.bat" and I am now stuck in a continues booting into device setup - my device freezes and reboots - continues into device setup.

Does anybody know how I can fix this or restore modem and IMEI settings?
[Xiaomi Mi A1 Guides, News, & Discussion] coremania:
Try post 5 maybe

https://xdaforums.com/mi-a1/help/ruined-modem-partition-please-help-t3733909
[Xiaomi Mi A1 Guides, News, & Discussion] jeevan_500:
can any body provide january update fastboot image
[Xiaomi Mi A1 Guides, News, & Discussion] ajegile:
this same as back to new phone with no root and unlocked bootloader ?
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
With the flash_all script yes.
[Xiaomi Mi A1 Guides, News, & Discussion] gunmanrishi:
i tried running the flash all bat file and it doesnt work. How do i manually flash this
[Xiaomi Mi A1 Guides, News, & Discussion] coremania:
You have to unpack the files to your adb & fastboot folder.

Otherwise your not able to flash. You need the *.exe and *.dll files.

https://xdaforums.com/showthread.php?t=2317790
[Xiaomi Mi A1 Guides, News, & Discussion] DJBhardwaj:
What error exactly? Kindly provide a screenshot.

The other way to flash it is using the MiFlash tool.
[Xiaomi Mi A1 Guides, News, & Discussion] gunmanrishi:
Can someone post a link for the Mi flash tool. I click on the BAT file and it opens the CMD and disappears.
[Xiaomi Mi A1 Guides, News, & Discussion] coremania:
Read 2 posts above
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
http://en.miui.com/thread-345974-1-1.html
[Xiaomi Mi A1 Guides, News, & Discussion] Moazzam.anwer:
I am on December security right now, and I want to flash the stock rom so after downloading the rom I extracted the file and then renamed it with . Zip extension and extracted again , after that I opened that folder now I pressed the shift and right click at the same time to enter the command window now which command I should use

fastboot flash_all_except_storage and then enter is right or I am missing something?
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Open a CMD/ terminal and ensure you are inside the extracted folder. After that you can just run:

flash_all_except_storage.bat

(for Windows)

./flash_all_except_storage.sh

(for Linux/ Mac)
[Xiaomi Mi A1 Guides, News, & Discussion] Moazzam.anwer:
Some confusion

That means where that flashallexceptstorage.bat file is listed there I had to open the cmd and then type that command right?
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
correct
[Xiaomi Mi A1 Guides, News, & Discussion] Moazzam.anwer:
Thanks dude
[Xiaomi Mi A1 Guides, News, & Discussion] RicardoRyuma:
"error : Missmatching image and device"

What i do?
[Xiaomi Mi A1 Guides, News, & Discussion] Rawwr:
can someone help me, i was on dec 1 oreo patch, i rooted using magisk.

after jan patch came i tried to update by unrooting and then it stuck on bootloop

i flashed sep patch via flashtool which i had in my pc.

now no matter which rom i flash my device is randomly rebooting. screen freezes and the phone crashes.

PS My imei and mac address is intact.

when i tried flashing 7.12.29 (N) from miui forum it just got stuck on set_partition A for 10 mins nothing happens.

when i tried flashing from stock recovery it showed me failed to mount cache/tmp

please help !
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Here you go, sounds a little bit like you could have issues with your persist partition. For more information and a guide how to fix it please have a look here: https://xdaforums.com/mi-a1/help/help-unbrick-mi-a1-t3711582
[Xiaomi Mi A1 Guides, News, & Discussion] Rawwr:
i tried this method via twrp, will report it back here soon.
[Xiaomi Mi A1 Guides, News, & Discussion] Rawwr:
Hey mate I'm still facing the same issue after flashing the persist partition via twrp, shall i flash it again via cmd ?
[Xiaomi Mi A1 Guides, News, & Discussion] rajputz:
We will continue to get security updates from Mi after flashing this official rom ?
[Xiaomi Mi A1 Guides, News, & Discussion] xivay:
Yes & no
[Xiaomi Mi A1 Guides, News, & Discussion] rajputz:
Couldnt get you...how is it a yes and no.
[Xiaomi Mi A1 Guides, News, & Discussion] xivay:
If you stay completely stock then you'll surely get the updates, but if you root using magisk or twrp you won't get any updates. The guide to update our device rooted with magisk isn't working. If you're rooted & want to update you'll have to remove magisk completely & restore stock rom using flash tool.
[Xiaomi Mi A1 Guides, News, & Discussion] thirakun:
oreo january fastboot rom still not avaiable ?
[Xiaomi Mi A1 Guides, News, & Discussion] xivay:
I've recently found out that the guide works. But for the majority failure polls, it's a still not favourable way to go.
[Xiaomi Mi A1 Guides, News, & Discussion] _mysiak_:
I have Magisk, received OTA, applied it according to the guide and after reboot I had updated phone with root, everything didn't take more than 10 minutes. Didn't have to completely uninstall Magisk nor reflash whole ROM via fastboot ;)
[Xiaomi Mi A1 Guides, News, & Discussion] ProchyGaming:
If you still have the problem install the adb drivers then go to the C:\ driver and folder adb there click on the top bar and type cmd in the command prompt type fastboot set_active a and hit enter after that type fastboot reboot and you're done
[Xiaomi Mi A1 Guides, News, & Discussion] Rawwr:
did it mate, i hope this solves the issue.

been flashing every single rom and still facing the issue.

will report back here.

edit - done

still facing the issue.
[Xiaomi Mi A1 Guides, News, & Discussion] ProchyGaming:
Hmm.. Reflash the stock rom again with full wipe and try it afterwards

Because if you're flashing it with MiFlash then there's a glitch with makes it flashing stuck at "fastboot set_active a" This commands pretty much makes your device go into android because it sets the A partition as primary
[Xiaomi Mi A1 Guides, News, & Discussion] Rawwr:
i reflashed every stock firmware mate, from 7.8.23 to latest oreo january patch.

nothing seems to help me ;-;
[Xiaomi Mi A1 Guides, News, & Discussion] ProchyGaming:
This is very odd. I have just flashed this rom https://xdaforums.com/mi-a1/how-to/ota-official-fastboot-image-n2g47h-7-12-t3728929 and works without any problems. Try this one if you havent already
[Xiaomi Mi A1 Guides, News, & Discussion] Rawwr:
used this already mate, started to face this issue when i fastboot flashed september build

had this problem with september update as well.

got solved with OTA

but the problem is OTA's doesnt get installed. it shows installation error every single time after doing a clean flash
[Xiaomi Mi A1 Guides, News, & Discussion] ProchyGaming:
May sound like a dumb question but have you got the rom from the MIUI website?
[Xiaomi Mi A1 Guides, News, & Discussion] Rawwr:
yes bro
[Xiaomi Mi A1 Guides, News, & Discussion] ProchyGaming:
Then flash it again with "clear all data and lock the bootloader" When youll get stuck on fastboot set_active a go to you command prompt and type fastboot set_active a
[Xiaomi Mi A1 Guides, News, & Discussion] kam1kazze:
flash_all_except_storage is like an OTA upgrade? I mean don't lose data and app configuration?

I would like write my system partition and for what I have understood I cannot use OTA no more, if do this. So can I use flash_all_except_storage instead of OTA for make update?

This Flash are incremental or I can just jump one of this without trouble?

Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
As mentioned in the official post: flash_all_except_storage = Keep your data, bootloader gets re-locked

So, yes, it could be compared to an OTA update
[Xiaomi Mi A1 Guides, News, & Discussion] Amaankhan97:
Is this official rom? Why i can not find it on miui website?

Is this official rom? Why i can not find it on miui website and after installing this will i be able to get ota updates?
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Yes, it is official and you cannot find it at the moment on the official site, because they pulled it again. It was there, that's how I got the link in the first place.
[Xiaomi Mi A1 Guides, News, & Discussion] thirakun:
yes u will get ota update.
[Xiaomi Mi A1 Guides, News, & Discussion] Amaankhan97:
But when and also someone there at mi community saying that Xiaomi does not have any official Oreo ROM and at XDA there are so many unofficial ROM so you might have installed wrong one and only 7.12 is available officially.plz help what to do.

When will I get OTA update of January in this ROM.i have flashed this ROM but it is December patch.
[Xiaomi Mi A1 Guides, News, & Discussion] iG0tB0lts:
Not sure if you solved it, but I just had the problem, turns out I hadn't done sudo apt-get install fastboot , sudo apt-get install android-tools-fastboot
[Xiaomi Mi A1 Guides, News, & Discussion] thirakun:
i flashed this rom, then i got ota january 89MB.

but i flash back to this rom, because january patch have bug on quick reply LINE.
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Updated: Fastboot rom including the January security patch added
[Xiaomi Mi A1 Guides, News, & Discussion] Amaankhan97:
And yesterday I got the January update on previous ROM ?
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Me, too, but that's not a bad thing either :D
[Xiaomi Mi A1 Guides, News, & Discussion] kam1kazze:
Are these incremental update or full update?

translated: can I update my phone jumping some release or have to execute all update in the middle?

Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Full, you can use it to re-setup your phone completely (flash_all) or just to update straight to the latest version (flash_all_except_storage). ;)
[Xiaomi Mi A1 Guides, News, & Discussion] bakosmi:
no, this is January 1 patch
[Xiaomi Mi A1 Guides, News, & Discussion] vikash1994b:
Thread was updated with Jan patch a few days ago,before(when thread was created also when i commented) it was on december patch.
[Xiaomi Mi A1 Guides, News, & Discussion] spdrosin:
Thank you for that thread man.

I moved "flash_all_lock.sh" script in images folder (if I don't this, terminal says that there isn't such a file or directory". In "images" file I open a terminal and I write down "./flash_all_lock.sh"

Script seems to start, but I am getting this error on my Ubuntu terminal:

Any ideas?

Edit: Had to use "sudo" before "./flash_all_lock.sh".

Just for anyone to know who come in trouble with that.

And something else:

Terminal in the end:

What is this supposed to mean? I remember when I flashed patched boot.img for Magisk, my getvar version was a.
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Please try again without moving the script to the images folder (try with sudo), but otherwise the script will fail. The script needs either to be on the same level as the "images" directory or alternatively you have to modify all paths within the script and remove the "images/" part in all of the commands.
[Xiaomi Mi A1 Guides, News, & Discussion] projectkom:
update pleze
[Xiaomi Mi A1 Guides, News, & Discussion] spdrosin:
Yeap, I already did that when I edited my post at the end, but thank you anyway.

About the last lines of terminal:

"Slot a does not exist. supported slots are:

...
OKAY [ 0.017s]
finished. total time: 0.017s
rebooting...

What is this supposed to mean? I remember when I flashed patched boot.img for Magisk, my getvar version was a.
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
What are you talking about? No-one will be able to help you with just two words without context.
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
I could only guess, nevertheless as the last terminal output seems to be "OKAY" did the flashing work after all? Does your device boot or what is the current situation?
[Xiaomi Mi A1 Guides, News, & Discussion] spdrosin:
Yeah, absolutely. Everything worked and thank you so much for the thread/tips.

I was just asking about that slot a/b thing. Anyway. :good:
[Xiaomi Mi A1 Guides, News, & Discussion] rahul-7:
I flashed successfully using -- "flash_all_lock"

Is my device restored to factory default now (boot loader locked), as it was when I bought it? or should I use "flash_all" instead :confused:
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
As described in OP:

Choices for flashing/ Which script to run?

flash_all = Full flash, like factory reset, bootloader stays unlocked

flash_all_except_storage = Keep your data, bootloader gets re-locked

flash_all_lock = Full flash, like factory reset, bootloader gets re-locked

--> It is as clean and fresh and protected as it was when you bought it ;)
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
The a/b thing is just, that you have by now two partitions for boot and system in order to apply FW updates in the background and don't have any more boring progress bars for a FW update being applied like on iOS/ Android devices without a/ b partitions.

Basically what it does, it uses one of them actively and can therefore modify the other while the device is running. After an update is applied to one of them, on the next reboot it tries to boot from the just updated one. If that should fail, it still can automatically recover by just switching back to the previous one.

In order to know and understand better why the error message appeared it would be important to know for which of the commands exactly. The possibilities are:

fastboot flash boot_a /images/boot.img
fastboot flash boot_b /images/boot.img
fastboot flash system_a /images/system.img
fastboot flash system_b /images/system.img

Fun fact: If you use the old format/ syntax for flashing boot or system it should automatically do both partitions at the same time on devices with a/ b partitions. Example for old format/ syntax:

fastboot flash boot /images/boot.img
fastboot flash system /images/system.img
[Xiaomi Mi A1 Guides, News, & Discussion] Natakranta:
[MENTION=3964603]majamee[/MENTION], very good detailed tutorial. Well done mate, thanks!

---------- Post added at 11:20 AM ---------- Previous post was at 11:18 AM ----------

That's interesting, I once read it flashes to currently active slot when not specifying a or b in the fastboot syntax. But I didnt do any testing myself to verify it.
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
OK, to be honest, I haven't tested it in detail by myself to verify, but I read it like I described it. At some point it should be checked by anyone having some spare time, then I could add it to the OP. Wouldn't do that with such unverified information. Thanks for your input :)

----

I also become more and more the feeling when reading through the various problems, that the fastboot version has direct influence on that behavior. Meaning, it would only make perfect sense that a fastboot version prior to a/ b partitions being introduced to the first devices will cause some issues or at least behaves differently.
[Xiaomi Mi A1 Guides, News, & Discussion] N1ck474:
Now it's full stock with bootloader locked ;)