Why is TWRP on Redmi 4X still relevant in 2026?
The Xiaomi Redmi 4X (codenamed santoni) remains a popular device among custom firmware enthusiasts despite its age (released in 2017), and the reason is simple: balanced iron (Snapdragon 435, 3GB of RAM), removable battery and active community support. The TWRP (Team Win Recovery Project) installs:
βοΈ firmware MIUI Android (for example, LineageOS 18.1);
βοΈ creating full backups of the system (Nandroid backup);
βοΈ manual removal of bloatware (embedded Xiaomi applications);
βοΈ Unlock additional features through Magisk (e.g, ViPER4Android sound-wise).
But the process of installing TWRP on the Redmi 4X has nuances: Xiaomiβs official support for unlocking the bootloader has become more complicated, and some firmware versions block the installation of a custom recovery. This guide features current methods for 2026, including bypassing typical errors like the Invalid image format or hanging on the Mi logo.
Step 1: Preparing the device and PC
Before starting, check out 4 critical conditions:
- π Battery charge at least 70% when discharged during Redmi firmware 4X It can turn into a brick (not even in Fastboot mode).
- π± Version. MIUI No newer than 12.5.3. on more recent firmware Xiaomi blocks installation TWRP If necessary, roll back through the Mi Flash Tool.
- π₯οΈ Xiaomi drivers are installed on PC. Download Mi Unlock Tool - it will automatically install the desired drivers.
- π Backup of data. TWRP Save user files, but reset to factory settings (Wipe) erases everything, including photos in internal memory.
Download the necessary files (links are valid for May 2026):
| File. | Reference | Note |
|---|---|---|
| TWRP for Santoni | Official website | Version. 3.7.0_9-0 (last-last stable) |
| Mi Unlock Tool | Xiaomi page | Requires a Mi Account with a linked number |
| ADB & Fastboot | Android Studio | Unpack in C:\platform-tools |
| Disable Force Encryption | XDA Developers | To disable encryption (optional) |
β οΈ Attention: If your Redmi is 4X purchased in China (suffixed version _CN In the model name, you'll need to wait 360 hours to unlock the bootloader after you've linked your account.
Step 2: Unlock the bootloader through the Mi Unlock Tool
Without a bootloader, TWRP installation is impossible. Xiaomi made it harder to get started in 2023, so follow the instructions carefully:
- Activate Developer Mode: Go to Settings β The phone. β Version. MIUI and tap 7 times on the line. Go back to Settings. β Additionally. β For developers and include: π§ Debugging by USB π Unlocking OEM (point-of-point!)
Link your Mi Account to your device:
In the same Developer Menu, find Mi Unlock Status β Add an account. Use the same account as you used in the Mi Unlock Tool on your PC.
Launch the Mi Unlock Tool on PC:
1. Connect the phone in Fastboot mode (turn off, then press Volume Down + Power).
2. In the program, log in to the Mi Account.
3.Push Unlock and wait until it is completed (it may take several attempts).Critical detail: If the Mi Unlock Tool gives you a 99% "Couldn't unlock" error, try using the 5.5.224.24 version of the tool - it bypasses the restrictions on new firmware.
Linked to Mi Account in phone settings
USB debugging and OEM unlocking enabled
The phone is connected in Fastboot mode (the rabbit logo)
Drivers are installed on the PC ADB-->
Step 3: Install TWRP via Fastboot
Once the bootloader is unlocked, we move to the backup firmware, and we use fastboot, which is the most reliable method for the Redmi 4X.
Open the command line in the platform-tools folder (press Shift + PCM β Open the PowerShell window here) and execute commands in order:
fastboot devices
fastboot flash recovery twrp-3.7.0_9-0-santoni.img
fastboot boot twrp-3.7.0_9-0-santoni.imgExplanation to the teams:
- π± fastboot devices β check the device's connection. If the list is empty, reinstall the drivers.
- πΎ Fastboot Flash Recovery β Recording TWRP recovery.
- π fastboot boot β temporary launch TWRP (to avoid overwriting stock recaps at the first load).
β οΈ Note: If an error occurs after the fastboot flash recovery command FAILED (remote: partition table doesn't exist, your device uses dynamic partitions. twrp-installer-santoni.zip temporary TWRP (see next step).
π‘
If the phone is stuck on the Mi logo after installing the TWRP, press Volume Up + Power for 10 seconds for a forced reboot. Then repeat the command fastboot boot twrp.img.
Step 4: Permanently installing TWRP and disabling encryption
Temporary launch of TWRP (fastboot boot) does not save the recovery after the reboot.
- From the TWRP menu, select Install β find the twrp-installer-santoni.zip file (download it in advance with XDA).
- Swipe it for confirmation. TWRP slot-in (recovery_a and recovery_b).
- To disable forced encryption (if you use custom firmware): π Please. Disable_Dm-Verity_ForceEncrypt.zip (jump on XDA). π§Ή Run the Wipe. β Format Data (enter yes to confirm).
After these actions:
- π The internal memory will be available as /data codeless.
- π TWRP will remain after reboots (if you do not sew stock recavery).
What if TWRP asks for a password when downloading?
Step 5: Solving Common Mistakes
Even with the exact instructions, there are possible failures, and the following are typical problems and proven solutions for the Redmi 4X:
| Mistake. | Reason. | Decision |
|---|---|---|
| Invalid sparse file format at header | The damaged twrp.img file | Download the image again, check the checksum for SHA-256 |
| Phone loads into stock Recovery | Stock firmware re-writes TWRP | Switch twrp-installer.zip or disable auto-update in Settings β System Update |
| E: Unable to mount /data | FBE encryption is enabled | Please. Disable_Dm-Verity_ForceEncrypt.zip And make Format Data. |
| Error 7 when ZIP firmware | Incompatible version of Android | Check firmware and TWRP compliance (e.g. Android 10 requires TWRP 3.4+) |
If the phone doesn't boot into the system after installing TWRP (cyclical reboot), the boot section is likely damaged.
- Download stock firmware for Redmi 4X with Xiaomi Firmware Updater.
- In TWRP, only run boot.img from the firmware archive (not all ZIP!).
π‘
Redmi 4X with MIUI 12+ firmware may require a recoil on MIUI 11 before installing TWRP. Use the Mi Flash Tool in Clean All mode (not Clean All and Lock!).
Step 6: Next steps after installing TWRP
Now your Redmi 4X is ready to experiment.
- π¦ Installation of custom firmware: Download ZIP with firmware (such as Havoc-OS or Pixel Experience for santoni) and run through Install β Select ZIP. Donβt forget to make a Wipe before. β Advanced Wipe (select Dalvik, Cache, System, Data).
- π Getting root rights: Download the latest version of Magisk (e.g., download the latest version of Magisk, Magisk-v26.4.zip) and pass through TWRP. After the reboot, check root with Root Checker.
- πΎ Backup creation: On the menu TWRP Choose Backup β Check the Boot, System, Data sections β Swipe for confirmation. SD-card.
Important for Redmi 4X: If you plan to use Google Apps (GApps), download arm64 β 10.0 β pico (for Android 10).Newer versions of GApps may not stand up due to memory limitations.