Unbrick Xiaomi 12 Pro via Fastboot Commands

In this guide, we will show you the steps to unbrick your Xiaomi 12 Pro via Fastboot Commands. The latest additions to the Xiaomi family, all these three devices boast an impressive specs sheet. However, it is the Pro version that has managed to grab the attention of the masses. Not only for the general audience, but it has a slew of goodies for the tech enthusiast as well.

Once you have bypassed the sole prerequisite of an unlocked bootloader, you could welcome a plethora of mods and tweaks onto your device. These include the likes of flashing custom/GSI ROMs, installing a custom recovery, or gaining administrative access by rooting your device via Magisk . This in turn will allow you to flash Magisk modules, Xposed Framework, Substratum Themes, etc.

However, each of these tweaks could prove to be risky as well. If not done correctly, then there’s every chance of the device ending up in a bootloop or soft-bricked state. But even if that happens, you could easily unbrick your Xiaomi 12 Pro via Fastboot Commands. And in this guide, we will show you how to do just that. Follow along.

  • How to Unbrick Xiaomi 12 Pro via Fastboot Commands STEP 1: Download Android SDK STEP 2: Download Xiaomi 12 Pro Fastboot ROM STEP 3: Move Xiaomi 12 Pro Fastboot ROM Files to ADB Folder STEP 4: Boot Bootloop/Bricked Redmi K50 to Fastboot Mode STEP 5: Unbrick Xiaomi 12/Pro/12X via Fastboot Commands

How to Unbrick Xiaomi 12 Pro via Fastboot Commands

Unbrick Xiaomi 12 Pro - 1

The below instructions are listed under separate sections for ease of understanding. Make sure to follow the same sequence as mentioned. 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

Unbrick Xiaomi 12 Pro - 2

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. Doing so shall give you the platform-tools folder, which we will be using throughout this guide.

STEP 2: Download Xiaomi 12 Pro Fastboot ROM

Next up, download the Fastboot ROM for your device. As for this guide, I am using Xiaomi 12 Pro Global V13.0.7.0.SLBMIXM Fastboot ROM [ Direct Download Link ]. 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, and Poco Devices . Or here’s the instruction in short:

  • 13.0.7.0 – Firmware version
  • S – Android version (S-> Android 12).
  • LB – Smartphone model code (LB= Xiaomi 12 Pro)
  • MI – Firmware build type (CN for China | 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 your Xiaomi 12 Pro via Fastboot Commands.

STEP 3: MoveXiaomi 12 ProFastboot ROM Files to ADB Folder

  1. Once you have downloaded the firmware, extract it to any convenient location on your PC.
  2. Then go to its Images folder and transfer all the files to the platform-tools folder on your PC.

STEP 4: Boot Bootloop/Bricked Redmi K50 to Fastboot Mode

  1. To begin with, you will have to boot your device to the Fastboot Mode. The first step for that requires you to 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.

STEP 5: Unbrick Xiaomi 12/Pro/12X via Fastboot Commands

Execute each of the below commands in the CMD window, one at a time. Moreover, if you get any error after executing any of these commands, then don’t leave the process mid-way. Rather continue executing the rest of the commands and then check the results.

fastboot erase boot_ab

fastboot erase opconfig 

fastboot erase opcust



fastboot flash abl_ab abl.elf

fastboot flash xbl_ab xbl_s.melf

fastboot flash xbl_config_ab xbl_config.elf

fastboot flash shrm_ab shrm.elf

fastboot flash aop_ab aop.mbn

fastboot flash aop_config_ab aop_devcfg.mbn 

fastboot flash tz_ab tz.mbn

fastboot flash devcfg_ab devcfg.mbn

fastboot flash featenabler_ab featenabler.mbn

fastboot flash hyp_ab hypvmperformance.mbn 

fastboot flash uefi_ab uefi.elf

fastboot flash uefisecapp_ab uefi_sec.mbn

fastboot flash modem_ab NON-HLOS.bin

fastboot flash bluetooth_ab BTFM.bin

fastboot flash dsp_ab dspso.bin

fastboot flash keymaster_ab keymint.mbn

fastboot flash qupfw_ab qupv3fw.elf

fastboot flash multiimgoem_ab multi_image.mbn

fastboot flash multiimgqti_ab multi_image_qti.mbn

fastboot flash cpucp_ab cpucp.elf

fastboot flash rtice rtice.mbn 

fastboot flash logfs logfs_ufs_8mb.bin

fastboot flash rescue rescue.img 

fastboot flash storsec storsec.mbn

fastboot flash toolsfv tools.fv 

fastboot flash xbl_ramdump_ab XblRamdump.elf



fastboot erase imagefv_ab 

fastboot flash imagefv_ab imagefv.elf



fastboot flash super super.img 

fastboot flash vendor_boot_ab vendor_boot.img

fastboot flash dtbo_ab dtbo.img 

fastboot flash vbmeta_ab vbmeta.img 

fastboot flash vbmeta_system_ab vbmeta_system.img



fastboot erase metadata 

fastboot flash metadata metadata.img



fastboot flash userdata userdata.img 

fastboot flash vm-bootsys_ab vm-bootsys.img

fastboot flash cust cust.img

fastboot flash recovery_ab recovery.img 

fastboot flash boot_ab boot.img 

fastboot flash misc misc.img



fastboot set_active a

fastboot reboot

The second last command listed above will set your active partition to A and the last command will automatically boot your device to the OS. However, if your device is still not booting to the OS, then you will have to take the nuclear approach of factory resetting your device (which will delete all the data). So with your device booted to Fastboot Mode, execute the below command to wipe your device:

fastboot -w
  • How to Enable 5G in Android in an Unsupported Country
  • How to Enable VoLTE and VoWiFi on Xiaomi (Root/Non-Root)
  • Enable Hidden Add Multiple Users Option in MIUI (Xiaomi)
  • Enable Choose Update Package | Reboot to Recovery Mode: MIUI Xiaomi
Google preferred - 3 Google preferred - 4

(Cancel Reply)

Δ