Root on Xiaomi Redmi 4X: a complete guide with unlocking the bootloader and Magisk

Why you need root rights to Xiaomi 4X in 2026

Xiaomi Redmi 4X (codenamed santoni) is still popular with users due to its reliability and low price. However, standard MIUI limitations do not allow you to fully realize the potential of the device. Getting root permissions gives you access to system files, allows you to remove embedded applications, optimize performance and install custom firmware.

In 2026, the process of obtaining root on the Redmi 4X has become more complicated due to the tightening of Xiaomi’s policy on blocking the bootloader. However, workarounds exist. In this article, we will discuss current methods of unlocking the bootloader, installing TWRP and obtaining root through Magisk, and also analyze the typical errors and ways to solve them.

Before you start, consider that unlocking the bootloader and getting root will result in a reset of all data on the device and cancellation of the warranty, and some banking applications (such as Sberbank Online or Tinkoff) may stop working due to the SafetyNet trigger.

Preparation of the device: what to do before unlocking

Before starting the procedure, several critical steps must be taken, and neglecting them can lead to a device being β€œbricked”.

  • πŸ“± Save all your data: contacts, photos, messages. Use Mi Cloud or local backup via Settings β†’ Additionally. β†’ Backup and reset.
  • πŸ”‹ Charge the battery to at least 70%. interruption of the process due to battery discharge can make the phone unusable.
  • πŸ–₯️ Install drivers: download Mi Flash Tool and drivers for Qualcomm (necessary to work in mode) EDL).
  • πŸ”— Allow debugging on USB: Go to Settings. β†’ The phone. β†’ Version. MIUI (Press 7 times to activate the developer mode, then in Settings β†’ Additionally. β†’ For developers, turn on debugging by USB and Unlock. OEM.

Pay special attention to the item Unlock OEM. On some Xiaomi firmware, this option may be hidden. If it is not in the developer menu, try:

  1. Connect the device to the Internet.
  2. Reboot the phone.
  3. Check again for the item in the settings.

⚠️ Warning: If unlocked OEM If it is not activated, it may mean that the device is anti-rollback, in which case unlocking the bootloader in the standard way is impossible - you will need to use the device. EDL-Regime with an authorized Xiaomi account.

πŸ“Š What is your experience with unlocking Xiaomi?
First time.
I've already unlocked before.
I tried it, but it didn't work.
I haven't tried it, but I want to learn.

Unlock the bootloader on Redmi 4X

Since 2026, Xiaomi has tightened the process of unlocking the bootloader, now requiring official permission through the Mi Unlock Tool app.

  1. Link your Mi Account to your device: Go to Settings β†’ Mi Account. Log in (if not authorized). Enable data sync.

Download the Mi Unlock Tool

official website

5.5.224.24

Launch the tool on behalf of the administrator

Connect your phone in Fastboot mode

  • Turn off the device.
  • Press Volume Down + Power before the Fastboot logo appears.
  • Connect to the PC via USB.
  • Click Unlock in the program and wait until it is completed (usually takes 3-5 minutes).

If you load your phone into a standard MIUI backup after you run TWRP, you've overwritten it.

  • πŸ”§ Install Magisk immediately after firmware TWRP (instruction).
  • πŸ“΅ Turn off automatic updates MIUI system settings.
  • πŸ”„ Use the command fastboot boot twrp.img Instead of fastboot flash recovery for temporary download.
  • Fastboot flash recovery: fastboot flash recovery stock_recovery.img (file stock_recovery.img You can get it from the official firmware).
  • Block the bootloader: fastboot oem lock ⚠️ This will result in a complete data dump!
  • Sweep through the full stock firmware through the Mi Flash Tool (select Clean All and Lock mode).

After this, the phone will return to factory status, and the warranty (if it still works) will be restored.

  • πŸ”’ bootloader lock can take up to 72 hours (new Xiaomi restriction).
  • πŸ“± IMEI The serial number will be saved if you have not damaged the modem partition.
  • πŸ”„ Updates OTA They will only work after full storage.

πŸ’‘

If you plan to sell the phone, after removing the root, be sure to check the SafetyNet status through the SafetyNet Test app. Some buyers check the device for modifications.

FAQ: answers to frequent questions about root on Xiaomi 4X

Can I get root on Redmi 4X without unlocking the bootloader?
No. On all Xiaomi devices since 2016 (including Redmi 4X), unlocking the bootloader is mandatory for installing custom software or getting root.
Why does the phone not turn on after unlocking the bootloader?
There was probably a mistake in the firmware. TWRP Or Magisk. Solutions: Try booting up to Fastboot (Loudness Down) + Power) and flash the stockware through the Mi Flash Tool. If the phone doesn't respond, plug it into the PC in mode EDL (You need an authorized Xiaomi account. In extreme cases, contact the service center - sometimes flashing through Qualcomm helps. HS-USB QDLoader 9008.
How to get around the bootloader unlock limit (72 hours wait)?
Since 2026, Xiaomi has introduced a mandatory wait of 72 hours after the account is tied. EDL-An authorized account mode (requires buying credits from official Xiaomi resellers) Find a person who has already unlocked a bootloader on this device and ask them to link your account (risky). Any β€œhacks” with changing the time on the phone or PC do not work – Xiaomi servers check real time.
Can I update my MIUI after I get root?
Technically, yes, but: πŸ”„ Updates OTA It is likely to be removed and replaced. TWRP squash. πŸ“¦ Manual firmware is possible, but requires prior removal of Magisk and firmware stock boot.img. πŸ›‘ Anti-rollback: If the new firmware has a higher recoil protection number than the current one, the phone may lock. β†’ The phone. β†’ Updating the system.
Which custom firmware is best for Redmi 4X?
For Redmi 4X (santoni) the following firmware is popular: Firmware Base Pros Minuses LineageOS 16 Android 9 Pie Stable, good optimization No support Widevine L1 (Netflix in HD does not work) Havoc-OS Android 10 Many customization, good performance Sometimes bugs with the camera Pixel Experience Android 11 Pure Android, quick updates Bad battery optimization Before installing, check compatibility with your version of the bootloader (anti-rollback) on the XDA-Developers forum.