Home > TWRP

How to Install TWRP and Root Redmi K20/Pro

In this guide, we will show you the steps to install TWRP and root the Redmi K20 and K20 Pro devices. When we talk about the Redmi series, it’s the Note variants that usually pop into a user’s mind. However, its K variant is equally impressive but doesn’t seem to get the appreciation that it deserves. With an impressive specs sheet at a cost that wouldn’t burn a hole in your pockets, these devices rightly carried forward the legacy of the Chinese OEM.

Talking about which, the Redmi devices have always known to be top-performing devices in custom development. While it does have its fair share of issues such as the blocking of EDL Mode or Anti Rollback Mechanism, but that hasn’t dented the ambitions of the tech enthusiasts. Right after you unlock the bootloader, there are a plethora of tweaks waiting for you. These include the likes of flashing custom ROMs, custom recoveries like TWRP or OrangeFox, gaining administrative access via Magisk.

The latter would then allow you to flash a plethora of mods, including the likes of Magisk Modules, Xposed Framework, Substratum Themes, and Viper4Android. However, to try out any of these customizations, you have to checkmark an important prerequisite- your device needs to be rooted. And in this guide, we will show you how to do just that. So without further ado, let’s start off with the steps to install TWRP and root the Redmi K20 and K20 Pro devices.

Don’t Miss: How to Unbrick Redmi K20/Pro via Fastboot Commands

How to Install TWRP and Root Redmi K20/Pro

install twrp recovery root redmi k20 pro

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: Enable USB Debugging and OEM Unlocking

Next up, you will also have to enable USB Debugging and OEM Unlocking on your device. The former will make your device recognizable by the PC in ADB mode. This will then allow you to boot your device to Fastboot Mode. On the other hand, OEM Unlocking is required to carry out the bootloader unlocking process.


So head over to Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Advanced > Developer Options > Enable USB Debugging and OEM Unlocking.

STEP 3: Unlock Bootloader on Redmi K20


You will also have to unlock the device’s bootloader. Do keep in mind that doing so will wipe off all the data from your device might also nullify the warranty. So if that’s well and good, then refer to our guide to How to Unlock Bootloader on any Xiaomi Device. Once that is done, move over to the next step to install TWRP and root the Redmi K20 and K20 Pro devices.

STEP 4: Download TWRP Recovery for Redmi K20/Pro

You may now download the official TWRP Recovery for your Redmi K20/Pro from the below section:

  • TWRP for Xiaomi Mi 9T / Redmi K20 (davinci/davinciin): Download Link
  • TWRP for Xiaomi Mi 9T Pro / Redmi K20 Pro (raphael/raphaelin): Download Link

Once you have downloaded the recovery, transfer it to the platform-tools folder on your PC. It is recommended that you rename the recovery file to twrp, hence the complete name becomes twrp.img. Moreover, transfer one copy of twrp.img to your device’s Internal Storage as well.

STEP 5: Download Magisk App

Download the latest Magisk App onto your device. Once done, change the extension from APK to ZIP. Doing so shall make it TWRP flashable.

STEP 6: Boot Redmi K20/Pro to Fastboot Mode


  1. Now connect your device to the PC via USB cable. Make sure USB Debugging is enabled.
  2. Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
  3. Type in the following command in the CMD window to boot your device to Fastboot Mode
    adb reboot bootloader
  4. To verify the Fastboot connection, type in the below command and you should get back the device ID
    fastboot devices

STEP 7: Install TWRP Recovery on Redmi K20/Pro

Make sure that the CMD window is opened inside platform tools and has the twrp.img file. Likewise, the twrp.img and Magisk ZIP should be transferred to your device, which in turn should be connected to the PC via USB and booted to Fastboot. If that is all well and good, then proceed with the below steps:

  1. Start off by typing in the below command to install the TWRP Recovery onto Redmi K20/Pro:
    fastboot flash recovery twrp.img
  2. After that, type in the below command to boot your device to TWRP
    fastboot boot twrp.img
  3. Your device will now boot to TWRP. Go to the Install section, select the Magisk ZIP and perform a right swipe to flash it.
  4. Once done, you may now reboot the device to the OS via Reboot > System.

That’s it. These were the steps to install TWRP and root Redmi K20/Pro devices. If you have any queries, do let us know in the comments section. We will get back to you with a solution at the earliest.

  • Sekhose

    what about dm-varity?