How to Flash TWRP on Redmi 6 (and Root)

How to Flash TWRP on Redmi 6 (and Root) 1

This tutorial guides you to the working steps on installing TWRP and rooting Xiaomi Redmi 6 codename Cereus using the official build by Team Win Recovery Dev Team. The process shall be a piece of cake for you.

Why should I flash TWRP? Every Xiaomi phone comes shipped with stock recovery. However, the functionalities are limited to things that Xiaomi allows you to flash.

On the other hand, custom recoveries such as TWRP, RWRP, etc provide better functionalities and more awesome features. You can flash any custom binaries such as Magisk root, custom ROMs, or system mods.

Moreover, TWRP allows you to create full system backup. Restoring full backup with it is also a hassle-free experience.

Xiaomi Redmi 6 is the iteration of Redmi 5. It is an Android phone released in a budget segment. It sports MediaTek MT6762 chipset with MTK Helio P22 processors. Some other variants of the phone include Redmi 6A and Redmi 6 Pro. However, this guide is for Redmi 6 and is not for other variants.

Warning: This procedure will wipe all your data. Please create a full data backup beforehand. Photos, videos, contacts, messages, and other important files are the area you may want to backup. Moreover, we hold no responsibility of any damage caused by following this tutorial. Proceed with full caution. Remember that we have warned you.

Read also: How to install Play Store on Redmi 6 MIUI 10 China ROM.

Requirements

Here are following things that you need to proceed with the flashing process.

Steps to Flash TWRP

The prerequisites steps:

  1. Unlock your phone bootloader officially. This is particularly easy but it may take some time. Read our full guide on how to do this here.
  2. Disable Driver Signature Enforcement on your Windows computer. This allows smooth installation process, or else, you will end up fail on installing the necessary driver. The full tutorial is here.
  3. Install Xiaomi ADB-Fastboot USB driver software you have downloaded it from the above link. This allows your computer to recognize your Android device properly. On top of that, this makes sure you can establish both ADB and Fastboot connection while the phone is in Bootloader mode and USB Debugging enabled. Choose site-wide installation during the process. Once installed, you will have it in your drive C:\adb\. You may also use Mi Flash tool instead. The tool bundles all required drivers within its installation.
  4. Download the latest version of the Magisk zip file or DM Verity Disabler zip file directly to your phone (link available above).
  5. Backup your important data. We hold no responsibility for any potential damage of following this article. Please proceed with caution.

The main steps:

Step 1. Download the TWRP image file from the above link to your computer and rename the file to recovery.img.

Step 2. Copy the recovery.img to the C:\adb\ folder. This task is super easy on Windows Explorer.

Step 3. Enable Developer Options on your phone. Go to Settings > About phone > tap the MIUI version several times until the developer options being enabled.

Step 4. Enable USB Debugging through Settings > Additional Settings > Developer Options > USB Debugging > toggle it on.

Step 5. Connect your phone to your computer using its USB cable.

Step 6. On your computer, go to the ADB folder in Windows Explorer. This is usually located at C:\adb\.

ALSO READ:  A Practical Way to Flash Xiaomi.eu ROM on Redmi K20 Pro (Mi 9T Pro)

Step 7. Type “cmd” – without quotes – in the Address bar of Windows Explorer, then hit Enter. This will launch Command Prompt window right in the current location.

Step 8. Next, type following command and hit Enter on your keyboard to execute it:

adb devices
adb reboot bootloader

The first line tells your computer to establish an ADB connection and list all attached device. You will see your device code being displayed. The second line instructs your PC to reboot your phone into bootloader mode.

Congratulation, you will see the Xiaomi Bunny logo being displayed that indicates your phone is already in the bootloader mode.

Step 9. Type in following command:

fastboot devices
fastboot format userdata

The second line of command instruct ADB to format all user’s data. Again, we have warned you on this.

Step 10. Now issue the following command to flash TWRP on your device.

fastboot flash recovery recovery.img

This instructs the computer to flash TWRP image file to the phone through the fastboot interface. The process should finish within seconds.

How to Flash TWRP on Redmi 6 (and Root) 2

Step 11. At this point, TWRP should have been flashed. You can issue following command to reboot into normal mode:

fastboot reboot

Steps to Root Redmi 6 with Magisk

Step 12. Once your phone is on, make sure the USB connection allows you to transfer files (and is not in Charging mode).

Step 13. Copy both Magisk zip file and Lazyflasher (DM-verity) zip file on your phone. Place them in the root directory of your phone internal storage.

Step 14. Get back to the Command Prompt or PowerShell window and type in following command:

adb devices
adb reboot bootloader
fastboot devices
fastboot reboot recovery

Your phone should now reboot into TWRP recovery.

Step 15. Allow TWRP to do system modification. Swipe to allow it.

Step 16. You’ll see all the main menu of TWRP Recovery. Choose Install by tapping on it.

Step 17. Now locate the Magisk zip file you have copied earlier. Tap on its file name to select it.

How to Flash TWRP on Redmi 6 (and Root) 3

Step 18. Finally, do the “Swipe to confirm flash” action. TWRP will then install Magisk on your phone. The process should finish in no time.

Step 19. Tap on the “Reboot” button.

Step 20. Your phone will reboot into normal mode.

Voila! You have successfully flashed TWRP and gained root access on your Redmi 6 device.

A new app called “Magisk Manager” will be automatically installed after flashing Magisk zip file. Look for this app icon on your phone. There is a rare case that it may not be found due to corrupted flashing process. If this happens, you can download Magisk Manager .apk file here and install it manually.

Magisk Manager is basically a root manager app. It allows you to manage and to organize all the apps allowed to use root access on your phone. You can grant or revoke root access within this app. On top of that, you can use it to hide the root status from being detection by specific apps. This feature is useful to avoid root detection performed by banking apps and some gaming apps like Pokemon Go.

You can also check the current root status by downloading Root Checker app from the Play Store. Look for it there.

That’s all guys! Please tell us about your experience. Did it go smoothly for you? Any difficulties or things you don’t understand from the above steps? Share it with us in the comment section below.

Credits belong to TWRP Dev Team.

Tags:

20 thoughts on “How to Flash TWRP on Redmi 6 (and Root)”

  1. Hi Fandi, thank you for sharing! Please, can you explain where the dummy.img (step 2) is coming from? And that file is used in some of the following steps? It seems not used…

    1. Hi Rigacci, thanks for pointing that out. No, there is no necessary to flash dummy image. Fixed the article. Thanks

  2. hello i haved flash susscess twrp recovery via ADB but when i use command (” adb reboot recovery”) i have stock recovery.. please help me

  3. plz help me i use all method but my redmi 6 miui 10 android 8.1…not root…twrp not install everythinh is ok massge same as shown here….

    plz help me and urgent reply me thanks…

  4. henrique ribeiro e oliveira

    se alguem estiver com ero de criptografia na pasta do twrp, é só abrir o recovery stock mandar limpar os dados reiniciar em bootloader e fazer o processo, quebrei cabeça em muitos lugares e descobri agora, tentem fazer, comigo deu certo

  5. I do all the steps but when I want to get into recovery he gives this message

    PS C:\adb> fastboot reboot recovery
    usage: fastboot [ ]

    commands:
    update reflash device from update.zip
    flashall flash boot, system, vendor and if found,
    recovery
    flash [ ] write a file to a flash partition
    flashing lock locks the device. Prevents flashing partitions
    flashing unlock unlocks the device. Allows user to flash any partition except the ones that are related to bootloader
    flashing lock_critical Prevents flashing bootloader related partitions
    flashing unlock_critical Enables flashing bootloader related partitions
    flashing get_unlock_ability Queries bootloader to see if the device is unlocked
    erase erase a flash partition
    format[:[][:[]] format a flash partition.
    Can override the fs type and/or
    size the bootloader reports.
    getvar display a bootloader variable
    boot [ ] download and boot kernel
    flash:raw boot [ ] create bootimage and flash it
    devices list all connected devices
    continue continue with autoboot
    reboot [bootloader] reboot device, optionally into bootloader
    reboot-bootloader reboot device into bootloader
    help show this help message

    options:
    -w erase userdata and cache (and format
    if supported by partition type)
    -u do not first erase partition before
    formatting
    -s specify device serial number
    or path to device port
    -l with “devices”, lists device paths
    -p specify product name
    -c override kernel commandline
    -i specify a custom USB vendor id
    -b specify a custom kernel base address.
    default: 0x10000000
    -n specify the nand page size.
    default: 2048
    -S [K|M|G] automatically sparse files greater
    than size. 0 to disable
    PS C:\adb>

    1. apparently, the latest MIUI no longer supports the command (to protect the stock recovery being replaced). Reboot to recovery manually instead, do not issue the command but use Power + Volume Up button combo.

  6. Hi, I have installed TWRP successfully but when i open directly twrp from cmd some corrupted colors appear and after some time it reboots system. I have redmi 6a with running miui 11 and android 9.1 pie. Can you find me a solution?

Leave a Reply

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