How to go to TWRP on Xiaomi Redmi Note 5: a complete guide to unlock the bootloader

Xiaomi Redmi Note 5

whyred

TWRP (Team Win Recovery Project)

Many users experience problems when first logging into TWRP: the device is not detected by the PC, there are errors when you run through fastboot, or the system automatically reboots to the standard Mi Recovery Recovery. In this article, we will analyze all the steps from preparing drivers to solving typical errors, including the current nuances for the Redmi Note 5 based on MIUI 14 and Android 12/13.

Important: the procedure voids Xiaomi warranty and erases all data from the device. If you are a beginner, we recommend that you first learn the theory about the work of downloaders and recoveries.

Preparation of the device: unlocking the loader

The first and mandatory step is to unlock the bootloader through the official Mi Unlock Tool, without which TWRP will not be able to obtain the rights to modify the system partition.

βœ… Requirements for unlocking:

  • πŸ“± Device: Xiaomi Redmi Note 5 (model whyred, check in Settings) β†’ The phone)
  • πŸ”— Mi Account linked to the device (required to verify phone number)
  • πŸ’» Windows PC 7/10/11 (Mi Unlock Tool is required.NET Framework 4.5+)
  • πŸ”Œ Original. USB-cable (use the port) USB 2.0 on PC for stability)

The unlocking process takes up to 720 hours (30 days) due to Xiaomi’s policy: once the account is first linked to the device, you need to wait for confirmation.

⚠️ Note: If you bought the Redmi Note 5 "with your hands", make sure that the previous owner untie your Mi Account in the settings. Otherwise, unlocking will be impossible without his data.

After waiting:

  1. Turn on Developer Mode (7 times click on the MIUI version in Settings β†’ About Phone).
  2. Activate. OEM-unlocking and debugging USB In Settings β†’ Additionally. β†’ For developers.
  3. Connect the phone to the PC, confirm the debugging permission.
  4. Launch the Mi Unlock Tool, log in to your account and follow the program instructions.
πŸ“Š How long have you waited to unlock the bootloader on Xiaomi?
Less than 72 hours.
3-7 days
1-2 weeks
More than 30 days.
I haven't tried it yet.

2. Installation of drivers and ADB/Fastboot

Without the correct drivers, the PC will not recognize the Redmi Note 5 in fastboot mode. Official drivers from Xiaomi often work unstable, so we use a universal solution:

πŸ”§ Methods of installing drivers:

  • πŸ–₯️ Automatically: Download Universal ADB Drivers and start the installer.
  • πŸ› οΈ Manual: In Device Manager, update the driver for Android Bootloader Interface, specifying the folder with unpacked Google drivers USB Driver (from Android) SDK).

Fastboot will also require ADB and Fastboot Tools to run. Install them via:

  • πŸ“¦ Google’s official Platform Tools package (recommended).
  • 🐧 Sudo apt install adb fastboot for Linux.

Check the connection by the command at the terminal:

fastboot devices

If the device is displayed (e.g., c3d8e7f9fastboot) the drivers are installed correctly.

πŸ’‘

If the fastboot device command does not show the device, try reconnecting the cable, changing the device. USB-port or disable driver signatures in Windows (click on) F8 loading β†’"Disable mandatory driver signature verification").

3. Download the correct version of TWRP for Redmi Note 5

Using an incompatible version of TWRP is the main cause of login errors. The following builds are relevant for the Redmi Note 5 (whyred):

TWRP versionAndroid supportDownload linkFeatures
3.7.0_12-010–13Official websiteStable, supports FBE (encryption)
3.6.2_11-09–12XDA DevelopersFor old MIUI firmware
3.5.2_9-08–10TWRP archiveOutdated, not recommended

Critical: For Redmi Note 5 on MIUI 14+, use only TWRP 3.7.0+ – older versions do not support new data encryption (FBE) and lead to the β€œData decryption unsuccessful” error.

Downloaded file (usually) twrp-3.7.0_12-0-whyred.img) Place it in a folder with platform-tools (where adb.exe and fastboot.exe lie).

4. TWRP firmware via Fastboot

Now, let's plug TWRP into the recovery section. Importantly, after firmware, Xiaomi can automatically replace TWRP with a standard recap on the first boot, and to avoid that, you need to log into TWRP immediately after you have firmware.

πŸ“Œ Step-by-step instruction:

  1. Turn off the phone.
  2. Press the Power button + Volume down to enter the fastboot (a screen with a rabbit and the inscription FASTBOOT).
  3. Connect the device to your PC and check the connection: fastboot devices
  4. Please. TWRP: fastboot flash recovery twrp-3.7.0_12-0-whyred.img
  5. Don't turn it off. USB! Go to the Recavator: Fastboot boot twrp-3.7.0_12-0-whyred.img

If step 5 reboots your phone, you're late, and MIUI overwrote the recaps. Repeat the firmware and immediately after the fastboot flash command, hold Volume Up + Power to force you to log into TWRP.

Download the correct TWRP image for whyred|

ADB/Fastboot drivers installed |

Phone in fastboot mode (screen with a rabbit)|

The fastboot device team shows the device |

Automatic update of MIUI is disabled in the settings-->

5.Initial TWRP configuration and reset prevention

After you first log in to TWRP, you'll be asked to allow modifications to the system partition. Swipe right to confirm.

πŸ” How to Avoid Replacement TWRP standard-Recovery:

  • πŸ”§ Install dm-verity and forceencrypt disabler (download the zip file and stitch through Install to the TWRP).
  • πŸ”„ Go to Reboot. β†’ Recovery to reboot to the TWRP (This will confirm his survival").

If you skip these steps, the next reboot MIUI will return the standard recaveri, and all the manipulations will have to be repeated.

⚠️ Attention: On screen TWRP You may have a password request for decryption. /data. If you haven't installed PIN/If you have a password, enter it, otherwise access to internal memory will be limited.

6. Solving Typical Errors When Logging into TWRP

Even if you follow the instructions accurately, users face problems.

❌ Error: Data decryption unsuccessful"

  • πŸ”Ή Reason: TWRP Does not support the current version of encryption MIUI.
  • πŸ”Ή Solution: Please TWRP supportive FBE or back on MIUI 12.

❌ Error: "Invalid zip file format"

  • πŸ”Ή Reason: A damaged file TWRP or incorrect extension (.img.gz instead of.img).
  • πŸ”Ή Solution: Pump the image and check integrity through MD5-sum.

❌ This package is for whyred devices; this is a santoni."

    What if the phone does not turn on after TWRP firmware?
    If the screen is black or only the MI logo is on, try: 1. Keep Power + Volume up for 20 seconds for a forced reboot. 2. Repeat TWRP firmware, but before that, run fastboot: fastboot erase recovery fastboot flash recovery twrp.img 3. If it doesn't work, swipe the official firmware through Mi Flash Tool (select the all clean option).

    7. Additional TWRP features on the Redmi Note 5

    After successfully logging into TWRP, you get access to advanced features:

    πŸ› οΈ What can be done in TWRP:

    • πŸ“± Backup: Full partition backup /data, /system and boot (save on to) SD-map!).
    • πŸ”„ Firmware: Install custom firmware (LineageOS, Pixel Experience) or cores.
    • 🧹 Cleaning: Selective formatting of partitions (e.g, Dalvik/ART Cache to speed up the system).
    • πŸ” Root: Magisk firmware to obtain superuser rights.

    For custom firmware installation:

    1. Download. ZIP-Firmware file (e.g. LineageOS for whyred).
    2. Transfer it to the phone or SD-map.
    3. In TWRP, select Install β†’ specify file β†’ swipe for confirmation.
    4. After installation, run Wipe β†’ Format Data (if required by firmware).

    πŸ’‘

    Before running a custom OS, always check for compatibility with the bootloader version of your device, and the mismatch will result in a "brick" or reboot cycle.

    FAQ: Frequent questions about TWRP on Redmi Note 5

    ❓ Can I enter? TWRP loader-free?
    No. Without an unlocked bootloader, any attempts to modify the recovery are blocked by Xiaomi at the hardware level. The only workaround is exploits (like DirtyCOW), but they only work on older versions of MIUI (until 2019) and require root rights that you don't have yet.
    ❓ Why, after entering the TWRP The touchscreen is not working?
    This is a well-known problem with old versions. TWRP Solutions: Update TWRP beforehand 3.7.0+ (They've got sensor support fixed. OTG-- I'll use a cable and a mouse to navigate. TWRP optionally --disable-verity.
    ❓ How to return the standard recap after TWRP?
    Download the official recovery.img for your version MIUI (For example, with Xiaomi Firmware Updater and run it through fastboot: fastboot flash recovery. stock_recovery.img After that, reset to factory settings in the standard recaveri to avoid conflicts.
    ❓ Can we determine TWRP Redmi Note 5 without PC?
    Technically yes, but with reservations: You will need root access (e.g., through the CVE-2019-2215 exploit for older versions of MIUI). Use apps like Flashify or Rashr, but they require root. Without a PC, you will not be able to unlock the bootloader, which is a must. For most users, the method without a PC is not feasible.
    ❓ Why? TWRP Ask for a password if it is not in the system?
    This is due to the default encryption of /data in MIUI. PIN Enter an empty password (just press Cancel). If you want access to data, file a patch to disable encryption. For new firmware (MIUI 14+), use FBE-enabled TWRP (File-Based Encryption).