How to get root rights on Xiaomi Redmi 4X: a complete guide to unlock the bootloader

Xiaomi Redmi 4X (codenamed santoni) is still a popular budget smartphone due to its reliability and deep customization capabilities, gaining root rights allows you to access hidden Android features, remove system applications, optimize performance and install modified firmware. However, the process requires caution: wrong actions can turn the device into a โ€œbrickโ€.

In this guide, we will discuss three key steps: unlocking the bootloader through the official Mi Unlock tool, installing a custom TWRP recavator, and directly obtaining root with Magisk. We will focus on the specific nuances of the Redmi 4X model, including problems with drivers in Windows 11 and bypassing the limitations of MIUI on older versions of the firmware. If you are a beginner, do not miss the sections with warnings and preparation!

1. Device Preparation: What to Do Before Unlocking

Before you start unlocking the bootloader, you need to follow a few critical steps, neglecting them can lead to data loss, failure of the fingerprint sensor, or even complete failure of the device.

First, back up all your important data, use Mi Cloud, Google Drive, or local copying on your PC, especially when it comes to:

  • ๐Ÿ“ฑ Contacts and Messages (Export through Settings) โ†’ Google โ†’ Backup)
  • ๐Ÿ“ธ Photo and video (transfer to memory card or PC)
  • ๐Ÿ”‘ Passwords from apps (write them manually or use Bitwarden)
  • ๐ŸŽฎ Game savers (use Helium or root managers if they are already installed)

Second, check the MIUI version and build number. Go to Settings โ†’ About Phone. Redmi 4X only supports unlocking on official MIUI 8-12 firmware. If you have custom firmware installed (like LineageOS), go back to the stock version first via the Mi Flash Tool.

โš ๏ธ Attention: On devices with MIUI 13+ Android 11+ The official unlocking of the bootloader can be blocked, in which case you will need to roll back to the older version of the software via Fastboot.

Also prepare:

  • ๐Ÿ–ฅ๏ธ Computer running Windows 7/10/11 (on macOS/Linux Possible problems with drivers)
  • ๐Ÿ”Œ Original. USB-cable (faulty cable โ€“ a common cause of unblocking errors)
  • ๐Ÿ”‹ Battery charge of at least 60% (process can take up to 30 minutes)
  • ๐Ÿ“‹ Mi Account tied to the device (unblocking is impossible without it)

๐Ÿ“Š What version of Android is your Redmi using? 4X?
Android 6.0 (MIUI 8-9)
Android 7.1 (MIUI 9-10)
Android 8.1 (MIUI 10-12)
Another version

2 Unlock the bootloader through the Mi Unlock Tool

The official way to unlock a bootloader on Xiaomi is to use the Mi Unlock Tool utility. However, even here there are pitfalls: for example, a 72-hour wait after an account is tied or an error due to outdated drivers.

Follow the step-by-step instructions:

  1. Activate Developer Mode: Go to Settings โ†’ About Phone and 7 times click on the MIUI Version. Return to the main settings menu where the Developer option appears.
  2. Enable USB debugging: In the Developer Menu, activate USB debugging and confirm the resolution when connecting to your PC.
  3. Link your Mi Account: in the same menu, find Mi Unlock Status โ†’ Add account and device. Without this step, unlocking will not be possible.
  4. Download the Mi Unlock Tool from the official en.miui.com/unlock website (the version must match your MIUI).

Now connect your phone to your PC in Fastboot mode (turn off the device, then press Volume Down + Power until the hare appears in the eardress cap). Launch Mi Unlock Tool and log in to your Mi Account. If you see a message "Couldn't unlock, try again after XX hours" - wait for the timer to expire (usually 72 hours).

โš ๏ธ Note: If the Mi Unlock Tool gives an error "Current account is not bound to this device", check: Is the account associated with Mi Unlock status on the phone. VPN Or proxy (they block access to Xiaomi servers) or antivirus software that blocks the utility is installed on the PC (add Mi Unlock to exceptions).

Once successfully unlocked, the phone will automatically restart. Check the bootloader status with the team in Fastboot:

fastboot oem device-info

The answer should be Device unlocked: true.

Linked Mi Account in phone settings|Debugging is on. USB|Installed drivers Xiaomi on PC|Battery charge >60%|Download the latest version of the Mi Unlock Tool-->

3. Installation of custom TWRP Recovery

Xiaomiโ€™s stock recavators donโ€™t allow you to install modified firmware or root patches, so the next step is to install TWRP (Team Win Recovery Project), a customized recavator with advanced features.

For Redmi 4X (santoni), TWRP 3.6.2 or later is suitable. Download the image twrp-3.6.2-santoni.img from the official website twrp.me. Make sure the file is for santoni - installing a recoverer from another model will lead to bricks!

Installation instructions:

  1. Move your phone to Fastboot mode (as in the previous section).
  2. Connect the device to your PC and check its detection by the command: fastboot devices If the list is empty โ€“ install Xiaomi drivers manually through Device Manager.
  3. TWRP command: fastboot flash recovery twrp-3.6.2-santoni.img
  4. An unchanging step is to disable the recovery check (otherwise, the stock MIUI will reset TWRP on the first download): fastboot flash vbmeta vbmeta.img The vbmeta.img file can be downloaded here.

Once installed, boot into TWRP immediately, holding Volume Up + Power when turned on. If you boot into the system, MIUI will automatically replace TWRP with stock Recovery!

What to do if TWRP does not start?
If after the firmware TWRP The phone is loaded into the stock Recovery or gives an error "OrangeFox/TWRP Not working, the reasons may be as follows: 1. Wrong version TWRP โ€” Download the image for santoni, not for Redmi 4/4A/4 Prime. 2. Check vbmeta not disabled โ€“ repeat the command fastboot flash vbmeta vbmeta.img. 3. Damaged partitions โ€“ run fastboot erase recovery in Fastboot, then run it TWRP freshly. 4. Antivirus conflict โ€“ temporarily turn off protection on your PC and repeat the procedure.

4. Getting root rights through Magisk

The most reliable way to root on modern Android devices is to use Magisk. Unlike the outdated SuperSU, Magisk supports root hiding from applications (such as banking or games) and runs on Android 7-12.

Download the latest version of Magisk (e.g. Magisk-v26.4.zip) from the official GitHub repository. Don't use files from third-party resources - they may contain malicious code!

Installation via TWRP:

  1. Copy the Magisk-v26.4.zip file to a memory card or internal phone memory.
  2. Boot to TWRP (hold Volume Up + Power when turned on).
  3. Click Install โ†’ select the Magisk file โ†’ swipe for confirmation.
  4. After installation, restart to the system (Reboot โ†’ System).

Check for root using the Magisk Manager app (it will install automatically) or the command in the terminal:

su

If you request permission, root is installed successfully. If not, repeat the installation by pre-executing Wipe โ†’ Format Data in TWRP (this will delete all data!).

๐Ÿ’ก

If after installing Magisk phone fixes on the logo MIUI, try to sew Disable_Dm-Verity_ForceEncrypt.zip (download XDA). This patch disables forced encryption, which sometimes conflicts with root.

Possible problems and solutions

Even with the correct following of the instructions, errors can occur, and here is a table of the most common problems and ways to fix them:

Problem.Possible causeDecision
The "Couldn't unlock" error in Mi UnlockNot tied to account or not expired waiting timeCheck the binding in Mi Unlock Status and wait 72 hours
The phone is not defined in fastboot devices.Lack of drivers or faulty cableInstall drivers manually through Device Manager or try another cable
After TWRP firmware loads stock recaveryNot disabled vbmeta checkSwitch vbmeta.img and re-install TWRP
Magisk is not installed, the error is "Failed to mount /system".System partition or incompatible version of MIUI is damagedSwipe the stock firmware through Mi Flash, then repeat the installation
The sensor is not working after installing rootConflict with Magisk modules or damaged recaveriRemove all modules in Magisk or reflash TWRP

If your problem is not described in the table, check the error logs in TWRP (they are saved in /sdcard/recovery.log) or contact the XDA-Developers forum, specifying:

  • ๐Ÿ“ฑ Exact model of the device (Redmi) 4X santoni)
  • ๐Ÿ”ง Version MIUI Android
  • ๐Ÿ–ฅ๏ธ The version of the tools used (Mi Unlock, TWRP, Magisk)
  • โŒ The exact text of the error

๐Ÿ’ก

If banking applications (Sberbank, Tinkoff) have stopped working after receiving root, turn on the โ€œMagiskHideโ€ option in Magisk and add the applications to the hide list. Also install the Universal SafetyNet Fix module to pass SafetyNet.

6.What to do after getting root?

Now that you have root rights, you can customize the Redmi 4X completely. Here are some useful steps:

Optimizing productivity:

  • ๐Ÿš€ Uninstall your system applications with Titanium Backup or System App Remover.
  • ๐Ÿ”„ Change the planner. CPU Interactive or performance through Kernel Adiutor.
  • ๐Ÿ—‘๏ธ Clear the Dalvik cache and ART into TWRP speed up the system.

Advanced settings:

  • ๐Ÿ”Š Increase the volume of the speaker by editing the file /system/etc/mixer_paths.xml.
  • ๐Ÿ“ถ Unlock additional ranges 4G assisted MTK Engineering Mode (for versions with Snapdragon 435 processor, this is irrelevant).
  • ๐Ÿ”‹ Disable Force Encrypt to speed up your work.

Safety:

  • ๐Ÿ”’ Install AFWall+ for flexible management of network access applications.
  • ๐Ÿ›ก๏ธ Set up XPrivacyLua to restrict application rights.
  • ๐Ÿ”‘ Update Magisk and modules regularly through Magisk Manager.

Remember, root rights give you complete control of the system, but also deprive you of warranties and increase the risk of malware infection. Do not install modules from unreliable sources and regularly back up your system through TWRP!

7. How to get it all back (rollback 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:

Method 1: Mi Flash Tool (recommended)

  1. Download the stock firmware for Redmi 4X from the official Xiaomi website (choose the Fastboot version).
  2. Unpack the archive in a folder without Cyrillic symbols on the way.
  3. Download the phone to Fastboot mode and connect to the PC.
  4. Run the Mi Flash Tool, select the firmware folder, and press Refresh โ†’ Flash. Select the clean all option for full cleanup.

Method 2: TWRP (if the bootloader is unlocked)

  1. Download stock firmware in.zip format (e.g. MIUI 12 for santoni).
  2. Download to TWRP and run Wipe โ†’ Advanced Wipe, mark Dalvik, Cache, System, Data.
  3. Install the firmware through Install and restart.

โš ๏ธ Warning: After rolling back to stock firmware: The bootloader will remain unlocked (this is irreversible for Redmi) 4X). Netflix apps, Pokรฉmon GO and banking services may not work properly until the passage of SafetyNet. For a complete reset of unlock meters (if required for warranty) contact the service center Xiaomi.

FAQ: Answers to Frequent Questions

โ“ Can I get a root on Redmi? 4X loader-free?
No. On all Xiaomi devices since 2016 (including Redmi 4X), unlocking the bootloader is mandatory for installing a custom recap and getting root. Bypasses (for example, through vulnerabilities) either do not work on current versions of MIUI, or lead to hard brick.
โ“ Why Mi Unlock Tool Shows Up 50% and Error"?
This error is due to: Mi Unlock Tool version inconsistency and MIUI (download the latest version of the utility. Using a non-original cable or USB-Hub (connect directly to the port) USB 2.0 on PC) Antivirus locks (add Mi Unlock to exceptions or temporarily disable protection). Try running the utility on behalf of the administrator or use another PC.
โ“ How to hide root from banking applications?
Magisk has a built-in MagiskHide feature: Open Magisk Manager. Go to Settings โ†’ turn on MagiskHide. Add banking apps to the Hidden List (MagiskHide section). Install Universal SafetyNet Fix to pass Google's certification. After that, restart your phone.
โ“ What to do if the root stops working NFC?
On the Redmi 4X, NFC is managed via the nq-nci module, which can conflict with Magisk Solutions: Remove all Magisk modules and check for NFC. File the NFC Fix for santoni patch (available on XDA).
โ“ Can I update you? MIUI after rooting?
Yes, but with reservations: Updates through OTA You'll lose root and you'll have a possible bootloop. TWRP, After the update, you need to re-swipe Magisk (if you do not use Magisk-in-Magisk). โ†’ The phone. โ†’ Updating the system.