Home > Unbrick

How to Unbrick Redmi K20/Pro via Fastboot Commands

In this guide, we will show you the steps to unbrick your Redmi K20 and K20 Pro devices via Fastboot Commands. Since the OEM decided to part ways with Xiaomi, it has launched quite impressive device sets. While the budget Note series is where most of the attention lies, its K series seems to be quite an underappreciated player. From both the hardware and software aspects, the K20 seems to have struck the right chord with the audience.

Along the same lines, it is equally impressive in custom development. Once you unlock the device’s bootloader, you stand in the position to try out a plethora of customizations. These include the likes of flashing custom ROMs, recoveries, and modules such as Xposed Framework, Viper4Androd, Substratum Themes, etc. However, this is just one aide of the coin.

On the flip side, these tweaks do bring in quite a few risks as well. If you don’t end up performing the tweaks correctly, then a soft brick or bootloop device is on the cards. Fortunately, there’s an easy way out. You could unbrick your Redmi K20/Pro via Fastboot Commands. And in this guide, we will show you how to do just that. So without further ado, let’s get started.

How to Unbrick Redmi K20/Pro via Fastboot Commands

unbrick redmi k20 via fastboot commands

The below instructions are listed under separate sections for ease of understanding. Make sure to follow in the exact 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: Install Android SDK

install adb platform tools windows

First and foremost, you will have to install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform-tools folder, which will be used throughout this guide.

STEP 2: Download Redmi K20/Pro Fastboot ROM

Next up, download the Fastboot ROM for your device. As for this guide, I am using the following ROM file: Redmi K20 India V12.0.8.0.QFJINXM Fastboot ROM. You are free to try any version of your choice, but it is recommended to try the newer builds only and of your region. Here is how to understand the Xiaomi Fastboot firmware version: [Don’t Miss: How to Flash Xiaomi Fastboot ROM without Mi Flash Tool].

unbrick redmi k20 fastboot rom

  • 12.0.8.0 – Firmware version
  • Q – Android version (Q-> Android 10).
  • FJ – Smartphone model code (FJ = Redmi K20)
  • 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 Redmi K20 via Fastboot Commands.

STEP 3: Move Redmi K20/Pro Fastboot ROM Files to ADB Folder

  1. To begin with, extract the downloaded firmware file to any convenient location on your PC.
  2. So head over to the Images folder and the following files will be present there:
    unbrick redmi k20 fastboot rom img files
  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 Redmi K20/Pro device via Fastboot Commands.

STEP 4: Boot Bootloop/Soft Bricked Redmi K20/Pro 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 xiaomi device
    Fastboot Mode in Xiaomi
  5. Now head over to the platform-tools folder where you have extracted the Fastboot ROM.
  6. Go to its address bar, type in CMD, and hit Enter. This will launch the Command Prompt window. Keep this window opened from now on until the end of this guide.

STEP 5: Unbrick Redmi K20/Pro via Fastboot Commands

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 Redmi K20 and unbrick it. To begin with, make sure that your device is connected to the PC via USB in Fastboot Mode. Then head over to the Command Prompt window that is opened inside the platform-tools folder.

command-prompt-adb

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 in one go [Commands are the same for both K20/Pro devices since they follow the same partition scheme].

fastboot flash xbl xbl.elf
fastboot flash xbl_config xbl_config.elf
fastboot flash abl abl.elf
fastboot flash tz tz.mbn
fastboot flash hyp hyp.mbn
fastboot flash devcfg devcfg.mbn
fastboot flash storsec storsec.mbn
fastboot flash bluetooth BTFM.bin
fastboot flash cmnlib cmnlib.mbn
fastboot flash cmnlib64 cmnlib64.mbn
fastboot flash modem NON-HLOS.bin
fastboot flash dsp dspso.bin
fastboot flash keymaster km4.mbn
fastboot flash logo logo.img
fastboot flash misc misc.img
fastboot flash aop aop.mbn
fastboot flash qupfw qupv3fw.elf
fastboot flash imagefv imagefv.elf
fastboot flash uefisecapp uefi_sec.mbn
fastboot flash multiimgoem multi_image.mbn
fastboot flash vendor vendor.img
fastboot flash vbmeta vbmeta.img
fastboot flash dtbo dtbo.img
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
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. On that note, we conclude the guide on how to unbrick Redmi K20/Pro via Fastboot Commands. The best part about this tutorial is the fact that it doesn’t require any Redmi K20 Patched Firehose File (prog_emmc_firehose.mbn) or the prog_firehose_ddr_unbrick.elf file.

Furthermore, we didn’t need to make use of the Mi Flash Tool either. With that said, if you have any queries concerning the aforementioned steps, do let us know in the comments section below. We will get back to you with a solution at the earliest.


Share:
  • Matheus

    Hello SADIQUE HASSAN, would you have the FireHorse file for the Xiaomi Mi9? I looked for the site, but I couldn’t find it!

  • You saved my phone THANKS A LOT

  • Pranay Reddy

    Thanks a lot man. I have tried multiple methods but didn’t worked for me. Your cmd line instructions worked for me.

  • Osama Shaalan

    Salam Bro.
    I followed the steps but I got “(remote: ‘Flashing is not allowed in Lock State’)” my device is k20 pro.
    please your support

    • Sadique Hassan

      Hi Osama, judging by the error message, your device’s bootloader is locked. So, boot your device to Fastboot and then unlock the bootloader via Mi Unlock Tool first and then flash the firmware via Fastboot Commands.

  • do u have firehose programmer for k20 pro?

  • I would like to ask, if you can, teach how to use MagiskHide Props Config, I have not found an explanation anywhere on the internet, and on github the explanation is very ‘technical’, I needed a few practical examples to understand.