How to Install Xiaomi Mi A1 Android Pie Update

Download Xiaomi Mi A1 Android Pie-based August 2020 Security Update (V10.0.24.0)

Xiaomi is now rolling out August 2020 security update for the Mi A1 with “V11.0.24.0.PDHMIXM” build number. Through this post, you can download the latest Xiaomi Mi A1 Android Pie August 2020 update and learn how to manually install it to upgrade your phone right now. This could be easily done by flashing the fastboot ROM or TWRP flashable zip.


The Mi A1 has received monthly security updates and major Android upgrades pretty much on time (Sometimes with loads of bugs…cough!). This has only been made possible because the phone is a part of Google’s Android One program. Its successors, the Mi A2 and Mi A2 Lite have already been upgraded to Android 10.

Table of Contents

Android Pie August 2020 Update for Xiaomi Mi A1 – Changelog

Android Pie on Xiaomi Mi A1 - Screenshots

Although it would be hard for the Mi A1 to get Android 10 since it has already received two major Android upgrades, however, the company is still constantly releasing monthly security updates for the phone based on Android 9 Pie. And this month’s update is no different.

Xiaomi Mi A1 August 2020 update is now rolling out to the users over-the-air. The OTA update weighs just about 80.72 MB and according to the OTA notification, the only major change brought by this update is the August 2020 security patch. It has further been mentioned that this update also improves the phone’s stability and performance. Of course, since the update is based on Android Pie, it carries all the standard features like revamped settings menu, Quick Settings toggles, notifications, Digital Wellbeing, and more.

Although the update has been rolled out globally, it could take some time before it actually reaches your phone. In that case, you may choose to manually install this latest update on your phone, the instructions for which have been provided in detail below.


Before you move to the instructions for the manual installation, make sure to check for the OTA notification on your device. To do that, go to ‘Settings’ > ‘System’ > ‘System updates’. If your phone is rooted with Magisk, it’s possible to install the OTA update (See instructions here) without having to do anything manually. However, if you are using TWRP, then the easiest way is to just follow the instructions below.

Download Xiaomi Mi A1 Android Pie Firmware

The Android Pie firmware for Xiaomi Mi A1 is available in two different types of files. The first is a flashable Recovery ROM that can be flashed via TWRP. And the second is a fastboot ROM, that can be flashed to the phone by using the Mi Flash tool.

Make sure to download the firmware file according to the method you’d choose to install it.

August 2020 Security Update (V10.0.24.0.PDHMIXM)
July 2020 Security Update (V10.0.23.0.PDHMIXM)
June 2020 Security Update (V10.0.22.0.PDHMIXM)
May 2020 Security Update (V10.0.21.0.PDHMIXM)
April 2020 Security Update (V10.0.20.0.PDHMIXM)
March 2020 Security Update (V10.0.19.0.PDHMIXM)
February 2020 Security Update (V10.0.18.0.PDHMIXM)
January 2020 Security Update (V10.0.17.0.PDHMIXM)
December 2019 Security Update (V10.0.16.0.PDHMIXM)
November 2019 Security Update (V10.0.15.0.PDHMIXM)
October 2019 Security Update (V10.0.14.0.PDHMIXM)
September 2019 Security Update (V10.0.13.0.PDHMIXM)
August 2019 Security Update (V10.0.12.0.PDHMIXM)
July 2019 Security Update (V10.0.11.0.PDHMIXM)
June 2019 Security Update (V10.0.10.0.PDHMIXM)
May 2019 Security Update (V10.0.9.0.PDHMIXM)
April 2019 Security Update (V10.0.8.0.PDHMIXM)
January 2019 Security Update (V10.0.4.0.PDHMIXM)

Instructions to Manually Install Latest Android Pie Update on Xiaomi Mi A1

Installing the latest update on your Mi A1 can be carried out via two different methods/ways. You will need to choose the method that’s most suitable for your phone’s current state.

If your phone has an older stock Oreo or Pie firmware installed, then it’s best to use Method 1. It is also very useful if you have a custom ROM installed and want to restore the stock firmware on your phone.

The second method is for those who have TWRP recovery installed on their Mi A1 and wish to keep using it even after the update.

Method 1: Flashing Fastboot ROM

  1. Download Mi A1 Android Pie V10.0.24.0 fastboot ROM on your PC.
  2. Extract the content of the downloaded file to a suitable location on the PC (E.g. C:\MIUI).
  3. Power off your Xiaomi Mi A1 completely.
  4. Hold the Volume Down + Power buttons simultaneously to enter Fastboot Mode.
    Boot Fastboot Mode to Install Xiaomi Mi A1 Android Pie Update
  5. Connect your phone to the PC.
  6. Next, download the latest Mi Flash tool and extract the downloaded zip file on the PC.
  7. Open the extracted folder (MiFlash2017-7-20-0) and double-click on ‘XiaoMiFlash.exe’ to run the tool.
  8. Click on the ‘refresh‘ button and make sure that the tool detects the Mi A1 correctly.
  9. Once it does, click on ‘select‘ button and select the extracted folder where the Fastboot ROM is present (E.g. C:\MIUI\tissot_images_V10.0.24.0.PDHMIXM_9.0).
    Install Xiaomi Mi A1 Android Pie Update - Flash Fastboot Image using Mi Flash
  10. Next, select the ‘Save user data‘ option at the bottom of the MiFlash tool window
  11. Finally, click on the ‘flash‘ button to install Xiaomi Mi A1 Android Pie Update using MiFlash tool on your Xiaomi device
    Install Xiaomi Mi A1 Android Pie Update - Flash Fastboot Image using Mi Flash - 01
  12. Once complete, the tool window shall show the “success” message and the device will reboot automatically
    Install Xiaomi Mi A1 Android Pie Update - Flash Fastboot Image using Mi Flash - 02
  13. You may disconnect the phone from the PC.

The update will be automatically installed on your phone without wiping the internal storage. And after the installation is complete, your phone will reboot and you can start exploring Android Pie on Mi A1.

Method 2: Using TWRP Flashable zip

  1. Download Mi A1 Android Pie V10.0.24.0 TWRP flashable zip
  2. Connect the phone to the PC using the USB cable
  3. Transfer the downloaded zip file to the phone’s storage
  4. Once transferred, disconnect the phone and power it off completely
  5. Press the Volume Up and Power button simultaneously to enter TWRP recovery
  6. (Optional): If you’re using a custom ROM, go to ‘Wipe’ -> ‘Advanced Wipe’ and wipe the ‘Cache’, ‘Dalvik/ART Cache’, ‘Data’ and ‘System’ partitions.
    Install Xiaomi Mi A1 Android Pie Update - TWRP Wipe
  7. In TWRP, tap on the ‘Install’ button
  8. Navigate the internal storage and select the Android Pie TWRP flashable zip file
    Install Xiaomi Mi A1 Android Pie Update using TWRP Flashable zip
  9. Finally, swipe the button on the screen to install Xiaomi Mi A1 Android Pie update
  10. When the flashing process is finished, press the ‘Reboot System’ button

When your phone boots, it shall be running the stable Android Pie V10.0.24.0 firmware with August 2020 Security Patch. You can now go ahead and enjoy all the Pie features on your phone. If you have any questions regarding the steps in this guide, then make sure to comment below.


  1. I downloaded the recovery zip and follow the instruction as mentioned but the installation failed. I had the pixel experience android 10 rom.

    1. Could you please mention the exact error log provided by TWRP when the flash failed?

  2. Hello i need a help, I trying to install Gcam & after i boot fastboot boot twrp-3.3.1-0-tissot.img it says booted but my phone didn’t go to twrp…
    Now my pc wont recognize my phone i tried fastboot reboot and fastboot devices and it says waiting for device..
    Tried using the xiaomiflash, installed the driver but my phone isn’t recognized either
    I already hold the power button + volume down together but it doesnt restarts
    Any help would be appreciated, Thanks

    1. Hi Jhay. Really hoping it’s not a hard brick.

      Have you tried charging the phone for half n hour or so? When you press the power key, the screen stays black but does the notification LED blink?

  3. Hi Dhananjay,
    I have installed a Custom Rom on my rooted Xiaomi Mi A 1.
    Can you explain the way, how to update only the firmware, without loosing Custom Rom. I want to avoid going back to Stock Rom.
    I think, that your both methods will lead to a factory reset and afterwards I have to flash Custom Rom. I have to spend much time, to configure the system.
    If the maintainer of the Custom Rom doesn’t offer updates, I have to repeat it every month.

    Many thanks!

    1. Hi Johann. I think you have it confused. Both the stock ROM and custom ROM are “firmware” and completely separate.

      You can either run a custom ROM or have the stock ROM installed.

    2. Hi Dhananjay,
      thank you for your answer.
      I think there is a misunderstanding. Therefore I would like to hint to this article “ “. Sorry it is only available in german language.
      Stock Rom and the most Custom Rom only offer systemupdates like the monthly security updates or softwareupdates. They are often called firmwareupdates. For me it is important, what the producer of the smartphone Xiaomi delivers as firmware (Ebene 3).
      The maintainer of my Custom Rom doesn’t offer updates, which include firmware of Xiaomi.
      To keep my Mi A 1 up-to-date I have chosen following method until now.
      1. With the help of your files I have installed Stock Rom with the up-to-date firmware from Xiaomi. I think that you include it. This requires factory reset with loss of the most data.
      2. Afterwards I must install again Custom Rom with the whole work of configuring it. I know that Titanium Backup can help.
      I have to repeat this procedure every month, when a new security update from Google comes and the maintainer of my Custom doesn’t offer it.
      Do you know a way to avoid this extensive method?

    3. That clears up. But you do not call that the “firmware”. The firmware is the complete OS, including system, data, vendor (manufacturer code), persist, etc.

      So, you meant updating other things like bootloader, modem, etc, something that’s not there in custom ROMs. Take note that these partitions are rarely updated and you wouldn’t need to update them when using a custom ROM.

      But if you insist, you would need to flash the updated partitions (bootloader, modem, vendor, etc) individually using fastboot. You will need to extract these files from the fastboot ROM of the update and do it every month. But this still wouldn’t update your phone’s monthly security patch version. That part is handled by your custom ROM.

      I would suggest opting for a custom ROM that has decent support when it comes to regular updates.

    1. Hi Erik. Yes, the fastboot ROM for the July 2020 update with build number V10.0.23.0.PDHMIXM is now available and updated.

      I am still looking for the TWRP flashable ROM and will add it as soon as possible.

  4. Hi, brother, I downloaded the latest firmware following the all suggested steps but while flashing rom through MiFlashTool I am getting an error, it says error: Erasing “boot_a” FAILED(remote: ‘device is locked cannot erase’ )
    Device MI A1 | Rom flashing latest : tissot_images_V10.0.21.0.PDHMIXM_9.0
    My phone was updated to this security patch before it got bricked and I tried to update with the same rom by default recover there it says : E: failed to load BCB message, failed to sync: operation not permitted.” and before I was trying with other older version of rom it says cannot downgrade but now when I finally found latest rom from your site it says some signature error as well that :E: failed to load bcb message, failed to sync: operation not permitted.”

    Kindly Help me, brother 🙏🙏

    1. Hello Aman. The fastboot ROM wouldn’t flash on a phone with a locked bootloader. The bootloader needs to be unlocked for that.

      As for the message that the stock recovery shows upon OTA sideloading, it is because the stock recovery on Mi A1 doesn’t support the sideloading of OTAs.

      Have you tried performing a factory reset to see if it fixes the problem?

    2. I tried factory reset I left it whole night but it stuck to “erasing” screen and nothing happened after that today I tried flashing old rom as you suggested in some reply but this time phone boot to stock recover and then I again went to fastboot it shows error : Failed(remote: ‘partition flashing not allowed) also I noticed when I try “fastboot oem unlock” my phone restarts and go back to stock recover other than that “fastboot oem edl” nothing happen although it says successfull but dosent go to black screen or no light blinks… Kindly help me brother what I can do

    3. That’s extremely odd. If even the recovery isn’t able to perform a factory reset properly, I think it’s probably related to the hardware itself. There was another reader here with an identical issue. His phone too abruptly starting bootlooping. I am not certain if a software bug is triggering this issue or failed hardware.

      As for flashing, it won’t be a success until the bootloader is unlocked. Could you boot your phone into fastboot and run the following command: fastboot oem device-info

      The command will output some data. Please share it with me.

      As for the EDL command. It works. The black screen and blinking notification LED are signs that the phone is in EDL mode. While in that mode, try connecting it to the PC and try flashing the latest fastboot ROM via the Mi Flash Tool. Although I am pretty convinced that EDL flashing won’t work, but it’s surely worth a try.

  5. Yesterday suddenly while turning on my device it stuck at android one logo. i have never rooted it or never even went to recovery mode. it worked 2 years without any problem.

    Device status : Bootloader locked, No Root. Never hard reset in past. it was running as it was out of the box with latest May 2020 security update. yesterday stuck at android one logo .

    So, i tried to unlock bootloader with adb which offcourse failed.
    then i tried to hard reset, as i opened recovery mode (power + vol+) there was an error E: failed to load bcb message, failed to fsync : operation not permitted.
    still i choose wipedata/factory reset. it stuck at [wiping data… formatting disk…] for 5 hours. i understood it wont proceed.

    Then, i opened the device went to unlock bootloader with EDL method as shown in few videos ( by connecting pins and plugging usb to pc). it showed in the pc ( qualcomm was listed in device manager> ports)
    Then i downloaded Mi flash and official rom, was unable to flash with error “ack count don’t match”.
    Again reading here and there, i downloaded miflash-beta, it was able to flash the device successfully.
    disconnected the usb, connected the battery strap and started device > Again it stuck at android one screen for 1 hour.

    So, i again went to recovery mode to find out that the error ” E: failed to load bcb message, failed to fsync : operation not permitted.” Still exists.

    1. Hi Abhay. Thank you for providing such a clear and detailed explanation of the whole situation.

      The EDL flash will not work majorly because Xiaomi blocked it, and it’s only available for authorized accounts/personnel.

      The only suggestion I have for you is to try flashing the fastboot ROM via the QPST flash tool. I recently covered a write up on the same here. Please take a look.

      Download the V10.0.19.0 official fastboot ROM from above. Then extract the .TGZ file to get the .TAR file. Extract the .TAR file to get the firmware images. Inside the ‘images’ folder, you will have a file named “prog_emmc_firehose_8953_ddr.mbn”. That file is what you have to load in the QPST tool for flashing.

      And I believe you’re already well aware of booting the phone into EDL mode.

      Please let me know how it goes, or if you have any more questions before you try.

    2. Hello ,
      First of all thank you so much for answering my query. i had lost hope. now with your help i think i can make my device work.
      So i tried doing it with QPST, and it is telling SAHARA FAIL ERROR. i have attached image for reference in below link :

      I have tried doing it with 2 versions of QPST the latest and just a below version as uploaded on your post.

      Please guide here. 🙁

      Further query if at all i am able to flash successfully :
      Also in your post it is written that after flashing device will boot automatically. But in EDL mode, since battery plug is disconnected will it boot automatically from PC usb power ? or one has to attach battery strap first and then manually boot.

    3. Hi again Abhay, here are a couple of things I want you to try.

      1) Uninstall all USB drivers currently installed. This includes Qualcomm Drivers and Xiaomi drivers (if any). After uninstalling, reboot your PC.
      2) Then disable driver signature enforcement on your PC by following the instructions under Solution #4 of this page.
      3) Disconnect the phone if it’s connected and then reboot it back into EDL mode from start.
      4) Then connect the phone to the PC while in EDL mode and manually install the drivers using the instructions here.
      5) After driver installation finishes, disconnect the phone from the PC and reboot the PC.
      6) When the PC boots, launch QFIL and load everything into it (prog_emmc_firehose_8953_ddr.mbn, rawprogram0.xml, and patch0.xml). DO NOT connect the phone until QFIL is fully ready.
      7) Now connect the phone in EDL mode and hit the ‘Download’ button instantly.

      From what I have read, the issue you’re facing is sometimes caused by a faulty connection, could be drivers, could be the port, or something else entirely.

      If the above fails, I want you to try again but using a different port on your PC this time. Preferably USB 2.0.

    4. Hello and Thanks again for guiding me buddy.

      So i have tried doing all of the above in 3 different systems.
      and i also did a fresh install of windows and then downloaded the Qualcomm drivers from the mediafire upload you provided.

      Here are some observations,

      1>>>when i boot into EDL first and then i open QPST, it gives SAHARA FAIL ERROR without any change in status bar.

      2>>>And when i open QPST first and load XML, and then boot EDL and quickly do download : i get “DownloadFail: Firehose Fail: FHLoader Fail:Process fail”
      with a bit of progress in status bar.

      i have tried in USB 2 only with disabled driver signature enforcement both in Windows 7 and Windows 10.
      both seem to show the same error with both cases as mentioned above.

      I have also tried placing the extracted tbz into bin folder of QPST, tried placing it directly root C:\
      i have started QPST with admin rights.

      i have uninstalled all other soft like mi flash,adb etc. And also a clean windows 7 seem to show both the mentioned errors.

      Any more work around ?

      Thanks man, you have been a constant help for me when XDA,Reddit and MiCommunity have failed to give any answers or barely anyone gave answers there.

    5. Hi Abhay, I am afraid I don’t have any more suggestions.

      I recently discovered this page on Reddit, you might wanna take a look.

      From all I can gather, the only thing left to try is using a really old fastboot ROM. Like early Android Oreo or Nougat. Try flashing that instead.

  6. Hello friend, the May update (10.0.21) was installed. I need the patch for root or I can occupy the last patch for January.

    where I download it?

    1. Hi Cesar. Do you mean the patched boot image for V10.0.21.0 update? If so, I am working on it and will post it right away.

    2. Hello again, Cesar. I have uploaded and added both the stock and patched boot images of May v10.0.21.0 update to this post. Kindly check.

  7. hey brother is there any chance that mi a1 will receive an android 10 update? If not which custom rom do yoi recommend?

    1. Hi Nishukaru. I am afraid the company hasn’t released any official statement regarding the Android 10 update for the Mi A1. Stacking up the rumors and the unavailability of an unofficial state, I would personally like to believe that there will be no official A10 update for the phone.

      Anyhow, if you’re planning on using a custom ROM, I would strongly suggest trying LineageOS 17.1 (Check the XDA thread here). In my personal experience, the ROM seems to perform very well.

  8. Hi, currently i m using MiA1 with unlocked bootloader but with no root access.(uninstalled magisk recently)

    I want to flash my MiA1 with Stock rom with latest april updates ,along with locked bootloader and no root access

    I tried the above fastboot rom flash with miFlash tool but its showing error as “can not found file flash_all_lock.bat”.

    I used ” ” file

    Plss help me

    1. Hi Sarthak. It’s because the unofficial fastboot ROM has a different naming scheme for flashing scripts. The tool (Mi Flash tool) cannot find that file the official flashing script (flash_all_except_storage.bat, flash_all_lock.bat, etc) because it doesn’t exist.

      What you need to do is: Extract the unofficial fastboot ROM, then connect your phone to the PC in Fastboot Mode, and finally double-click the ‘_Flash_.bat’ file.

    1. Hi Sushant. May I know which exact file did you use?

      If you used the fastboot ROM, did you flash it via the above commands or via the including ‘flash_all_except_storage.bat’ script?

  9. My mi a1 is stuck on bootloop. Can I flash my phone via the rom you provided with MIflash? If not how can I revive it? Dhananjay, please help

    1. Hi Anannya. If your phone’s bootloader is unlocked, you can simply flash the fastboot ROM to recover it. If not, then I am afraid the only way is to use EDL method.

    2. Okay, Dhananjay so I need to run the command fastboot oem edl on adb and flash the latest rom. However I cannot find the latest rom, on xiaomis official page there is a rom “v10.0.12…” Should I flash that rom?

    3. Yes, that’s right. Is your phone’s bootloader unlocked and did you enable OEM unlocking option in the developer options?

      If yes, then we would not even need to use EDL. It’s mostly the last resort, especially if the bootloader is locked.

    4. No the bootloader is unlocked and oem unlocking isn’t enabled. So should I type fastboot oem edl unlock and then flash the official “V10.0.12…” rom?
      Is V10.0.12 a old rom ? And will the anti roll backcause some issue if I flash this version “v10.0.12” on mi a1 ? Please help

    5. Hi again, Anannya. Sorry, I am not able to figure out the bootloader part. You mentioned that “the bootloader is unlocked” and “oem unlocking isn’t enabled”. As far as I know, that’s not possible. Because the bootloader can only be unlocked if OEM unlocking is already enabled. Could you please confirm what is correct?

      Ant-rollback wouldn’t have any effect here, so you wouldn’t need to worry about that.

  10. After update to TWRP method Haw to update with letest security patch because via setting system update not done please reply me

    1. Hi Abrar. I believe you’re especially talking about the “Google Play system update” under the “Security” menu of the phone’s settings. Am I right?

    2. I was flash mi A1 official rom via TWRP method with Feb ROM file and I wanted to flash April ROM without Data loss so Haw can I do.

    3. Hi Abrar. Here’s what you need to do.

      1) Download the TWRP flashable ZIP of the V10.0.20.0 update.
      2) Download TWRP recovery installer ZIP from this link and the latest Magisk ZIP from here.
      3) Copy all these three files (Update ROM, TWRP installer, and Magisk) to your phone’s internal storage.
      4) Boot your phone into TWRP.
      5) Flash the V10.0.20.0 ROM, then flash the TWRP installer zip and finally flash Magisk.
      6) After flashing all the three files in that order, reboot the phone.

      Your phone should be updated to the latest firmware, without wiping any data, with both TWRP and Magisk root still installed.

  11. cant find the images folder in tissot folder after extracting. should i flash the folder without images folder?

    1. Hi Anwar. It’s probably because it’s an unofficial fastboot ROM, not the official one.

      Could you please tell me which firmware version did you download and are trying to install?

    2. I’ve downloaded the fastboot v10.0.20.0 with the link you have provided for fastboot . what should i do now?

    3. Hi Anwar. You have to extract the firmware and flash is as shown in the instructions under Method 1.

    4. Hi again, Anwar. Since it’s an unofficial fastboot image, you can flash it manually without using the tool.

      The extract firmware file should contain the flashing script (_flash_.bat). Just connect the phone to the PC in fastboot Mode and double-click on this script file. It will automatically install the update on your phone.

      And please don’t forget to take a full backup before you do any flashing.

  12. Hello, I used the Twrp method to flash the v10.0.20.0 rom after flash twrp showed os not installed, and my phone stocked on MI logo.

    1. Hi Raze, was your phone rooted prior to flashing the ROM via TWRP?

    1. Well, there is one thing that’s definitely worth trying, and that’s using EDL mode to flash the stock firmware.

      Before you opt for the manual method to boot your phone into EDL mode, let’s first give a try to an easier way. Boot your Mi A1 into Fastboot Mode, connect it to the PC, and enter the following command in PowerShell:
      .\fastboot oem reboot-edl

      See if the command works and if your phone boots into EDL mode. EDL mode is just a black screen with your phone’s LED light blinking.

    2. eu achei que tinha mudado para o slot a mais nai mudou continua no b eu tento mudar e sempre aparece como erro

    3. When you enter the fastboot oem reboot-edl command, does the phone reboot into a black screen?

  13. oi , estava usando uma Custom apaguei tudo deixei meu mi a1 como era original ( oem unlock desativado e estock rom pelo MI FLASH) quando eu voltei para rom original meu celular brickou NÃO QUERIA INICIAR só ficava no loop infinito já tentei de tudo , não consigo instalar a stock rom novamente pois esta falando essa seguinte mensagem ( ERRO erasing boot failed maybe the device is locked) o problema e que não consigo fazer o oem unlock pelo fastboot 🙁

    você sabe como resolver isso? preciso muito de ajuda

    1. Hi Mikael. The first thing to do right now is to unlock your Mi A1’s bootloader again.

      This could be done by issuing the following command in PowerShell/CMD, while your phone is connected to the PC in Fastboot Mode:
      .\fastboot oem unlock

    2. sim eu tentei fazer isso mais sempre da erro , minhas opções de desenvolvedor esta desativada por conta de eu ter voltado o telefone ao original e não tem como eu ativar por conta que o celular estar em loop infinito 🙁

      oque devo fazer?

    3. Okay, try this command and let me know which slot it results (“a” or “b”):
      .\fastboot getvar current-slot

    4. Okay. That’s what I was gonna suggest you perform. Have you tried performing a factory reset via the stock recovery to see if it makes things better?

  14. When I unlock Mi A1 to Miunlock tool then it gives an error message- “can’t get info,plz connect again” at the end of unlocking
    Plz Guy’s help me

    1. Hi Pravesh. The bootloader on the Mi A1 (unlike Xiaomi devices running MIUI) can be unlocked via fastboot, and does not need the Mi Unlock Tool.

      Simply put your phone in fastboot mode, connect it to the PC via the USB cable, and execute the following fastboot commands via PowerShell/CMD:
      .\fastboot oem unlock

      That’s it.

  15. My device stock rom rooted magisk installed december update, now planning to update latest feb security through Twrp . How to flash? Without losing data? After flash rom need again flash magisk?
    Give step by step information pls……

    1. Hi Sunil. Here’s what you should do:

      1) Download the TWRP flashable zip of the Feb 2020 update.
      2) Also, download the Magisk and TWRP installer zip files.
      2) Boot into TWRP and flash all the three files in that order.

      You should then have the latest update with both TWRP and Magisk still installed.

      Please let me know if you have any more questions.

  16. February 2020 Security Update (V10.0.18.0.PDHMIXM) Pleasseeeee..
    Include Stock + Patched Boot..

    1. Hi SeptianAdistyan, I have just added the download link for the February 2020 update.

      The stock and patched boot images for the same can be found in this post.

    2. I’m Allready Download Android Pie Fastboot Images:,,

      But When I Choose “Save User & Data” In MiFlash,,They Says “No Script”..

    3. Hi. That fastboot image is not the official one. Someone voluntarily extracted the partition image files from the full OTA package and compiled that into a zip file along with the flashing script.

      So, instead of using the Mi Flash tool, simply use the .bat script file that’s included in the fastboot zip.

      Do let me know if you need further assistance in the matter.

  17. no file is FLASHING IN MY MI A1 i unlock my bootloader but rom is not flashing with miFLASH TOOL it start flashing and in 10 seconds it shows success but nothing done in my phone it stuck on mi logo give me a solution of this problem

    1. Hi Shoaib. With your phone connected to the PC in fastboot mode, go to ‘Control Panel’ > ‘Device Manager’ and check if the phone is properly detected by the PC. Ensure that there’s not yellow triangle showing beside the device name in there.

  18. Hi everybody, I unfurtunately brick my phone, something went wrong it’s my fault…ok,

    Now I would like to know since my A1 still goes on fastboot mode and is recognized from my pc since when I

    digit fastboot device I can read the number I hope using MIFLASH to be able to install a stock ROM,

    If you have any or better Idea let me know.

    Best regards to all

    1. Hi. That’s exactly the solution. Use the December 2019 fastboot image that I have added just now and flash it using MiFlash or the included script.

  19. Hey! I have installed evolution x 3.5 android 10 december 5 security patch with twrp latest with magisk on my Mi A1. Now if I want to jump roms, like if I want to install Havoc os now, what are the steps I have to take? Do I have to flash the stock firmware first using Twrp and then install havoc os? Or can I directly wipe system cache data and go on flashing havoc os and twrp amd magisk and other stuffs?

    1. Hi Partha. No, you do not need to restore the stock firmware first.

      You can simply wipe the said partitions via TWRP, and then flash the custom ROM of your choice, followed by the TWRP installer, Magisk, and custom kernel (if you want) zip files.

  20. i have downloaded my of the boots but max didn’t work. the version that i got and opened my mobile got me stocked . i am facing network issue problem( no detach) and problem of application has stopped. please help me out

    1. Hi Rupesh. Have you tried restoring the stock firmware by flashing the fastboot image?

  21. Hi !

    I wanna know how to get back to stock ROM. I’ve followed a Root guide, so now i got my bootloader unlocked, with magisk installed. I decided to get back to Stock ROM, wit the bootloader locked.

    What should I do ? just lock the Bootloader or flash something ?

    Now, i’m running android version 9.0, with firmware V10.0.14.0PDHMIXM.

    Thank !

    1. Hi Aiolos. First of all, you need to make sure that you have flashed the stock firmware (fastboot image) to both the slots of your Mi A1. Once that is done, you can relock the bootloader using “fastboot oem lock”.

      It is not recommended to re-lock the bootloader without first making sure that your phone is running the unmodified stock firmware on both the slots.

    2. Is there any guide for flashing both slots ?

      that can only be made using ADB or can I use MiFlash Tool to do it ?
      Thank You

    3. Hi. Here’s what you can do to flash the firmware to both slots:

      1) Connect your phone to the PC in Fastboot Mode.
      2) Open a CMD/PowerShell window in the folder where the ADB/Fastboot binaries are present.
      3) Enter the following command to check the currently active slot: .\fastboot getvar current-slot
      4) Let’s say the current slot is “a”. Then flash the fastboot image using the .bat script file provided within the zip. This will be flashed to slot that is currently active (“a”).
      5) Once the flashing finishes, again reboot the phone into Fastboot Mode and connect it to the PC.
      6) Change the active slot from the current active slot (say “a”) to the inactive slot (say “b”) using: .\fastboot set_active b
      7) Flash the fastboot image now. It will be flashed to the current active slot (b), which was earlier the inactive slot.

      That’s it! I know the whole A/B shenanigans can be confusing. But once you get around the basic logic of it, it’ll be easy. Let me know if you have any questions.

    4. Hi Dhananjay,

      is it needed to change slots and flash to a and b when the flashing script does this automatically itself? Thank you for response.

    5. Hi. First off, I will apologize for the misinformation. I extracted the firmware and examined the flashing scripts of the official fastboot image (December 2019). And, I can conclude that it flashes the firmware to both the slots automatically. So, no need for changing the slots manually, unlike I mentioned earlier.

  22. I tried installing using the latest Mi Flashing Tool.
    But when I clicked on “save user data” button and clicked on Flash button, an error occured – “can not found file flash_all_lock.bat”.
    Please provide the fix ASAP.

    1. Hi Shubz99. It seems like the newer fastboot images (Unofficial ones) have the scripts with different names than the ones recognized by the MiFlash tool.

      Let me know, do you want to flash without erasing data and relocking bootloader?

    2. I want to flash without erasing data and without locking bootloader so i renamed the ‘_Flash_.bat’ something file to flash_all.bat and continued flashing. I hope it goes well!

    3. Good luck with that, Ashish! Please let me know how it goes.

      And don’t forget to take a backup first, especially when doing something that isn’t tested yet.

  23. good evening man (in my state)

    i wanna ask about upgrading to Pie Custom Rom From Nougat Custom Rom

    can we jump straight to Pie without going to oreo to flash pie cusrom?

    and if we could, do we need to flash january 2019 firmware and miflash stock Pie Rom ?

    1. Hi AnoN. Yes, you can upgrade directly. But my personal opinion would be to flash the fasboot image of Pie first. Why? Because Xiaomi may have updated the bootloader, modem, and other partitions whilst moving from Oreo to Pie. These partitions aren’t something that comes bundled with a custom ROM.

      I would suggest flashing the latest fastboot image of V10.0.14.0 and from there on, install TWRP and move on to a Pie custom ROM of your choice.

  24. I flashed via TWRP 10.0.14 but its stuck on MI logo.
    I tried miflash too but i failed again. what can i do?

    1. Hi. Before flashing the TWRP zip, did you have root? Or flashed encryption disabler earlier?

    1. Hi. The links to both the TWRP and Fastboot versions of the October 2019 update are now live.

  25. hi
    after i installed August 2019 Security Update ussing method 2, my phone does not turn on and vibrate.
    what should i do? 🙁

  26. Hey this link is not working.


    And one question. I was on July Stock rom before installing custom rom. If I use the fastboot image for the April stock rom to move back to stock will it brick my phone.

    1. Hi. I have corrected the link and replaced it with a new one. Also, I have added links for TWRP and Fastboot image for the August 2019 security update.

      The only thing that can brick a Xiaomi device is Anti-rollback protection. However, I don’t think that the Xiaomi Android One devices (like the Mi A1 in this case) are included.

      So, yes, you can use the fastboot image to restore stock firmware. In my opinion, you should use the latest August fastboot image for this.

    2. Hi Max. Upon seeing your comment, I personally downloaded and extracted the fastboot image of August 2019 security update. It seems to work fine. Kindly re-download it. It may strongly be a case of incomplete/corrupted download.

    3. Hi,
      Could you upload also the new patched boot image? I’d like to enable camera2 api without root following your guide. Thanks.

    4. Hi. The latest patched and stock boot images for August, September, and October updates are now available.

      Apologies for the late response.

    5. When can you upload the TWRP-files and Fastboot Images for the September 2019 Security Update?

    6. Hi Max. The TWRP-flashable ROM for the September 2019 security update is now available. As for the fastboot ROM, you will have to wait for a bit.

    7. Hi. For now, only the TWRP flashable version of the September patch is available. You will need to wait until someone posts the fastboot image link online. I am keeping a thorough track of it everyday. Until then, how about you use the August fastboot image to restore your phone?

      BTW, do let me know how did your Mi A1 get into a bootloop?

  27. Hey buddy where did you get the fast boot files from ? I was looking into the mi website but I found files for April 2019

    1. Hi Ajay. Well, Mi is usually late when it comes to updating the latest firmware image (fastboot image).

      Users over at the XDA forums tend to capture these images. Some of them even capture the full OTA package and then extract it and make an unofficial fastboot image.

    1. Hi Ahmed. No! Do not use the firmware provided here on Redmi Note 7 Pro. If you want AOSP-like experience, you can probably install a custom ROM for that.

  28. 1.Can we use twrp flashing zip method to update when mi a1 is rooted .
    2. Secondly if I’ll be able to update with twrp flashable zip , will my mi a1 still be rooted .

  29. Can we use twrp for flashing the zip method on rooted device, will it work properly?

    1. Yes, it will work. Although, you will need to reflash the Magisk zip file to retain root.

  30. Hi Dhananjay,
    Currently I’m on Android Pie v10.0.7.0.PDHMIXM
    Recently I got an System Update of April 2019. I tried to update it but it I can’t install it. It happened with me twice. Previously on March and now in April. I rooted my Mi A1 when Mi A1 got Pie Update. Because Substratum can’t work on Unrooted Pie device and you know it.
    I’m I correct to flash Mi A1 Rom with v10.0.4.0.PDHMIXM. Because I never tried this option at all. Currently I lost my data after resetting my phone but still update can’t be installed. Now what I want is, I want to update latest system update then I want to root my phone once again with Magisk Manager….Please Help

    1. Hi. I know the exact reason behind this.

      This is because the inactive slot still has modifications to the system. To fix this, you will need to reflash stock firmware (using fastboot image) to both the slots.

      Once you have done this, I will guide you further. BTW, do you want TWRP + Root or just Root?

    2. Hi Max. I believe you’re using the Mi Flash Tool to reflash the stock fastboot image, correct?

    3. Then here’s what you need to do:

      1) Download the fastboot image of the stock firmware.
      2) Enter fastboot mode and execute the following command to check what’s the current active slot: fastboot getvar current-slot (It will show as “a” or “b”).
      3) Flash the stock firmware fastboot image using MiFlash tool (It will automatically be flashed to the current slot, lets say it is “a”).
      4) Once done, reboot into Fastboot mode again and execute the following command to change the current active slot to “b”: fastboot set_active b
      5) Once the slot is actived, reboot back into fastboot mode using: fastboot reboot-bootloader
      6) Now flash the fastboot image again, only this time it will be flashed to the current active slot (That is “b”).

      Now, you should have the stock firmware installed on both the slots. Let me know if you have any further questions.

    4. Hii …am now using evolution X 2.1 custom rom …i have VOLTE problem…jio is not working no call and no message issues..and i tried to revert back to stock rom via fastboot.. I can’t flash it….it shows flashe ended in 0 secs…. please help me solve this problem…either how to go stock rom by flashing or VOLTE problem….thanks in advance

    5. Hi Joshva. Have you tried flashing the TWRP-flashable ROM? What build number is currently installed on your phone?

  31. Guys, First method works very smoothly. Within 5 mins, my Mi A1 gets updated to Android 9.
    Thank you very much for this post.

    1. Hi. Depends on your device setup. If you have root/TWRP or any other sort of system modification, then no.

      If you have stock firmware (used the fastboot image), then yes, you will receive the OTA updates.

  32. I tried to flash it both using adb sideloader and twrp. I could flash it but both times in went in bootloop.. I am able to flash another rom through recovery though, but this did not work for me.

    1. Hi Stephanie. When you flashed this ROM, did you have a custom ROM installed or stock rooted firmware at that time?

  33. This is very use full tricks – thanks lot –
    and when its avialable on april 2019 update .zip & .img please rply

    1. Hi Ashish, you’re welcome!
      The April update is not yet available as a TWRP flashable zip until someone posts a link to the full OTA package. I am keeping an eye out for it when it’s available I will be updating this post for sure.

    2. thnaks bro – can share the link – mia1 .zip on 8.1 stock android for mi a1

    3. Hi again, Ashish. Are you looking for the Android 8.1 zip for downgrading purposes?

    4. Hi Ashish! Thanks for updating. I have added the TWRP flashable zip for v10.0.8.0 (April update) to the Downloads section.

    5. Hi Ashish. Thanks for notifying. I have been able to grab the full OTA package shared by one of the XDA users on the forum itself. With that, I will be updating the Mi A1 Camera2 API tutorial with the stock and patched boot images.

      As for this post, I will update with the links as soon as they pop up online. Again, thanks for letting me know. Hope to see you around the blog more often.

  34. HI

    post the latest pie update in call voice is very low and the network disappearing all the time
    any solution ?

  35. good job! I understand many aren’t aware of correct steps, for example going down from pie to oreo, or using custom OS, or even custom partitioned like treble etc.
    I flashed the zip from TWRP, was on treble, single and dual boot; works very good so far. I strongly recommend everyone to revert to stock and adjust with magisk.
    Do not flash custom TWRP after this rom, will save your nerves.

    1. boot from temporary boot-recovery.img (get files from xda site)
    2. backup all important files, use: sms backup & restore, entire whatsap folder, camera, etc.
    3. download both official .tar tissot package, and twrp flashable (if you plan to use magisk)
    4. use miflash and the official firmware to flash; select “clean” option which leaves bootloader unlocked and upgrades boot and vendor with latest files
    5. boot via adb server command line: fastboot boot boot-recovery.img & flash with pie zip from the link in this post, boot the system and wait 3 to 5 minutes. Shutdown after basic config, boot via adb command line again, flash magisk, and finally boot to the screen again.
    6. download & install magisk manager, install “debloat” module, reboot, install terminal apk from play store & run with “su”, debloat your phone as per your requirement. I only removed bug uploader, the rest can better be disabled.
    original pie firmware works like a dream, the radio, the camera is amazing, no bloody glitches with camera on whatsap or in all, phone volume and sound quality are superior, and much more.

    Good job, thank you very much.

    1. Hi, abrek! Thanks for taking the time out for other readers here. A lot of people here will learn from this comment! Thanks again, hope to see you around more.

  36. When I installed this ROM using TWRP , it is loading on the android one logo for long time, How musch time it will take to install?

    1. Hi Amal. Yes, it is mandatory to have an unlocked bootloader to flash the Fastboot Image.

  37. Please remove the twrp flashable link from this article, flashing it bricked my phone too. Second fastboot methos works fine too, once you brick the phone using the twrp method, you must use the fastboot pie rom given here to unbrick the phone, flashing oreo stock rom through mi flash will not work. Thanks gor the artivle anyway.

    1. Hi Bony. I only added the link to the zip after testing it on my cousin’s Mi A1. There must be something else that might have hindered the process, thus leading to a bootloop.

      Anyhow, it’s good to know that the fastboot ROM worked. And yes, flashing Oreo will probably not work, maybe because of the rollback index.

  38. This bricked my phone. It doens’t starts or fastboot anymore, only a completely black screen. I used the TWRP Flashable zip.

    1. It will, just hold volume+,- and power button simultaneously.until ur phone vibrate

  39. Thank you so much my dear brother… With the help of your blog I am able to use my phone again … I uninstalled magisk completely and then my phone went on bootloop… Thanks again.

Leave a Reply

Your email address will not be published. Required fields are marked *