Why is Redmi 4X still relevant for rooting?
Xiaomi Redmi 4X (codenamed santoni) was released in 2017, but remains popular with customization enthusiasts, due to its balanced hardware (Snapdragon 435, 3GB of RAM in the top version) and active community support. In 2026, the device can still be turned into a performance device for specific tasks, from running retro games through emulators to being used as a server for IoT devices.
However, getting the root rights to the Redmi 4X is a nuanced task today. Xiaomi has long since closed the official ability to unlock the bootloader through the Mi Unlock Tool for older models, and most guides on the network contain outdated links to firmware and utilities. In this article, current methods for 2026, including bypassing the restrictions of MIUI, choosing between Magisk and SuperSU, as well as solving typical errors like Fastboot OEM unlock with code 86006.
Before you start, answer a key question: Why do you need root? If the goal is simply to remove embedded apps or disable ads in MIUI, there may be enough alternative methods without the risk of βbrickingβ the device.
Preparation: What to do before unlocking
The process of obtaining root on Redmi 4X consists of three mandatory steps: unlocking the bootloader, installing a custom recap (TWRP) and flashing Magisk or other root package. Skipping any step or incorrect sequence of actions will lead to data loss or complete failure of the device.
List of requirements:
- π± Redmi Smartphone 4X with a battery charge of at least 70%. Use the original cable USB Type-C: Cheap analogues can interrupt data transfer to fastboot.
- π» Computer running Windows 10/11 (for Mi Unlock Tool or Linux/macOS (Virtual machines are not recommended due to driver problems.
- π§ Utilities: ADB & Fastboot (latest version), Mi Unlock Tool (if available), TWRP for santoni (version 3.7.0 or later), Magisk v26+.
- π Backup data. Unlocking the bootloader erases everything, including photos in internal memory and application settings.
Pay special attention to the MIUI version. At the time of writing (2026), the latest stable firmware for Redmi 4X is MIUI 12.5.8 based on Android 7.1.2. If you have a newer version installed (for example, ported MIUI 14), the process may be different. Check the version in Settings β About Phone β MIUI version.
β οΈ Attention: If your Redmi is 4X When purchased in China (domestic version), unlocking the bootloader may not be possible without a Chinese Mi Account with a linked number. +86.This will require a bypass. EDL-The mode (described in the section on errors).
Step 1: Unlock the bootloader (bootloader)
Xiaomi locks the bootloader on all devices by default. The official way to unlock is through the Mi Unlock Tool utility, but it doesn't always work for the Redmi 4X. Below are the current methods for 2026.
Method 1: Official (if available)
1. Enable Developer Options: Go to Settings β About Phone and 7 times click on MIUI Version.
2. Return to Settings β Additional β For developers and activate:
- π Unlocking OEM (It may not be available on new versions. MIUI).
- π Debugging by USB.
3. Link your Mi Account to your device in Settings β Xiaomi Account. Without this, Mi Unlock Tool will not allow unlocking.
4 Download the Mi Unlock Tool from the official website (version 5.5.224.30 or later) and run it on behalf of the administrator.
5. Connect your phone in fastboot mode (turn off the device, then press Volume Down + Power) and follow the instructions of the program. If you see the Couldn't unlock 86006 error, move to alternative methods.
Method 2: EDL bypass (for locked devices)
If the official method does not work, you will need firmware through EDL-This method is risky, because if you make a mistake, the device can turn into a brick. Use it only if you make a mistake:
- π You have a backup copy of persisting and NVRAM (Losing them will lead to problems with IMEI net).
- π οΈ You are ready for the possible loss of the guarantee (if it is still valid).
For EDL entry:
- Turn off the phone.
- Press Volume Up + Volume Down and connect the USB cable to the PC.
- Hold the buttons for 10-15 seconds until the display goes out (this is a sign of EDL login).
Next, you will need to flash the device through the Mi Flash Tool using an authorized Xiaomi account (for older devices, you can find workarounds on the 4PDA or XDA Developers forums).
βοΈ Checklist before unlocking the loader
Step 2: Installation of TWRP Recovery
When the bootloader is unlocked, you need to install customized recovery. Redmi 4X recommends using TWRP 3.7.0 from developer brunof1983 (available on XDA). Alternative versions may not support File-Based Encryption (FBE) encryption, which will lead to errors in /data mounting.
Installation instructions:
- Download the twrp-3.7.0-santoni.img file and rename it to recovery.img for convenience.
- Place the file in the folder with ADB & Fastboot.
- Connect your phone in fastboot mode and execute the command: fastboot flash recovery.img
- After successful firmware reboot to the Recovery team: fastboot boot recovery.img
If after the reboot you see a stock recavator MIUI, So, the recovery has been replaced when you boot it (the protection function of Xiaomi) to avoid this, immediately after you log in. TWRP execute:
- π Go to Mount. β System and tick it.
- π§ Get in Advanced. β File Manager and delete the file /system/recovery-from-boot.p (Or rename it to recovery-from-boot.bak).
- π Reboot back to the RecavΓ©rie.
β οΈ Attention: If after installation TWRP The phone is getting stuck on the Redmi logo more 10 So, the software is incompatible with your version. MIUI. Try another build. TWRP or stitch the stock boot.img via fastboot for recovery.
Step 3: Getting root rights through Magisk
Magisk is the most reliable way to get root on modern devices, as it supports SafetyNet (allowing you to use banking applications) and a modular system. For Redmi 4X, Magisk v26.1 or later is suitable.
Step-by-step:
- Download the latest Magisk-v26.1.zip from GitHub.
- Transfer the archive to your phone (for example, to your phone). SD-map ADB push).
- Download to TWRP and select Install β Select Magisk.zip β Swipe to Confirm Flash.
- After installation, reboot to the system.
To check if the procedure is successful, install the Magisk Manager app (available in Releases on GitHub) and run SafetyNet. If Basic Integrity: True is the status, then root is working correctly.
If the phone is fixated on boot animations after the reboot, then the firmware core is incompatible with Magisk.
- π Boot in. TWRP and sew Magisk-uninstaller.zip.
- π₯ Download. boot.img for your version MIUI (You can get it out of the firmware through the Mi Flash Tool).
- π οΈ Send. boot.img On PC and run the command: magisk patch boot.img (file magisk_patched.img will appear in the same folder).
- π§ Fastboot: Fastboot Flash Boot magisk_patched.img
π‘
If Magisk does not pass SafetyNet, install Universal SafetyNet Fix via Magisk Manager to bypass checks in banking applications and games.
Alternative Rooting Methods Without TWRP
Not all users need full root rights, and if your goal is simply to remove embedded apps or disable ads in MIUI, consider these methods:
| Method | What's the point? | Risks. | Difficulty |
|---|---|---|---|
| ADB AppControl | Removing System Applications Without Root | Could disrupt MIUI's work. | ββ |
| Shizuku + App Ops | Blocking permissions for applications | Requires ADB connection | βββ |
| Custom firmware (such as LineageOS) | Clean Android without Bloatware | Loss of MIUI functions (e.g., design themes) | ββββ |
| Xposed Framework (outdated) | Deep customization of the system | Incompatible with new versions of Android | βββββ |
For the use of ADB AppControl:
- Connect your phone to a PC with USB debugging enabled.
- Follow the command: adb shell pm uninstall -k --user 0 com.miui.analytics (replace com.miui.analytics with the desired application package).
List of safe to remove MIUI packets:
- ποΈ com.miui.analytics β Xiaomi Analytics.
- ποΈ com.xiaomi.midrop - Mi Drop (if not used).
- ποΈ com.miui.hybrid β Hybrid services (may disrupt the work of the themes).
What happens if you remove the system application?
Typical errors and their solutions
Even with the exact instructions, there can be problems, and below are the most common rooting errors in Redmi 4X and how to fix them.
Fastboot OEM unlock: FAILED (remote: oem unlock is not allowed)
Xiaomi has blocked the unlock for your region or MIUI version.
Decision:
- π Try to re-shoot an older version. MIUI (for example, MIUI 10) via Mi Flash Tool, then re-unlock.
- π‘ Use it. VPN Hong Kong or Singapore with Mi Unlock Tool.
- π οΈ If nothing helps, look for it. EDL-Authorization on forums (paid or free).
2.TWRP does not see internal memory (Data decrypted successfully, but files are not displayed)
Reason: TWRP is incompatible with FBE encryption in your version of MIUI.
Solution: Squeeze TWRP 3.7.0 with FBE support or format /data to TWRP (Warning: this will erase all data!).
3.The phone does not boot after installing Magisk (Bootloop)
Reason: Incompatibility of patched boot.img with the firmware core.
Decision:
- π§ Stitch the original boot.img fastboot.
- π₯ Download the firmware for your model with Xiaomi Firmware Updater.
- π Repeat the patching. boot.img via Magisk.
π‘
If your mobile data or Wi-Fi has stopped working after rooting, check the /system/etc/firmware file.
What to do after getting root?
Now that you have root rights, you can customize the Redmi 4X completely. Here are some useful steps:
- π CPU overclocking: Install the Kernel Adiutor and increase the frequency of the Snapdragon 435 to 1.6 GHz (standard - 1.4 GHz!
- π΅ Sound enhancement: Module ViPER4Android Magisk adds equalizer and surround effects.
- π Battery Optimization: Disable unnecessary services through Greenify or BBS (BetterBatteryStats).
- π± Custom firmware: Try LineageOS 17.1 (Android 10) or Pixel Experience for pure Android.
For custom firmware installation:
- Download firmware in.zip format (for example, with XDA or 4PDA).
- Flush it through TWRP (donβt forget to make Wipe β Format Data if youβre switching from MIUI to AOSP).
- Install GApps (if the firmware is without Google services) and Magisk.
Warning: custom firmware based on Android 10+ can run slower than MIUI, due to the weak iron Redmi 4X. The best choice is Havoc-OS or CrDroid, optimized for budget devices.