How to Install TWRP on Xiaomi Redmi 4X: A Complete Guide from Unlock to Firmware

Why is TWRP on Redmi 4X still relevant in 2026?

Xiaomi Redmi 4X (codenamed santoni) is long gone, but remains popular with custom firmware enthusiasts. The reason is simple: it is one of the latest smartphones with a Qualcomm Snapdragon 435 processor, which has stable support for TWRP and alternative OSes like LineageOS or Pixel Experience. Installing custom recavers opens up opportunities not available in stock MIUI:

From root rights and removal of embedded software to installing new versions of Android, all this is possible after unlocking the bootloader and firmware TWRP. However, the process has nuances: Xiaomi has tightened its unlock policy, and old guides often contain outdated links to tools. This article is an up-to-date instruction with changes in 2023-2026, including bypassing typical errors like Fastboot mode or Anti-Rollback.

Important: If your Redmi 4X is purchased after 2019, there is a high probability that it is a locked bootloader with a link to the Mi Account. This complicates the process, but does not make it impossible. We will consider both scenarios for devices with an unlocked and a locked bootloader.

Preparation: What you need to install TWRP

Before you start, make sure you have:

  • πŸ”Œ Charged smartphone (at least 70% battery) interruption of the process during the unlocking or firmware phase can lead to a brick (inoperable device).
  • πŸ’» Computer on Windows 10/11 (or Linux/macOS Virtual machines are not recommended due to driver issues.
  • πŸ”— Original. USB-Cheap cables often don't transmit data in Fastboot mode.
  • πŸ“₯ Files for firmware: The latest version TWRP for Redmi 4X (Santoni (select the version) 3.7.0_9-0 Mi Unlock Tool (if the bootloader is locked) Qualcomm drivers and ADB (references below).

You will also need a backup. Installing TWRP and unlocking the bootloader completely erases the device's internal memory, including photos, contacts and apps. Use Mi Cloud, Google Photos or physical copying on your PC.

πŸ“Š You've tried installing it before. TWRP Xiaomi?
Yeah, it worked.
Yeah, but there were mistakes.
No, it's my first time.
I'm planning on trying.
ComponentDownload linkNotes
Mi Unlock ToolOfficial websiteVersion 5.5.224.24 or later.Older versions may not work with new Mi accounts.
ADB & FastbootAndroid SDKUnpack into the root of the disk C:\platform-tools\ convenienceally.
Qualcomm driversXDA DevelopersIt is necessary for EDL (Emergency Firmware) mode.
TWRP for SantoniOfficial website of TWRPCheck the version: for Android 7-9 will suit 3.7.0, for Android 10+ - you need a modified build.

Step 1: Unlock the bootloader on Redmi 4X

Without an unlocked bootloader, you can’t install TWRP. Xiaomi requires you to link the device to your Mi Account and wait 7-15 days (on new devices). For the 2017-2018 Redmi 4X, this timeframe is often reduced to 72 hours, but there are no guarantees.

Instructions:

  1. Activate Developer Mode: Go to Settings β†’ About Phone β†’ MIUI Version and tap 7 times on the line. Go back to Settings β†’ Additional β†’ Developer.
  2. Turn it on: πŸ”“ Unlocking OEM (It may not be available on new versions. MIUI). πŸ”Œ Debugging by USB.

Connect the phone to the PC, confirm access for debugging.

Mi Unlock Tool

Mi

"Couldn’t unlock"

Mi Account tied to phone|Developer mode activated|Debugging by USB included|Drivers. ADB fixed|Mi Unlock Tool of the latest version-->

⚠️ Attention: If Redmi 4X It was previously unblocked, but then it was officially released. MIUI, The bootloader could lock again. Check the status with the command: fastboot oem device-info Look for Device unlocked: true. If false, repeat unlocking.

Step 2: Install TWRP via Fastboot

Once the bootloader is unlocked, you can flash TWRP. We use the Fastboot method, because it is the most reliable for the santoni.

Step-by-step:

  1. Download the twrp-3.x.x-x-santoni.img file and rename it to recovery.img and place it in the platform-tools folder.
  2. Turn off the phone, press Volume Down + Power to log into the Fastboot.
  3. Connect the device to your PC and execute commands: fastboot devices (should display the serial number of the phone) fastboot flash recovery.img fastboot boot recovery.img
  4. The phone will automatically reboot to TWRP.
  5. Disable Forced Encryption (if you plan to install custom firmware): Format the Data partition as F2FS (in TWRP: Wipe β†’ Format Data β†’ type β€œyes”)
  6. Sweep Magisk for root rights: Download Magisk (version 26.1+). In TWRP, select Install β†’ select Magisk.zip β†’ Swipe to Confirm.

If your phone fails to be checked by SafetyNet after installing Magisk (bank applications do not work), use the MagiskHide Props Config or Universal SafetyNet Fix modules.

πŸ’‘

Once you install TWRP, never update via OTA to MIUI, which will result in overwriting the Recovery and eventual brick. Use only manual firmware through TWRP.

Alternative methods of installing TWRP

If the standard method doesn’t work, try these options:

  • πŸ”§ Through ADB Sideload: Download twrp-installer-santoni.zip. In the drain recavator, select Apply update from ADB. On PC, do: Adb sideload twrp-installer-santoni.zip

Through OrangeFox Recovery

OrangeFox is a TWRP fork with improved Xiaomi support. Download the image for santoni and run it similarly to TWRP.

Through EDL (Emergency Mode)

Requires an authorized Xiaomi account and a special cable.Use Mi Flash Pro with file prog_emmc_firehose_8953.mbn.

⚠️ Attention: Method EDL It can lead to a hard brick if you use an inappropriate firehose file. 4X Only the Snapdragon 435 version is suitable for the (MSM8940).

FAQ: Frequent questions on TWRP on the Redmi 4X

Can I install TWRP without unlocking the bootloader?
No. Xiaomi blocks the change of the recovery partition on all devices with a locked bootloader.The only workaround is to exploit vulnerabilities (such as DirtyCOW), but they are closed in current versions of MIUI.
Why does the phone not turn on after installing TWRP?
Probable causes: Incompatible version of TWRP (e.g., for Android 10 on an Android 7 device); damaged recovery.img file (check MD5) checksum; Anti-Rollback (if you flashed TWRP to the new MIUI over the old one); Solution: run the stock firmware through the Mi Flash Tool in Clean All mode.
How to upgrade TWRP to Redmi 4X?
Update is done in the same way as installation: Download the new version of recovery.img. Reboot to the current TWRP. Select Install β†’ Install Image β†’ select file β†’ Recovery. Reboot to Recovery. Don't upgrade through Fastboot if you already have TWRP - this can lead to conflicts.
Can I get my stock back after TWRP?
Download the original. recovery.img for your version MIUI (You can get it from the official firmware and run through Fastboot: fastboot flash recovery. stock_recovery.img Note that this will remove the root rights and may block the bootloader if it was unblocked unofficially.
What are the best custom firmwares compatible with Redmi 4X and TWRP?
Verified options: LineageOS 16/17.1 (Android 9/10); Pixel Experience (Android 11, but with camera bugs); Havoc-OS (Android 10, optimized for weak iron); MIUI Pro (modified MIUI without bloat); download firmware only from XDA Developers or SourceForge.