Root on Xiaomi Redmi Note 4X: full instruction with unlocking the bootloader and installing Magisk

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).

  1. Launch the Mi Unlock Tool on behalf of the administrator.
  2. Sign in to your Mi Account (should match the one linked to your phone).
  3. Connect your phone in fastboot mode (turn off the device, then press Volume Down + Power).
  4. 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:

  1. Rename the downloaded file to recovery.img and place it in the folder with fastboot.
  2. Connect your phone in fastboot mode.
  3. Fastboot flash recovery recovery.img
  4. 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?
Anti-Rollback is Xiaomi's protection mechanism that prevents rollbacks on older firmware versions. On the Redmi Note 4X, it activates if you're trying to flash TWRP to firmware that's newer than the one the recovery was built for. For example, if your phone is on MIUI 14 and the TWRP is built for MIUI 12, the bootloader will block it from running. The solution is to use TWRP with Anti-Rollback support or temporarily roll back to an older firmware.

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:

  1. Boot to TWRP (Put Volume Up + Power on).
  2. Press Install and select the Magisk-v25.2.zip file.
  3. Swipe to confirm the installation.
  4. 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 unlockedRepeat the unlocking procedure with the Mi Unlock Tool
E: Unable to mount /data in TWRPFBE encryption or damaged partitionsPlease. Disable_ForceEncrypt.zip Or run Format Data.
Phone gets stuck on Mi Logo after Magisk installationAnti-Rollback conflict or incompatible version of MagiskPlease. 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 MagiskDownload files for mido, check the name of the device in fastboot command fastboot getvar product
The mobile network does not work after the firmwareModem partition or incorrect firmware is damagedSweep the original modem.img from stock firmware through fastboot

If none of the solutions worked, try a full reset using the Mi Flash Tool:

  1. Download the full firmware for your model.
  2. Unpack it and put it in a folder with the Mi Flash Tool.
  3. Connect your phone in fastboot mode.
  4. 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 anti

If 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 -system

8 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:

  1. Download the full stock firmware for your model (Fastboot ROM).
  2. Unpack the archive and launch the Mi Flash Tool.
  3. Connect your phone in fastboot mode.
  4. In the Mi Flash Tool, select clean all and lock (this will block the bootloader back).
  5. 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.

FAQ: Frequent questions about root on Redmi Note 4X

Can I get root without unlocking the bootloader?
No, on the Redmi Note 4X (as with all modern Xiaomi), unlocking the bootloader is a must.The only workaround is temporary root through exploits (like DirtyCOW), but it only works on very old versions of MIUI (until 2018) and is extremely unstable.
Why does the phone not pass SafetyNet after installing Magisk?
This is because SafetyNet detects unlocked bootloader.To get around the check: Install the Magisk Universal SafetyNet Fix module. Enable MagiskHide in the Magisk Manager settings. Restart your phone and check status in the SafetyNet Test app. Some banking applications (e.g. Sberbank Online) may require additional setup via MagiskHide Props Config.
How to update MIUI after getting root?
Updating via OTA (over the air) with root is not recommended, it will result in the loss of root or bootloop. Instead: Download the full firmware (Fastboot ROM) for your model. Run it through TWRP (select Install โ†’ Image and specify boot.img from the firmware). After updating, re-sweep Magisk. The alternative is to use custom firmware like LineageOS, which updates without losing root.
Can I get root on the Redmi Note 4X with MIUI 14 firmware?
Yes, but with reservations: Use TWRP from OrangeFox (version) R11.1+). Please. disable_anti_roll.zip before installing Magisk. v25.2 (v26+ It may not work. MIUI 14 You may also need to disconnect AVB 2.0 (Android Verified Boot via command: fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
What if after TWRP firmware the phone asks for a password, but it is not?
It's because of encryption. FBE (File-Based Encryption Solutions: Please Disable_ForceEncrypt.zip into TWRP. Run Format Data (Warning: Delete All Data!) If it doesn't work, run the stock firmware through the Mi Flash Tool and start the process over again. To avoid this problem, before installing it. TWRP Turn off encryption in settings (Settings) โ†’ Security โ†’ Encryption โ†’ Shut down).