Xiaomi Redmi Note 4X
mido
Snapdragon 625
root-right
Redmi Note 4X
TWRP
Anti-Rollback
Many users face problems: the device is not defined in fastboot, there are errors when you install TWRP firmware, or after installing Magisk, the phone gets stuck on the Mi logo. In this article, we will analyze the current methods of 2026 that work on the latest versions of MIUI 14 (including global and Chinese firmware), and consider alternative ways for devices with a locked bootloader. If you are willing to risk the guarantee and possibility of โbrickingโ the phone โ read on.
โ ๏ธ Warning: Unlocking the bootloader and obtaining root rights permanently voids Xiaomi's official warranty and can lead to permanent damage to the device. HD and banking applications due to SafetyNet.
1.Preparation of the device: what to do before unlocking
Before you start unlocking the bootloader and installing TWRP, you need to follow a few critical steps, skipping at least one of them can lead to data loss or a device โbrickโ (turning into a โbrickโ).
First, check the MIUI version and the firmware region. To do this, go to Settings โ About Phone. If you have Chinese firmware (e.g. V14.0.3.0.TMFCNXM), the unlocking process will be more difficult due to additional restrictions. Global and European versions (e.g. V14.0.2.0.TMFMIXM) are easier to unlock.
Second, make sure that your Mi Account has two-factor authentication disabled (2FA). If it is enabled, link your phone to your account in advance, otherwise, once the bootloader is unlocked, the device may require a password that you cannot enter due to lack of access to SMS.
- ๐ฑ Make a full backup: use Mi Cloud, Google Drive, or local copy on your PC. Once you unlock the bootloader, all data will be erased.
- ๐ Charge your phone at least 70%: the process can take up to 2 hours, and battery drain in the middle of the firmware will cause a failure.
- ๐ฅ๏ธ Install drivers: download Mi Flash Tool and Qualcomm drivers for fastboot.
- ๐ Allow debugging on USB: In Settings โ About the phone tap 7 times on the version MIUI, then in Settings โ Additionally. โ For developers, turn on debugging by USB and Unlock. OEM.
Created a backup of all data|Mi Account tied to phone|Disconnected. 2FA Mi Account|Qualcomm drivers installed|Debugging is on. USB and unlock OEM|Phone's 70-charged%+
-->
โ ๏ธ Note: If you have updated the firmware through OTA (air, before unlocking the bootloader be sure to flash the full version MIUI Mi Flash Tool, otherwise, there may be errors in the installation TWRP partitioning.
2 Unlock the bootloader on the Redmi Note 4X
The bootloader on the Xiaomi Redmi Note 4X is locked by default. To unlock it, you need to obtain permission from Xiaomi through the official Mi Unlock Tool. The process can take from 3 to 30 days, depending on the activity of the account.
Download the latest version of the Mi Unlock Tool from the official website (use the global version, even if you have Chinese firmware). Install the program on a Windows 7/10/11 PC (macOS or Linux will have to use a virtual machine).
- Launch the Mi Unlock Tool on behalf of the administrator.
- Sign in to your Mi Account (should match the one linked to your phone).
- Connect your phone in fastboot mode (turn off the device, then press Volume Down + Power).
- Press Unlock and wait for the process to be completed.
If you see a message saying "Couldn't unlock. Wait XX hours," Xiaomi has set a waiting timer.
- ๐ Wait for the specified time (usually 72-720 hours).
- ๐ Try repeating the procedure from another PC or IP-Addresses (sometimes network changes).
- ๐ฑ Make sure the Unlock option is on the phone. OEM and debugging USB.
Less than 72 hours.|3-7 days|1-2 weeks|More than 30 days.|I haven't unlocked yet.-->
โ ๏ธ Note: On Chinese firmware (China) Stable/Developer) When you unlock the bootloader, you may lock your Mi Account every time you turn on your phone. To avoid this, immediately after unlocking, run the global firmware through the Mi Flash Tool.
3. Install TWRP Recovery on Redmi Note 4X
After unlocking the bootloader, the next step is to install a custom Recovery TWRP. For the Redmi Note 4X (mido, there are several versions TWRP, Not all of them are compatible with the latest MIUI 14. We recommend using it. TWRP OrangeFox or TeamWin official build with support A/B-section.
Download the current version of TWRP for mido from the official website or from the XDA Developers forum.
- twrp-3.7.0_9-0-mido.img โ stable-version MIUI 12/13.
- OrangeFox-R11.1-Stable-mido.zip โ Recommended for MIUI 14 (supports FBE encryption).
For installation:
- Rename the downloaded file to recovery.img and place it in the folder with fastboot.
- Connect your phone in fastboot mode.
- Fastboot flash recovery recovery.img
- Reboot to Recavator: fastboot boot recovery.img
If the TWRP doesn't start after the reboot and the phone loads into a standard MIUI recavator, then the Anti-Rollback protection has worked.
- ๐ Try to sew it. TWRP via the fastboot boot command (without flash).
- ๐ฅ Download. disable_anti_roll.zip and run it through TWRP before installing Magisk.
- ๐ง If nothing helps, go through the older version. MIUI (for example, MIUI 11), then repeat the process.
What is Anti-Rollback and why does it block TWRP?
4.Install Magisk and obtain root rights
Now that TWRP has been successfully installed, you can start rooting with Magisk. The last stable version at 2026 is Magisk v26.4, but for the Redmi Note 4X, it is better to use Magisk v25.2 (more stable on MIUI 14).
Download Magisk from GitHub (Magisk-v25.2.zip file) and transfer it to your phone. We also recommend downloading MagiskDelta to manage modules without completely flashing.
Installation instructions:
- Boot to TWRP (Put Volume Up + Power on).
- Press Install and select the Magisk-v25.2.zip file.
- Swipe to confirm the installation.
- After completion, press Reboot System.
If after the reboot the phone gets stuck on the Mi logo for more than 10 minutes:
- ๐ Boot back in. TWRP and sew Disable_Dm-Verity_ForceEncrypt.zip (This will disable the integrity check).
- ๐ฑ If it doesnโt work, run Format Data in TWRP (Note: This will delete all data!).
- ๐ง Check the compatibility of the Magisk version with your firmware (on the MIUI 14 may not work Magisk v26+).
After a successful download, install Magisk Manager (download APK from GitHub) and check the root rights status. If the application displays Magisk: โ, then everything went well.
๐ก
If banking applications (Sberbank, Tinkoff) do not work after receiving root, install the MagiskHide Props Config module and activate root hiding modes for these applications.
5. Solving common mistakes
Even if you follow the instructions accurately, there may be errors on the Redmi Note 4X, and below we will discuss the most common problems and ways to solve them.
| Mistake. | Reason. | Decision |
|---|---|---|
| Fastboot: FAILED (remote: 'Flashing is not allowed in Lock State') | The bootloader is not unlocked | Repeat the unlocking procedure with the Mi Unlock Tool |
| E: Unable to mount /data in TWRP | FBE encryption or damaged partitions | Please. Disable_ForceEncrypt.zip Or run Format Data. |
| Phone gets stuck on Mi Logo after Magisk installation | Anti-Rollback conflict or incompatible version of Magisk | Please. disable_anti_roll.zip Or roll back to Magisk. v25.2 |
| This package is for "mido" devices; this is a "" | The Wrong Version of TWRP or Magisk | Download files for mido, check the name of the device in fastboot command fastboot getvar product |
| The mobile network does not work after the firmware | Modem partition or incorrect firmware is damaged | Sweep the original modem.img from stock firmware through fastboot |
If none of the solutions worked, try a full reset using the Mi Flash Tool:
- Download the full firmware for your model.
- Unpack it and put it in a folder with the Mi Flash Tool.
- Connect your phone in fastboot mode.
- In the Mi Flash Tool, select clean all and click Flash.
๐ก
If after all the manipulations the phone does not turn on (black screen, vibration without a logo), try to flash through the phone. EDL-mode using author cable or boxing (for example, UFi Box).
6. Alternative methods of root without TWRP
If you canโt install TWRP or donโt want to risk data, there are alternative ways to get root rights to the Redmi Note 4X:
- ๐ง Patched Boot Image: Download the original boot.img From your firmware, patch it through Magisk Manager and run it through fastboot: fastboot flash boot. magisk_patched.img This method does not require TWRP, But root will disappear after the firmware update.
- ๐ฆ Custom firmware with root preinstalled: For example, LineageOS or Pixel Experience for mido already include Magisk. MIUI.
- ๐ Temporary root through ADB: Use a Temporary Root utility (like KingRoot), but itโs an unstable method with high security risk.
โ ๏ธ Attention: The method with the patched boot.img It can cause bootloop ( looped reboot) if you use firmware with Anti-Rollback. 3+. Before firmware check the version of the rollback team:
fastboot getvar antiIf the value is anti=3 Or higher, go ahead. disable_anti_roll.zip.
7. Optimize the system after obtaining root
Now that you have root rights, you can significantly improve the performance of the Redmi Note 4X. Here are some useful steps:
- โก Disconnection of unnecessary services MIUI: Use Debloater (e.g. Universal Android Debloater) to remove system applications like Mi Browser, Mi Video, Analytic.
- ๐ Battery Optimization: Install the Magisk Battery Charge Limit module to limit charge to 80% and extend battery life.
- ๐ฎ Improved gaming performance: Activate Force GPU Rendering and disabling MIUI Optimization in the Developer Settings.
- ๐ก๏ธ Security: Install AFWall+ for managing the rights of applications to access the Internet.
For deep kernel configuration, we recommend modules:
- KernelSU is Magiskโs alternative to root rights management at the core level.
- FDE.AI optimizes energy consumption and productivity.
- ViPER4Android improves sound through headphones and speakers.
โ ๏ธ Warning: Removing system applications can lead to unstable work MIUI. Before removing, make a backup section /system into TWRP team:
adb backup -f system_backup.ab -system8 How to get it all back (rolling back to stock firmware)
If you need to return the phone to its original state (for example, for sale or warranty repair), follow the following steps:
- Download the full stock firmware for your model (Fastboot ROM).
- Unpack the archive and launch the Mi Flash Tool.
- Connect your phone in fastboot mode.
- In the Mi Flash Tool, select clean all and lock (this will block the bootloader back).
- Press Flash and wait until it is completed (10-15 minutes).
After the firmware:
- The phone will automatically reboot to stock firmware without root.
- The bootloader will be blocked, and to re-receive root you will have to go through the unlocking procedure again.
- All data will be erased, including internal memory.
If the phone doesnโt turn on after firmware (black screen, red light flashes), try:
- ๐ Connect to charging for 30 minutes โ sometimes helps with a discharged battery.
- ๐ Repeat the firmware with the choice of clean all (no lock).
- ๐ก Squeeze through EDL-Mode (requires an authorized Xiaomi account or boxing).
๐ก
If you sell your phone after rolling back to stock firmware, be sure to perform factory reset in the settings and untie your Mi Account in Settings โ Xiaomi Account โ Sign out.