[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Attention: To be able to flash, the bootloader needs to be unlocked (https://en.miui.com/unlock/). Please be warned though: Xiaomi changed something in the method of unlocking the device from May 2018 security update onwards. Now all data will be flushed if you unlock a previously locked device. So please be warned and check the .bat/ .sh scripts for "lock" and "unlock" commands and remove these lines if unsure. If you don't want to unlock your device, you can use everything without the need of editing anything.

Side note: Before everyone is complaining about that kind of change, it makes sense from security point of view: Say, someone steals your phone and he could just unlock the bootloader, he has any possibility to get to your most private data. Just some technical background, but I am not related to Xiaomi or anything, just applying logic.

Introduction:

XIAOMI offers for their official releases also fastboot images including easy to use shell/ batch scripts for flashing.

Luckily, this is also the case for our Mi A1, delivering us a very neat way to easy flash or even emergency rescue our phone via fastboot.

The included shell scripts (*.sh) are meant to be used on Mac/ Linux,

the included batch files (*.bat) are for the Windows users.

Prerequisite:

adb & fastboot have to be installed for the scripts and the flashing to work properly. Please ensure, that your versions are up2date, if you should run into any issues.

Warning: Do not use the flash_factory.bat or .sh file, as it deletes your IMEI.

Android Pie Fastboot Link (official): http://c.mi.com//miuidownload/detail?device=1700333

Version: V10.0.10.0.PDHMIXM (Android P)

Size: 1166M

md5:

n.a.

No Fastboot image found (yet) --> Please use V10.0.9.0 available here under "Previous versions" and update via OTA

V10.0.10.0.PDHMIXM for Mi A1 Changelog

[LIST=2]
[*] June 2019 Security patch
[/LIST]

Previous versions:

Version: V10.0.9.0.PDHMIXM (Android P)

Size: 1616M

md5:

3ded3e7b82097f27ddf176e0399fceba

https://bigota.d.miui.com/V10.0.9.0...0.PDHMIXM_20190514.0000.00_9.0_3ded3e7b82.tgz

V10.0.9.0.PDHMIXM for Mi A1 Changelog

[LIST=2]
[*] Max 2019 Security Patch
[/LIST]

Version: V10.0.4.0.PDHMIXM (Android P)

Size: 1616M

md5:

2cee840c96cdb6e0a9b14fc3c3105ff7

https://bigota.d.miui.com/V10.0.4.0...0.PDHMIXM_20190104.0000.00_9.0_2cee840c96.tgz

V10.0.4.0.PDHMIXM for Mi A1 Changelog

[LIST=2]
[*] FM Radio Adaptive battery and brightness
[*] Simpler ways to navigate your phone
[*] Recommended apps and actions based on your context
[/LIST]

Version: V9.6.8.0.ODHMIFE (Android O, 8.1)

Size: 1616M

md5:

9ea450fe98fbf4883439a934847f9f5d

https://bigota.d.miui.com/V9.6.8.0....0.ODHMIFE_20181031.0000.00_8.0_9ea450fe98.tgz

V9.6.8.0.ODHMIFE for Mi A1 Changelog

[LIST=2]
[*] Fortify your Android One phone with the November 2018 security update from Google, which improves security and fixes bugs.
[*] This update improves the stability of your device and optimizes its performance.
[/LIST]

Version: V9.6.7.0.ODHMIFE (Android O, 8.1)

Size: 1615M

md5:

47d6fd23c7ca5aa538258782aceb3bd2

https://bigota.d.miui.com/V9.6.7.0....0.ODHMIFE_20181015.0000.00_8.0_47d6fd23c7.tgz

V9.6.7.0.ODHMIFE for Mi A1 Changelog

[LIST=2]
[*] Fortify your Android One phone with the October 2018 security update from Google, which improves security and fixes bugs.
[*] This update improves the stability of your device and optimizes its performance.
[/LIST]
[*] [B]Version: V9.6.4.0.ODHMIFE (Android O, 8.1)[/B]
Size: 1559M
md5: [CODE]735823083fba68350ba27f418114f388

https://bigota.d.miui.com/V9.6.4.0....0.ODHMIFE_20180712.0000.00_8.0_735823083f.tgz

V9.6.4.0.ODHMIFE for Mi A1 Changelog

[LIST=2]
[*] Fortify your Android One phone with the July 2018 security update from Google, which improves security and fixes bugs.
[*] This update improves the stability of your device and optimizes its performance.
[/LIST]

Version: V9.5.11.0.ODHMIFA (Android O, 8.0)

Size: 1462M

md5:

1a04581058dc7f27ca18cf8fd74f9413

https://bigota.d.miui.com/V9.5.11.0...0.ODHMIFA_20180504.0000.00_8.0_1a04581058.tgz

V9.5.11.0.ODHMIFA for Mi A1 Changelog

[LIST=2]
[*] Update June Security Patch
[/LIST]

Version: 9.5.10.0.ODHMIFA (Android O)

Size: 1462M

md5:

b9e697ed56b49f3657fa13229241519a

https://bigota.d.miui.com/V.9.5.10....0.ODHMIFA_20180405.0000.00_8.0_b9e697ed56.tgz

V9.5.10.0.ODHMIFA for Mi A1 Changelog

[LIST=2]
[*] Update April Security Patch
[/LIST]

Version: 9.5.9.0.ODHMIFA (Android O)

Size: 1422M

md5:

5773957dcda9a89495e1d0bfa84ab220

https://bigota.d.miui.com/V9.5.9.0....0.ODHMIFA_20180316.0000.00_8.0_f8cd1b4e8e.tgz

OPR1.170623.026.V9.5.9.0.ODHMIFA for Mi A1 Changelog

[LIST=2]
[*] Update Mar Security Patch
[*] Fix “couldn’t flash ROM in 9008 mode”
[*] Fix “[IN_User Feedback][Reboot][Mi A1]Random reboot while using the device on V9.5.4.0.ODHMIFA”
[/LIST]

Version: V9.5.4.0.ODHMIFA (Android O)

Size: 1422M

md5:

5773957dcda9a89495e1d0bfa84ab220

https://bigota.d.miui.com/V9.5.4.0....0.ODHMIFA_20180226.0000.00_8.0_5773957dcd.tgz

OPR1.170623.026.V9.5.4.0.ODHMIFA for Mi A1 Changelog

[LIST=2]
[*] Update Feb Security Patch
[*] Fix “received call recognized as missed call”
[*] Fix rebooting issue
[*] Update E-label for India
[/LIST]

Version: Android 8.0.0 [OPR1.170623.026.8.1.10]

Size: 1407M

md5:

8ea503201bb0b594e02e5ed2bf6dea09

https://bigota.d.miui.com/8.1.10/tissot_images_8.1.10_20180110.0000.00_8.0_8ea503201b.tgz

OPR1.170623.026.8.1.10 ROM for Mi A1 Changelog

[LIST=2]
[*] Optimize audio parameters.
[*] Remove the “quick charge” on the lockscreen when charging.
[*] Integrate the performance optimization of MIUI.
[*] Fix “bluetooth power consumption issue”.
[*] Add Korean input method.
[*] Fix “the dialer icon is missing after the upgrade”.
[*] Fix “camera cannot connect sometimes”.
[*] Fix“couldn’t connect to network sometimes”.
[*] Update the Feedback APP.
[*] Fix “fingerprint unlocking speed is slow ”.
[/LIST]

Version: N2G47H.7.12.29 (Android O)

Size: 1084M

md5:

c9a6ea979b58b9a2fa4dc9e81d70796e

https://bigota.d.miui.com/7.12.29/tissot_images_7.12.29_20171228.0000.00_8.0_c9a6ea979b.tgz

no changelog found

Version: N2G47H.7.12.19

Size: 1396M

md5:

d39fa89aafcaaaa2203324313c964706

https://bigota.d.miui.com/7.12.19/tissot_images_7.12.19_20171219.0000.00_7.1_d39fa89aaf.tgz

N2G47H.7.12.19 ROM for Mi A1 Changelog:

[LIST=2]
[*] D2Acontinuous annoying sharp Sound problem in A1
[*] D2A is transferred to 112 when the local emergency number is called in the Czech Republic
[*] Transition version for Android Oreo
[/LIST]

Short Flashing Guide:

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

(*.bat for Windows/ *.sh for Linux & Mac)

Download and extract the *.tgz archive

Shutdown your Mi A1 and start it in fastboot mode (Vol- + Power)

Connect it to your computer/ mac via usb cable

Open a terminal, shell or command line prompt depending on your OS; make sure you are in the same folder as all the just extracted files, if in doubt use the "cd" command

Run the script of your choice to start the flashing process (e.g.: "flash_all.bat" or "./flash_all.sh")

Wait for the script to complete and enjoy your official version of AndroidOne for Mi A1

Hints:

You need to have an

up-to-date version of adb and fastboot

to be installed properly on your system. For that please just follow the guide here

To get the device in fastboot mode, turn it off, hold VOL(-) & the power button

To check for successful connection type in shell/ terminal "fastboot devices" after device is connected via USB in fastboot mode

If you want/ need to have an unlocked bootloader, you can still use any of the above described scripts and just when finished flashing, reboot again into fastboot mode and run the terminal/ shell/ cmd command "fastboot oem unlock" (locking and unlocking does not mess with your user data)

Just to be clear, inspite of the URL containing "miui" in its name, it is official Android One for Mi A1 (tissot)

Please do not attempt to do downgrades, without factory reset

If you are feeling unfamiliar and/ or unsafe, please use the Mi Flash Tool for Windows instead to install (Guide for Mi Flash Tool; if you had a previous version of Mi Flash tool installed it needs to be uninstalled first)

If you want to force, that you get OTA updates when they become available and you check in system settings manually for them, please ensure that you are using the Google Play Beta Services

Everything seems so complicated, isn't there a tool to assist me? --> I did some research and there seems to be one: https://toolaio.tk/

[IMG="toolaio-screenshot01"]https://i.postimg.cc/13hZrjH6/Tool-1-1-0-4.png[/IMG] All credits for this tool go to its creator mauronofrio

[IMG="toolaio-screenshot02"]https://s5.postimg.cc/txnwo6s87/1.0.8.1_advanced.png[/IMG]