Home > Unbrick

How to Unbrick POCO X2 (phoenixin) via Fastboot Commands

In this guide, we will show you the steps to unbrick your POCO X2 device via Fastboot Commands. While Xiaomi has its USP set in providing feature riched devices at an affordable price, however, they were mainly focused on the lower-end budget devices. There wasn’t any offering as such that could cater to the needs of audiences interested in the mid-rangers. This is where the company played a masterstroke by launching the Poco series.

Offering the latest chipset at that point in time, it managed to grab quite a lot of eyeballs. And the expectations grew only further once the plan to release its successor was announced. As we are seeing, the second iteration in this segment has already met the high level of standards that its former entity managed to achieve. Not only for the general users but it has its stronghold in custom development. As a result, rooting the Poco X2 via Magisk, flashing a custom recovery like TWRP or OrangeFox Recovery are now all a possibility.

However, on the flip side, these tweaks do bring in some risks as well. If you don’t perform any step correctly or flash an IMG or ZIP file to an incorrect partition, then things are surely going to go south. In this regard, bootloop or soft brick are two of the most common issues that you might face. But even if that happens, there is a handy way out. You could easily flash the stock firmware onto your POCO X2 device via Fastboot Commands and unbrick it. Let’s check out how this could be carried out.



Xiaomi and EDL Mode: It’s Complicated!

Recently Xiaomi made a massive change that leads to disastrous consequences for the tech enthusiasts and developers alike. The only ones who would remain unaffected by this decision are the ones who maintain a safe distance from Unlocking Bootloader, Rooting, and Flashing Custom binary. Rest all the users like us who are engrossed in these tweaks are the suffering party. So what really happened?

The devices that have Qualcomm as the underlying chipset come with EDL Mode or the Emergency Download Mode. You only need to boot your device to EDL and flash the firmware file and your device will be back from dead. Unfortunately, Xiaomi decided to block this EDL mode for the general users.

account-unauthorized-poco-x2-unbrick-fastboot-edl

So only the users who have an authorized Mi Service Centre ID could flash the firmware via Mi Flash Tool in EDL Mode. As for the general users, there does exist a workaround in the form of using the POCO X2 Patched Firehose File (prog_emmc_firehose.mbn) or the prog_firehose_ddr_unbrick.elf file. However, finding both these files is among the most challenging task ever.

With that said, if your Xiaomi device is stuck in bootloop or soft brick mode, there is still a handy way out. You could easily unbrick your Xiaomi device (which in this case is POCO X2) via Fastboot Commands. We wouldn’t be using any Mi Flash Tool or any other software for that matter. So how will then this task be carried out? Follow along for the detailed instructions.



How to Unbrick POCO X2 (phoenixin) via Fastboot Commands

unbrick poco x2 fastboot commands

Now that we are done with the explanation part, let’s turn our attention towards the unbrick instructions. As I have already mentioned before, the below instructions are only valid for devices that are soft-bricked or in a boot loop. Furthermore, the process is going to wipe all the data on your device.

So keep this thing in mind before proceeding and take a backup beforehand (if possible by any means). Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

STEP 1: Download Android SDK

install adb platform tools windows

To begin with, download and install the Android SDK Platform Tools. This is the official ADB binary file provided by Google and is used to execute ADB and Fastboot Commands. So download and then extract it to any convenient location on your PC.

STEP 2: Download POCO X2 Fastboot ROM

Next up, download the Fastboot ROM for your device. As for this guide, I am using the following ROM file: POCO X2 (phoenixin) Fastboot Stable (India) V12.1.3.0.RGHINXM. You are free to try any version of your choice, but it is recommended to try the newer builds only and of your region. To download the firmware, you may use the official MIUI Forum.

Or if that is inaccessible, you may also take the help of a third-party site such as Xiaomi Firmware Updater. Furthermore, if you wish to understand the Xiaomi Fastboot firmware version, you may refer to our comprehensive guide on What is MIUI Fastboot ROM for Xiaomi, Mi, Redmi, Poco Devices. Or here’s the instruction in short,

  • 12.1.3.0 – Firmware version
  • R – Android version (R-> Android 11).
  • GH – Smartphone model code (GH= POCO X2 )
  • IN – Firmware build type (IN for India | MI for Global | EU for Europe)
  • XM – Firmware version code​

Now that you have got hold of the required firmware file, proceed ahead to the next step to unbrick POCO X2 via Fastboot Commands.

STEP 3: Move POCO X2 Fastboot ROM Files to ADB Folder

  1. To begin with, extract the downloaded firmware file. Once the extraction is complete, you should see the following files:
    download poco x2 fastboot rom unbrick
  2. So head over to the Images folder and the following files will be present there:
    poco-x2-fastboot-rom-unbrick-edl
  3. Select all these files via Ctrl+A shortcut keys and copy them to the platform-tools folder. This is the same folder that you have got after installing the Android SDK.
  4. Once done, proceed to the next step to unbrick your POCO X2 device via Fastboot Commands.

STEP 4: Boot Bootloop/Soft Bricked POCO X2 to Fastboot Mode

  1. First off, boot your device to the Fastboot Mode. For that, power it off.
  2. If you cannot do so (due to your device being stuck in a bootloop) then the only option left is to let the entire battery drain out (remember the good old days when we could easily remove the battery!).
  3. Once your device has turned off, press and hold the Volume Down and Power buttons for a few seconds.
  4. This will boot your device to Fastboot Mode. You should see the famous Mi Bunny Logo with the Fastboot text underneath it.
    fastboot-mode-poco-x2-unbrick

STEP 5: Flash Firmware via Fastboot Commands to Unbrick POCO X2

Finally, we are down to the most important part of this article. I have shared all the required fastboot commands to flash the stock firmware onto your POCO X2 and unbrick it.

  1. To begin with, make sure that your device is connected to the PC via USB in Fastboot Mode.
  2. Now head over to the platform-tools folder where you have extracted the Fastboot ROM.
  3. Go to its address bar, type in CMD, and hit Enter. This will launch the Command Prompt window.
    command-prompt-adb
  4. Now execute the below commands in this CMD window. I would highly recommend that you execute these commands one at a time, rather than copy-pasting all of them at one go.
fastboot erase boot

fastboot flash xbl xbl.elf
fastboot flash xblbak xbl.elf
fastboot flash xbl_config xbl_config.elf
fastboot flash xbl_configbak xbl_config.elf

fastboot flash abl abl.elf
fastboot flash ablbak abl.elf
fastboot flash tz tz.mbn
fastboot flash tzbak tz.mbn

fastboot flash hyp hyp.mbn
fastboot flash hypbak hyp.mbn

fastboot flash devcfg devcfg.mbn
fastboot flash devcfgbak devcfg.mbn

fastboot flash storsec storsec.mbn
fastboot flash storsecbak storsec.mbn
fastboot flash bluetooth BTFM.bin

fastboot flash cmnlib cmnlib.mbn
fastboot flash cmnlibbak cmnlib.mbn
fastboot flash cmnlib64 cmnlib64.mbn
fastboot flash cmnlib64bak cmnlib64.mbn

fastboot flash modem NON-HLOS.bin
fastboot flash dsp dspso.bin

fastboot erase metadata
fastboot flash metadata metadata.img

fastboot flash keymaster km4.mbn
fastboot flash keymasterbak km4.mbn
fastboot flash logo logo.img

fastboot flash misc misc.img
fastboot flash aop aop.mbn
fastboot flash aopbak aop.mbn

fastboot flash qupfw qupv3fw.elf
fastboot flash qupfwbak qupv3fw.elf
fastboot flash imagefv imagefv.elf

fastboot flash uefisecapp uefi_sec.mbn
fastboot flash uefisecappbak uefi_sec.mbn

fastboot flash multiimgoem multi_image.mbn
fastboot flash super super.img

fastboot flash vbmeta vbmeta.img
fastboot flash vbmeta_system vbmeta_system.img

fastboot flash dtbo dtbo.img
fastboot flash cache cache.img

fastboot flash userdata userdata.img
fastboot flash recovery recovery.img

fastboot erase secdata

fastboot flash cust cust.img
fastboot flash boot boot.img

fastboot reboot

Once you have successfully executed all the above commands, your device will reboot to the OS. And with that, we conclude the guide on how to unbrick POCO X2 via Fastboot Commands. The best part about this tutorial is the fact that it doesn’t require any POCO X2 Patched Firehose File (prog_emmc_firehose.mbn).

Likewise, you don’t even need the prog_firehose_ddr_unbrick.elf file. Moreover, we didn’t need to make use of the Mi Flash Tool as well. On that note, we conclude this guide. If you have any queries concerning the aforementioned steps, do let us know in the comments section. We will get back to you with a solution at the earliest.

Share:
  • Sumanth Kumar

    Please post elf file, this is not working on my phone, it boots but there’s some software issues.

  • Sumit Shakhawat

    fastboot flash storsecbak storsec.mbn
    target reported max download size of 805306368 bytes
    sending ‘storsecbak’ (20 KB)…
    OKAY [ 0.013s]
    writing ‘storsecbak’…
    FAILED (remote: (storsecbak) No such partition)
    finished. total time: 0.015s
    how to fix this

    • Sadique Hassan

      hi Sumit, sorry for the late reply, was down with ill health. You could skip that file and flash the other ones. And if you get this error for other BAK files as well, then please skip them, just make sure that there is no error while flashing their original files. In other words, fastboot flash abl abl.elf is a must, but
      fastboot flash ablbak abl.elf could be left out if it shows an error.