How to put root rights on Xiaomi Redmi Note 4: a safe way to unlock the bootloader

Xiaomi Redmi Note 4 (codenamed mido) is still a popular device among Android modding enthusiasts, and gaining root rights allows you to deep-tuning the system, uninstall embedded software, and install custom firmware, but the process comes with risks ranging from loss of warranty to full β€œbrick” of the device if you skip critical steps.

In this guide, we will break down the current 2026 method of obtaining root rights through Magisk with pre-unlocking the bootloader. We will focus on the nuances for the Redmi Note 4, including problems with anti-rollback and compatibility of MIUI versions. If you are a beginner, do not miss the sections with warnings and alternatives!

1. Device Preparation: What to Do Before Unlocking

Before you start unlocking the bootloader and installing TWRP, you need to perform a number of mandatory actions, skipping at least one point can lead to the inability to restore the device through standard means.

First, check the MIUI version and build number in Settings β†’ About Phone. Redmi Note 4 critically, that the firmware version is not lower than MIUI 9 Global Stable 9.6.2.0 β€” earlier builds may contain vulnerabilities exploited when unlocked. If you have Chinese firmware (China ROM), it must be changed to global through the Mi Flash Tool.

  • πŸ“± Make a full backup: use Mi Cloud or Titanium Backup (if you already had a root). /data/app and settings /data/data.
  • πŸ”‹ Charging at least 70%: the process of unlocking and firmware can take up to 1 hour. Interrupting due to battery discharge is almost guaranteed to lead to a breeze.
  • πŸ” Unplug Mi Account: go to Settings β†’ Mi Account β†’ If the device is tied to the account, the bootloader may be activated after unlocking the Mi Account Lock.
  • πŸ–₯️ Install. ADB Download Google’s Platform Tools and Xiaomi drivers from the official website.

⚠️ Note: If your device was purchased in China and is powered by China ROM, Unlocking the bootloader via the Mi Unlock Tool may require a Chinese phone number, in which case it is easier to flash the global version first via Fastboot.

πŸ“Š You have already tried to get root rights on Xiaomi?
Yes, successfully.
Yeah, but it's a breeze.
No, I'm just reading the instructions.
I tried it, but it didn't work.

2 Unlocking the bootloader: official and informal ways

The Redmi Note 4 bootloader is locked by default, and unlocking it is a must before installing TWRP or Magisk. The official Mi Unlock Tool method works, but has limitations, such as requiring a wait of 72–168 hours after an account is linked to a device.

Unofficial methods (for example, through exploits in the EDL-It allows you to bypass the wait, but it can lead to a hard breeze if you use inappropriate firmware files. We recommend that novice users stick to the official path despite the delays.

Unlocking with Mi Unlock Tool

  1. Activate USB debugging: go to Settings β†’ About Phone, tap 7 times on the MIUI Version, then in Settings β†’ Additional β†’ For developers, turn on USB debugging and OEM unlock.
  2. Link your Mi Account to your device: in the same developer settings, find Mi Unlock Status and link the device to your account. Wait 3-7 days (exact time depends on Xiaomi policy).
  3. Download Mi Unlock Tool from the official website (version no lower than 5.5.224.30).
  4. Open unlock: 1. Connect your phone in Fastboot mode (press Power + Volβˆ’). 2. In Mi Unlock Tool, log in to your Mi.3 account. Press Unlock and confirm the action.
What if the Mi Unlock Tool gives you a "Couldn't unlock" error?
This error often occurs due to: - Mi Unlock Tool and firmware mismatches. - Insufficient latency (less than 72 hours). - Using a VPN or proxy when linking an account. Solution: Update the tool, wait another 24 hours, or try from another PC.

Mistake.Reason.Decision
Couldn’t unlock, 86006Too early to attempt to unlockWait 72–168 hours after you have linked your account
Current account is different from the account info on the deviceThe device is linked to another accountLog out of all accounts on your phone and link the right one.
Device isn’t supportedThe Mi Unlock Tool is an outdated versionDownload the latest version from the official website
Network errorIP Blocking (often when using VPN)Turn off VPN, try from another internet connection

3. Installation of TWRP Recovery: version selection and firmware

After unlocking the bootloader, you need to flash the custom TWRP recovery. For Redmi Note 4 (mido), it is critical to use the correct version - incompatible firmware can lead to a bootloop or damage to the data partition.

Official assembly TWRP For mido, available at twrp.me. 3.7.0_9-0 Or newer -- it supports FBE (File-Based Encryption and compatible with the latest versions MIUI 12/13. Older versions (e.g, 3.2.3) They may not work properly with data encryption.

Step-by-step installation of TWRP

β˜‘οΈ Firmware preparation TWRP

Done: 0 / 4
  1. Download the TWRP image (a file with the.img extension) and place it in the folder with the platform-tools.
  2. Open the command prompt in this folder (Shift + right mouse button β†’ β€œOpen command window”).
  3. Please. TWRP Team: Fastboot Flash Recovery twrp-3.7.0_9-0-mido.img fastboot boot twrp-3.7.0_9-0-mido.img The second command loads the phone directly into the TWRP, to avoid overwriting the Recovery with stock firmware.
  4. Backup in TWRP: After downloading to the recovery, select Backup and save the Boot, Data and System partitions to an external memory card.

⚠️ Note: If after the firmware TWRP The phone is loaded into the stock recavator, so the protection mechanism has worked MIUI. Solution: Re-squeeze TWRP Then, immediately follow the command fastboot flash boot. magisk_patched.img (about this in the next section).

4. Magisk installation: obtaining root rights without risk to OTA-update

Magisk is a universal root-rights tool that doesn't modify the system partition, but works through boot. OTA-Updates (albeit with reservations) and be checked by SafetyNet.

For Redmi Note 4, Magisk version 26.1 or later is suitable. Older versions (e.g. 20.4) may not support modern encryption mechanisms and lead to bootloop.

Patching boot image through Magisk

  1. Download stock boot.img for your version of MIUI. It can be extracted from the full firmware (.tz file) using Mi Firmware Extractor or download ready-made from the 4PDA forums.
  2. Move boot.img to your phone and install Magisk APK (don’t run it!).
  3. V TWRP: 1. Press Advanced. β†’ File Manager. 2. Go to the folder with boot.img and copy it into /sdcard. 3. Go back to the main menu and select Install. β†’ Select and Patch a File. 4. Show the way to boot.img and wait for the creation magisk_patched.img.
  4. The Boot: Fastboot Flash Boot magisk_patched.img fastboot reboot

πŸ’‘

If the phone hangs on the MI logo after the reboot, then the patched boot.img is incompatible with your version of MIUI. Solution: download another boot.img (for example, from firmware to 1-2 builds newer or older) and repeat the process.

5. Root-rights check and SafetyNet bypass

After successful installation of Magisk, you need to check whether the root rights are working correctly and whether the device passes the SafetyNet test, the latter is important for the operation of banking applications (for example, Sberbank Online or Google Pay).

Use:

  • πŸ” Magisk App: Open the app and make sure that the status shows Installed: 26.1 (or newer) and All checks passed.
  • πŸ›‘οΈ SafetyNet Check: Install SafetyNet Test from Play Market and run the test. If ctsProfile: false status, you will need to adjust the test further.
  • πŸ“± Root Checker: Any root-rights checker application (such as Root Checker Basic) must show a successful result.

SafetyNet bypass on Redmi Note 4

If SafetyNet fails (ctsProfile: false), follow the following steps:

  1. In Magisk, go to Settings β†’ Hide Magisk (MagiskHide) and enable this option.
  2. Install Universal SafetyNet Fix module via Magisk β†’ Modules β†’ Install from storage.
  3. Restart the device and re-check SafetyNet.

πŸ’‘

If banking apps still don’t work, try adding them to the hidden list in MagiskHide (the β€œMagisk Configuration” section).

Possible problems and solutions

Even if you follow the instructions accurately, there can be specific errors on the Redmi Note 4, and the following are the most common ones and ways to fix them.

Problem.Probable causeDecision
The phone does not turn on after TWRP firmwareIncompatible version of the recovery or damaged bootStitch the stock. boot.img via fastboot flash boot stock_boot.img
Magisk is not installed, Failed to mount /data errorData Encryption (FBE) is not supported by the older version of TWRPUse TWRP 3.7.0 or later, format data in Recovery
After the rut, no work. OTA-updateMagisk Modifies Boot That Blocks Standard UpdatesUpdate manually via TWRP or disable Magisk before upgrading
Phone overheats after getting root rightsbackground processes with root access (e.g. Xposed or Magisk modules)Check the list of installed modules and disable suspicious ones

⚠️ Note: If after all the manipulations the phone loads into Fastboot with an anti-rollback error, it means that you tried to flash the firmware older than the one installed earlier. ROM The same or newer version via the Mi Flash Tool with the clean all option.

7. Alternative ways of obtaining root rights

If the standard Magisk method is not suitable (for example, due to SafetyNet problems or firmware incompatibility), alternatives may be considered.

  • πŸ”§ SuperSU: Outdated method, but suitable for older versions MIUI (Not recommended for modern firmware due to SELinux issues.
  • πŸ“¦ Custom firmware with pre-installed root, such as LineageOS or Pixel Experience, require complete flashing of the device and can deprive functions MIUI (for example, IR Blaster).
  • πŸ”“ Temporary rout through ADB: Suitable for one-time tasks (e.g., uninstall system applications) Not saved after rebooting: adb shell su

For the Redmi Note 4, Magisk remains the most balanced solution, as it allows you to save the functionality of MIUI and pass SafetyNet. Castom firmware should be considered only if you are critically important features that are not in the stock shell (for example, Project Treble).

8 How to Get Everything Back: Removing Root Rights and Restoring Guarantees

If you need to return the device to stock (for example, for sale or repair under warranty), you must:

  1. Delete Magisk: 1. Open the Magisk app. 2. Go to Settings β†’ Complete Deletion. 3. Confirm the action and wait for the reboot.
  2. Fastboot flash recovery: fastboot flash recovery stock_recovery.img
  3. Return stock boot (if patched): fastboot flash boot stock_boot.img
  4. Reset settings through Settings β†’ Restore and Reset β†’ Reset settings.

To fully restore the warranty, you will also need to lock the bootloader. This can be done through the Mi Flash Tool with the clean all and lock option when you run the official Fastboot ROM firmware. Note that once the bootloader is blocked, installing custom firmware or TWRP will become impossible without re-unblocking.

πŸ’‘

Even after removing root rights, some banking applications can retain memory of the changed partitions, in which case only a complete flashing through Fastboot with the bootloader locked will help.

FAQ: Frequent questions about root rights on Redmi Note 4

Can I get a root right without unlocking the bootloader?
No, on the Redmi Note 4 (as on most modern Xiaomi devices), unlocking the bootloader is mandatory. Alternative methods (for example, through vulnerabilities in ADB) either don't work or lead to a breech. The only exception is the temporary root through DirtyCOW, but it is unstable and only suitable for older versions of Android.
Why does the phone not pass SafetyNet after installing Magisk?
This is because Magisk modifies the boot partition, which is detected by SafetyNet's Solution: Enable MagiskHide in Magisk's settings. Install Universal SafetyNet Fix. Add problematic apps (like Sberbank) to the list of hidden apps in MagiskHide. If that doesn't help, check if other modules that can affect SafetyNet (like Xposed or modified Google services) are installed.
How to update MIUI after obtaining root rights?
Stock-stock OTA-Updates won't work because Magisk is modifying boot: πŸ“₯ Manual installation through TWRP: Download the full service package (.zip) from xiaomifirmwareupdater.com and run through Install β†’ Select ZIP. πŸ”„ Temporary Magisk Shutdown: Before Updating in Magisk, Select Uninstall β†’ Restore Images, update, then re-sweeten magisk_patched.img. πŸš€ Switch to custom firmware: for example, LineageOS or Pixel Experience, where updates are installed separately. TWRP Never wipe data unless you want to lose user data!
What if after TWRP firmware the phone is loaded into the bootloop?
Causes and solutions: πŸ”„ Incompatible version TWRP: Please follow another version (recommended) 3.7.0). πŸ”§ Damaged. boot.img: Switch the stock boot through fastboot. πŸ“ Problems with encryption: in TWRP Execute Format Data β†’ Yes (this will delete all data!). πŸ”‹ Insufficient battery charge: plug in charging and wait 10–15 If nothing works, run the full Fastboot. ROM Mi Flash Tool with Clean All option.
Can I get the root rights to the Redmi Note 4 without a computer?
Technically, yes, but it's extremely risky. You'll need to: Unlock the bootloader through the Mi Unlock Tool (still need a PC). TWRP via Official Appendix TWRP App (not always on Xiaomi) Sweat Magisk through TWRP, using OTG-Risks: high probability of errors when running without fastboot, difficulty recovering in case of failure.