yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] SpectraFun:
Need Miui Flash tool or can i use the bat only?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] ItzAGuy:
You are a literal lifesaver. Phone has been bricked for 3 months because MiFlash wasn't allowing me to flash critical partitions. Thank you so much
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Niktendo:
Currently there is no Pie fastboot image available for the Mi A2, if available, I will update this thread:)
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Niktendo:
As far as I know, yes, unless you sideload the OTA as mentioned here: https://xdaforums.com/mi-a2/how-to/ota-v9-6-5-0-odimife-t3823445

Or use the crafted fastboot image here:

https://xdaforums.com/mi-a2/how-to/aio-pie-installation-ota-fastboot-data-t3877130

But no guarantee if this would work. You CAN brick your device but at a very low probability.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Cizzle4:
looking for last update fastboot images? Here:

http://bigota.d.miui.com/V10.0.2.0....0.PDIMIFJ_20181206.0000.00_9.0_02b8deeb6d.tgz
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Shqip:
omg your a life saver brooo
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Shifat Islam:
Can I go back to Oreo now in Pie latest
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Cizzle4:
ye sure
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] aman kumar 999:
After flashing successfully Android pie ..v 10.0.2.0

Device only reboot not booting successfully

. Only 9.6.10.0 works non other so plez help me

---------- Post added at 08:51 AM ---------- Previous post was at 08:46 AM ----------

Does this rom works perfectly ..?

In my case device not booting successfully
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] zoli77:
I installed the phone again and it was received. Can you help? Thanks.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] marcin kowalski:
I had the same, try to install using edl, with fastboot switch to edl and use MiFlash and it will be ok
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] zoli77:
fastboot oem edl?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] marcin kowalski:
yes
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] zoli77:
Thanks so well. Thousand thanks!!!:fingers-crossed:
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] realtebo:
could you post a more recent android 9 rom?

please.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] SciG:
You can find the latest OTA-s and fastboot images here:

https://xdaforums.com/mi-a2/how-to/ota-v9-6-5-0-odimife-t3823445
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] swaroopce:
This thread has been helpful with info. Thanks !
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] s.atha:
Not working out

Tried flashing this Android 9.0 [V10.0.9.0.PDIMIXM] with miflash did not worked..

Then tried with cmd codes everything able to write and flash but system A & System B, Failed to flash..

Please give me solution what to do asap.. Thanks
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Aerobatic:
Official fastboot ROM 10.0.13.0 August 2019 Update: http://bigota.d.miui.com/V10.0.13.0...0.PDIMIXM_20190807.0000.00_9.0_9083804c9e.tgz
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] vasu1:
Hi, bro from where are you getting fastboot links? Those aren't updated at en.miui.com? Can you provide me Mi A1's last two latest links for fastboot too?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Niktendo:
en.miui.com has been migrated to c.mi.com, so there are no new images. I'm getting the links from postings here and other various sites because Xiaomi doesn't update their list regularly at all.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] nadia p.:
Anyone know where/how to download/access 10.0.14.0 ROM or OTA update?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] hisham2630:
I found unofficial fastboot rom [MENTION=1125026]4pda[/MENTION]

http://4pda.ru/forum/index.php?showtopic=911999&view=findpost&p=89037254
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] akshay2shah:
delete
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Aerobatic:
No, this is "payload.bin OTA image" which may be flashed in recovery. Unofficial fastboot image from 4pda (link is 2 posts above) is just merge of patition images unpacked from this payload.bin with other files (missing in payload.bin) taken from 10.0.13.0 stock fastboot ROM image, - no newer published by Xiaomi yet).

And yes, link to "10.0.15.0 payload.bin OTA image" have already been published in another thread: https://xdaforums.com/showpost.php?p=80611389&postcount=33.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] lept_2014:
Official Firmware V10.0.17.0.PDIMIXM (.TGZ)

patch November 2019
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] ViVa[DOUD]:
Android 9.0 [V10.0.17.0.PDIMIXM] work's like a charm

Android 9.0 [V10.0.17.0.PDIMIXM] - work's like a charm.

I was on AICP 15(android 10), but had an issue with EToken from BCR.... F**.... App.....( if magisk app, or su is installed( not even rooted) the app wont work)

I had a few issues with installing it, Xiaomi MiFlash Tool was worthless, I installed my ADB drivers, all the software necessary for rooting and installing twrp, then in ADB folder i extracted all the files from the rom.

Entered the bootloader and then to EDL Download mode.

Then i started as administrator the FLASH_ALL.BAT file, and waited for the process to end, after that entered the bootloader and from adb hit the "fastboot -w" command.

After the boot, and seeing that the phone works, i hit the command to lock my bootloader.(be carefull, don't use it before you are sure that everything works)

The phone is like brand new(after 10 different android 9/10 roms installed in a few days) :)) .... i miss the GCam........

Works like a charm, and the battery is great, before flashing custom roms, the SOT was ~2:30h(100% to 10%), now, from 92% to 27% it's 4h(and still rocking)

Thank you for posting this thread! :highfive:
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Badotti:
My A2 has the problem of not connecting to the PC, so I can not use fastboot, root or anything ... But I can do the flash opening the phone via EDL ... Is there any ROM already with root? That way I could install TWRP and Pixel Experience and Gcam ... Thanks.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] paul222008:
Hi, do you have the V10.0.18.0.PDIMIXM December firmware?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Manosdocpap:
http://bigota.d.miui.com/V10.0.18.0...0.PDIMIXM_20191211.0000.00_9.0_33e3d9a287.tgz

I think soon
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Manosdocpap:
According to user reports, the download module of Google Chrome is not working. Browsers like Firefox are working fine, as they are not using the stock Download Manager.

* Fault by download files in Google Chrome.

* Can’t download or loading files/annex/photos in Gmail.

Twoo issues I have after update to December patch.

(Source)

Hello, I have force close with Chrome when I download a picture. Force stop, erase data but same problem

(Source)

Fortunately a Russian user from 4PDA has discovered the root cause of this bug. Xiaomi seemingly forgot to include the ‘local_filename’ column in the database used by Download Manager. The DPM Framework is also broken due to the inclusion of a wrong shared object.

It could be possible that Xiaomi will reissue the update in the near future due to these showstopper bugs. The unavailability of the full OTA package might be an indicator towards the speculation

https://piunikaweb.com/2019/12/16/mi-a2-december-patch/
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Antusuprik:
I got error : "Flash bluetooth_a error"
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] merloigor:
You need to use "fastboot flashing unlock_critical" after unlock bootloader
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] _v._.k:
Downlink not working for this " Android 9.0 V10.0.18.0.PDIMIXM "

What's the reason?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] lept_2014:
Because it has never worked.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] _v._.k:
could u tell me in detailed?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] 1N4148:
V10.0.18.0.PDIMIXM had problems with the built in download manager for various Google Apps like Chrome, Gmail, etc.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] ankur3290:
How to flash image using mac?

[Edit]Now I am getting "Missmatching image and device" error. How to fix it?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Aerobatic:
Link to official fastboot ROM image of Mi A2 Android 10 QKQ1.V11.0.10.0.QDIMIXM

Fastboot ROM image: http://bigota.d.miui.com/V11.0.10.0....QDIMIXM_20200521.0000.00_10.0_fc90551230.tgz

(Full OTA for stock recovery ADB sideload: https://bigota.d.miui.com/V11.0.10....Global_V11.0.10.0.QDIMIXM_c9e3ef9494_10.0.zip )
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] lept_2014:
Finally a TGZ version!!! Thank you very much, [MENTION=5835303]Aerobatic[/MENTION]
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Hello_dont_panic:
Thanks.... It helped a lot
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Aerobatic:
Official fastboot ROM image A10 V11.0.11.0.QDIMIXM (June 2020 security patch)

http://bigota.d.miui.com/V11.0.11.0....QDIMIXM_20200610.0000.00_10.0_512a1978b3.tgz
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Manosdocpap:
Thanks a million
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] thesebastian:
I'm trying to revive a Xiaomi MI A2 that died overnight.

After charging overnight, in the morning it was boot looping the Android ONE white screen.

Recovery was not working. (Boot loop) (Even with a "fastboot reboot recovery")

Fastboot works (but bootloader is closed)

I flashed latest rom from this thread ( Android 10.0 [V11.0.10.0.QDIMIXM]: https://bigota.d.miui.com/V11.0.10.0...fc90551230.tgz ) using the "test point method" + Xiaomi Miflash + the latest rom (using flash all / wiping userdata). But after the Miflash is successful. I turn off the cable, connect the battery etc, and turn on the phone and the boot loop in the main screen still happens.

Do you think this is still fixable or definitely I should tell the person to start getting a new phone?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] KevMetal:
All indications are that it has a hardware problem. Flash it with the battery connected. Enter edl with fastboot:

fastboot oem edl

Then flash the stock rom without opening the device.

Try to start it or see if it flashes without an error..

when you finish.. if it hasn't booted..

go back to fastboot.. use :

fastboot oem unlock

Say yes to unlock.. You can lock later..

then do :

fastboot flashing unlock_critical

The using a custom recovery and persist restorer zip from official telegram restore the persist :

fastboot boot recovery.img

*if the phone boots you can lock the boot loader again. why? well if your problem isn't hardware it is likely the update corrupted the persist and by restoring it might fix it.. Miflash doesn't flash the persist even if the persist.img is in the file... If you are knowledgeable enough you can edit the programmer xml to flash the persist but the method above is a workaround in case you don't. Persist can get corrupted when updating from one major software version to another like 9 to 10 then your hardware doesn't communicate correctly with the installed software

It that fails it's hardware.. But you could still check that all the hardware like camera and other connections aren't a little loose from falling

Failing that get a new phone
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] thesebastian:
Hi Kev,

Thanks a lot for the feedback.

1) This is a stock phone, never modded. So the the bootloader is completely locked in this phone and Developers Options never used to allow boot loader unlock. Can I still use fastboot ? The only way I found to "flash" (assuming it's flashing because it takes 5 minutes to complete. Is using the "Miflash app" after using the test point method and running the flasha-all via that Xiaomi app.

- Because the boot loader is locked. I know that if I boot into fastboot and use fastboot commands like "oem unlock" or "flashing unlock_critical" I get the "bootloader locked" error.

2) Do you know what's the command to update that "persist" partition? I assume I need to flash that both in A and B? I assume for this I need to edit the flash-all file, test point, and flash with Xiaomi MiFlash?

I could give it a try later today if you think this persist partition could fix the issue. (My brother has the phone, so I have to do this remotely with his help).

I'd do this with the latest rom from this topic
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] KevMetal:
If you never toggled the oem unlock option in dev settings the workaround won't work and you need to modify the programmer xml to flash persist

Open the programmer. Xml file that comes inside the fastboot rom which you extracted to flash with miflash

Use a program like notepad++ or the like. Scroll right to the bottom. There are many lines ... Look at a line you know the programmer IS flashing like "system"

Then compare it to the line related to "persist".. It is a few lines higher up from " System" ... If you look closely you will see there is an entry called filename... In the system line the entry reads : system.img .. BUT in the persist line there is no filename.. Add that name now.. >< ... So make it filename >persist.img< . Soo then just save it and flash usually like the test point method you were using before

The programmer will flash both slots automatically.. If there are two slots.. Miflash always flashes both in fastboot or edl mode if the device is A/B..only otg or recovery flashes one slot
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] thesebastian:
I opened this file: "rawprogram0.xml"

I have 2 "persist" lines: One has the .img (label="persistbak") the other one doesn't have it (label="persist")

<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="persist" num_partition_sectors="65536" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="32768.0" sparse="false" start_byte_hex="0x10000000" start_sector="524288"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="persist.img" label="persistbak" num_partition_sectors="65536" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="32768.0" sparse="false" start_byte_hex="0x12000000" start_sector="589824"/>

Q1) I only need to modify the top one? By replacing filename="" with filename="persist.img" so it's similar to the bottom one?

Q2) So even if I select the flash-all option in MiFlash, This rawprogram0.XML is used by the app?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] KevMetal:
Change both lines. Then save and flash all but in edl. The programmer file is what tells miflash what to flash where.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] thesebastian:
Thanks. I tried but phone still didn't boot. I think it's not fixable :(

Some boot loops at the begining.

Then a long boot ending with "Failed to boot"

Recovery boot loops like always and fastboot the only thing that works.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] KevMetal:
Sounds like a goner... If you would be willing I might be interested in buying the front camera sensor.. Mines dead
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] tytydraco:
Flash an older Android 9 build (not the latest 9, like old old). Worked for me. Just the 10 isn't working for me.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] thesebastian:
Thanks anyway for the help.

Regarding the sensor. I'll let my brother know. But probably he might try to sell the dead device locally in his country in person. For screen repair or something.

Do you have any android 9 recommended version to try this? (From this thread)

I assume ill have to flash persist as well because I flashed one from latest firmware.

Should I try the first 9.0 from this thread?

Android 9.0 [V10.0.2.0.PDIMIFJ]:

https://bigota.d.miui.com/V10.0.2.0....02b8deeb6d.tgz
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] KevMetal:
Before you do anything else just run the cmd :

fastboot getvar all

*copy and paste all the info here so we can see what's up with the device

But yeah you could try flashing any fastboot rom for mi A2 if you wanted..

But if you are gonna roll back it's always better to roll all the waaaay back and get the oldest version of Oreo for fastboot and try that.

The persist operates independently from the OS so upgrading or downgrading it doesn't necessarily affect it

But yeah check the programmer file and try flashing it at the same time.

Also one more thing. When you flash the persist the phone is usually a little wonky.. So it usually requires a few reboots to get back to 101%

So try hard rebooting it 2-3 times before accepting that it hadn't worked.

But the output in getvar might reveal something

Are you sure your brother didn't try a conversion and didn't want to tell you.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] thesebastian:
I'll try this when my brother is available and can check this.

I only know that

Fastboot getvar anti

Retrieves a "1" because I tried that yesterday following one of the many tutorials on the web.

No. The user of this phone was my brother's girlfriend. And she doesn't know anything about bootloader, developer's settings. Etc.

She is 0% technical user.

My brother as well. He didn't know how to use fastboot etc.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] KevMetal:
Well in that case it is most likely a hardware failure or corrupted persist partition due to update

For future reference tell your brother and girlfriend to always toggle oem unlock to on in dev settings and to authorise their android phones via adb debug to their PC because it just makes it easier for anyone to fix it or eventually mod it down the line
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] RiFeee:
Mi A2With Wayne back to Jasmine

Can I switch from a Mi A2 with Wayne (bricked by the previous owner by the way) back to Jasmine?

If it's possible how can I do it?

Just got the phone and the previous owner didn't know what he was doing and bricked the phone (that is with bootloader locked too)

:crying:
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] lept_2014:
July patch

V11.0.12.0.QDIMIXM
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Manosdocpap:
Thanks again!
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] techieboy2020:
How long is the first boot? I already flashed the latest rom and I'm afraid this is a bootloop, although the flashing is successful.

---------- Post added at 05:56 AM ---------- Previous post was at 05:45 AM ----------

What could be the fix for bootloop? My phone booted for a long time after flash.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] techieboy2020:
I flashed Android 10.0 [V11.0.12.0.QDIMIXM] in MiFlash and it was successful, but I still got bootloop. Can someone help me? My bootloader was unlocked.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] HRSE:
have you tried erasing user data?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Aerobatic:
Why do you use Miflash, which is developed to support MIUI ROMs, and is needed (in specially patched version) for TestPoint/EDL unbricking only, and even in that case 2nd reflash with fastboot is recommended or even mandatory with stock ROMs?

Try to use fastboot: official stock fastboot ROMs links are published here.

In normal use case (flashing stock updates) - use "flash_all_except_data.bat" (preserving user data in /data partition).

When reverting from a custom ROM, downgrading version, or upgrading major version (8.1 -> 9.0 - > 10.0) use "flash_all.bat" (erasing /data).
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] drawun:
I'm confused. Miflash is used to flash fastboot rom, isn't it?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Aerobatic:
No, fastboot ROM image is designed to be flashed in fastboot.exe - one of 2 major command-line utilities included into Android Platform Tools (2nd one is adb.exe). https://developer.android.com/studio/releases/platform-tools

MiFlash is just a 3rd-party (Xiaomi) wrapper over fastboot interface.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] drawun:
So MiFlash is just GUI version of that. Sounds like.

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

Anyway. I'm interested to try this method. Please correct me if I'm wrong.

1) Download fastboot rom and extract into a folder.

2) Boot phone into fastboot and connect to the computer.

3) open terminal in extracted folder and run:

i) fastboot devices

ii) fastboot flashall

That's it? Assuming my phone is unlocked and I don't care the data in there and just want a fresh, stock phone.

-using Ubuntu 20.4.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] HRSE:
after extracting full fastboot image, you will see some .bat and .sh files.

because you are using Ubuntu, you can ignore all .bat files (they are for windows)

short descriptions for some commonly used files:

- flash_all.sh : ERASE user data & flash

- flash_all_except_data.sh : (as file name)

- 'lock' are for relocking bootloader

I'm a windows user, and my steps are below:

0) get fastboot & adb from https://developer.android.com/studio/releases/platform-tools , extract to some folder for example c:\tools\

1) Download fastboot rom and extract into a folder., for example c:\rom\

2) Boot phone into fastboot and connect to the computer.

3) open terminal in android sdk tool folder (step 0) and run: c:\rom\flash_all_except_data.bat

4) root
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] drawun:
Hi. Could you elaborate more on the steps to flash using this method? Assuming I can edit the xml. What should I do next? Boot the phone into fastboot, connect it to a computer and run miflash tool normally?

My front camera is having issue. I can't use front camera in any app. It happened when OTA update from Pie to Q(was on stock). Even on WhatsApp video call, I can only do it using rear camera. Opening camera app and switching to front camera will give "can't connect to camera" error. The issue is still there even after flashing a few custom roms.

I wish to try this method and hopefully will fix the issue.