Root on Xiaomi Redmi Note 7: the complete guide from unlocking the bootloader to installing Magisk

Why the Root on the Redmi Note 7 is Still Relevant in 2026

Xiaomi Redmi Note 7 (codenamed lavender) was released in 2019, but still remains one of the most popular devices for experimenting with firmware. Reasons? Powerful Snapdragon 660, 4/6 GB of RAM and active support for custom builds. However, obtaining root rights on this device is not an easy task: Xiaomi has tightened the policy of unlocking the bootloader, and errors in installing TWRP can turn the phone into a brick.

In this article, the guide is up to date for 2026, taking into account all the changes to MIUI 14, new versions of Magisk (v26+) and the features of unlocking the bootloader through the Mi Unlock Tool. We will analyze each step from preparation to solving typical errors (for example, Anti-Rollback or fastboot: unknown command).

โš ๏ธ Critical warning: Once the bootloader is unlocked, all data, including photos in internal memory, will be reset, and Redmi Note 7 will lose support for contactless payments (NFC It won't work with bank cards and encryption. It's impossible to recover it after the root.

Preparation: What to do before unlocking the bootloader

The first step is to check the current status of the phone, and without that, you run the risk of a Couldn't unlock error in the Mi Unlock Tool.

  • ๐Ÿ“ฑ Device model: Redmi Note 7 (lavender) or Redmi Note 7 Pro (violett) for other models (e.g. Note) 7S) instruction.
  • ๐Ÿ”„ Version. MIUI: It should be stable globally (for example, MIUI Chinese or beta versions often block unlocking.
  • ๐Ÿ”’ bootloader status: enter the code # #7378423 in the phone## โ†’ Service info โ†’ If you're a Locked, you can continue.
  • ๐Ÿ“ถ Mi Account binding: phone must be linked to Xiaomi account for at least 7 days (new rules 2023).

Also prepare:

  • ๐Ÿ’ป Windows PC 10/11 (on macOS/Linux Mi Unlock Tool is not working properly).
  • ๐Ÿ”Œ Original. USB-Cheap cables often cause fastboot error: error: failed to get var).
  • ๐Ÿ“„ Backup of data (unlocking erases everything, including the folder) DCIM).
๐Ÿ“Š Youโ€™ve already tried getting a root on Xiaomi?
Yeah, but it didn't work.
Yeah, it's working.
No, it's my first time.
I tried it, but the phone turned into a brick.

โš ๏ธ Please note: if your Redmi Note 7 purchased in China (domestic version), unlocking the bootloader may require additional actions, including waiting SMS-Xiaomi code, global versions (Global/EEA/RU) unlock.

Unlocking the bootloader through Mi Unlock Tool: Step-by-step

This is the most crucial stage. Xiaomi has introduced a 72-hour timeout between unlock attempts (if the first failed), so act carefully.

  1. Download the official Mi Unlock Tool (version no lower than 5.5.224.30).
  2. Turn it on on your phone: ๐Ÿ”ง Settings โ†’ The phone. โ†’ Version. MIUI (Tap 7 times to activate the developer mode). ๐Ÿ”“ Settings โ†’ Additionally. โ†’ For developers โ†’ Unlocking OEM (slide on). ๐Ÿ”Œ Settings โ†’ Additionally. โ†’ For developers โ†’ Debugging by USB.

Connect your phone to your PC in fastboot mode:

adb reboot bootloader

Turn off your phone and press the power + volume down.

Launch the Mi Unlock Tool, log in to Xiaomi account (should match the phone tied!). Press Unlock.

If you see a Couldn't unlock error. Wait 168 hours, you've tried unlocking this phone before. Wait 7 days (the new Xiaomi rules).

Linked to Mi Account on phone|Unlocking enabled OEM|Drivers installed ADB/Fastboot|Phone in fastboot mode|Mi Unlock Tool of the latest version-->

โš ๏ธ Warning: Once successfully unlocked, the phone will automatically reset to factory settings. Don't disconnect it from the PC until you see the welcome screen MIUI!

Installation of custom TWRP Recovery for Redmi Note 7

Standard Recavery MIUI It won't let you flash Magisk. TWRP โ€” Custom Recavers with Root Rights Support. 7 (Lavender is the right version 3.7.0_12-0 or newer.

Download the official TWRP image from twrp.me (a file with the.img extension).

  1. Place the file. twrp-3.7.0_12-0-lavender.img To the folder with the platform-tools (where fastboot.exe is located).
  2. Connect your phone in fastboot mode and execute the command: fastboot flash recovery twrp-3.7.0_12-0-lavender.img
  3. Immediately after the firmware, go to TWRP holding Power + Volume Up. If you release the buttons too late, MIUI will rewrite TWRP!

In TWRP, you will be asked to allow modifications to the system. Swipe to the right to allow changes (otherwise you will not be able to flash Magisk).

What happens if TWRP doesnโ€™t start?
If the phone is loaded into a standard MIUI backup after firmware, then the Anti-Rollback protection has worked. Solution: 1. Run a full fastboot with a version of MIUI not lower than the one installed. 2. Repeat the firmware TWRP. 3. If the error repeats, use fastboot boot twrp.img (temporary run without firmware).

The TWRP firmware errorReason.Decision
FAILED (remote: 'Not allow in Lock State')The bootloader is not unlockedGet back to the step with the Mi Unlock Tool
Invalid sparse file format at headerTWRP file damagedDownload the image again from the official website
TWRP is stitched but not launchedAnti-Rollback protectionUse fastboot boot or run the full ROM
fastboot: error: failed to load/commandProblems with drivers or cableTry another one. USB-port

Install Magisk for obtaining root rights

Magisk is a root rights management tool that bypasses SafetyNet checks (needs for Android Pay and some games). Magisk v26.1+ is suitable for the Redmi Note 7.

Download the latest Magisk.apk from GitHub and transfer it to your phone (e.g. via an adb push or memory card).

  1. In TWRP, click Install and select Magisk.apk.
  2. Swipe to confirm the firmware.
  3. After installation, restart to the system (Reboot System).

The first download after installing Magisk can take up to 10 minutes. If the phone has been stuck on the MIUI logo for longer than 15 minutes, then there has been an error (see the "Problem Solving" section).

๐Ÿ’ก

Once you get the root rights, install the MagiskHide Props Config module in Magisk, which will help you cheat SafetyNet and restore Google Pay (although it will help you to use the software to help you get it back on track). NFC-Payments won't work anyway).

To check that the root works:

  • ๐Ÿ“ฑ Install Root Checker from Play Market.
  • ๐Ÿ” Launch the terminal and enter su โ€“ if you receive a request for rights from Magisk, everything is set up correctly.

Solving Common Mistakes After Getting a Root

Even if you follow the instructions, you can have problems, and here are the most common solutions.

1.The phone does not load (bootloop)

Reason: Magisk conflict with the MIUI kernel or damaged firmware.

Decision:

  • ๐Ÿ”„ Boot in. TWRP (Power + Volume Up).
  • ๐Ÿ—‘๏ธ Remove Magisk via Uninstall in the menu TWRP.
  • ๐Ÿ”ง Fast-rom stock through fastboot.

2 This package is for 'lavender' devices; this is a'

The reason: you downloaded Magisk or TWRP for another model.

Solution: Check the device's code name in TWRP (Advanced โ†’ Terminal, getprop ro.product.device command).

3. Mobile network or Wi-Fi is not working

Reason: Modem module is damaged during firmware.

Solution: Switch the vendor and modem from the original ROM via fastboot:

fastboot flash vendor vendor.img


fastboot flash modem NON-HLOS.bin

๐Ÿ’ก

If after the root stopped working banking applications (Sberbank, Tinkoff), install the module MagiskHide Props Config and activate the option Hide Magisk in the settings Magisk. This will help bypass some checks, but does not guarantee 100% performance.

What to do with the root rights on the Redmi Note 7

Now that you have a root, the phone's capabilities are expanding at a great rate.

  • โšก Remove embedded software: using Titanium Backup or adb shell pm uninstall -k --user 0 com.miui.analytics can remove unnecessary system applications (e.g. Mi Video, Mi Music).
  • ๐ŸŽฎ Play with modifications: Root allows cheats to be used in games (via GameGuardian), but you risk getting a ban.
  • ๐Ÿ”‹ Battery Optimization: Greenify or Battery Charge Limits Up to 80% Charge to Save the Battery.
  • ๐Ÿ“ฑ Install custom firmware: for example LineageOS or Pixel Experience for pure Android.
  • ๐Ÿ” Overclock the processor: Kernel Adiutor can change the frequencies of the Snapdragon 660, but this will reduce the life of the chip.

โš ๏ธ Note: Certain actions (such as removing system applications) may disrupt the operation of the system. MIUI. Always backup in. TWRP Before experimenting! To recover, just stitch backup through Restore.

How to return everything back (remove the root and block the bootloader)
1. In Magisk, select Uninstall. โ†’ Complete Uninstall. 2. Stitch the original recovery.img Fastboot: Fastboot Flash Recovery stock_recovery.img 3. Block the bootloader with the command: fastboot oem lock โš ๏ธ This will erase all data and return the phone to factory condition!

FAQ: Answers to Frequent Questions

Can I get a root on Redmi Note 7 without unlocking the bootloader?
No. Xiaomi blocks modifications to the system partition without unlocking the bootloader. All "unlocked methods" (e.g., through exploits) either don't work on MIUI 12+ or turn the phone into a brick.
Why Google Pay is not working after the root?
Google Pay and other banking applications check system integrity through SafetyNet. Even with MagiskHide, some applications can detect root. Solutions two: Use alternatives (e.g., SberPay via Mir Pay); Install Universal SafetyNet Fix module in Magisk (does not guarantee 100% result).
How to update MIUI after getting a root?
Updates through Settings โ†’ The system update will not work (MIUI It will detect changes in the system partition: ๐Ÿ”„ Download full firmware from Xiaomifirmwareupdater.com and stitch through TWRP (wipe). ๐Ÿ“ฆ Use custom firmware (for example, MIUI EU), updated through OTA even with rue. โš ๏ธ After the update, Magisk may need to re-firm!
Can I get a root on the Redmi Note 7 Pro (violett)?
Yes, the process is similar, but you need to use files for the Violett code: TWRP: twrp.me/xiaomi/xiaomiredminote7pro.html Magisk: Same thing Magisk.apk, Check compatibility with the version. MIUI. โš ๏ธ Redmi Note 7 Pro has a different processor (Snapdragon) 675), So, the Note firmware 7 won't fit!
What to do if the phone warms up and discharges quickly after the root?
This is a typical problem with Magisk misconfiguration or module conflict: ๐Ÿ”ฅ Run AccuBattery โ€“ if the discharge goes on Android System, then some process has got a root and works in the background. ๐Ÿ› ๏ธ In Magisk, turn off all the modules and check the temperature. If the heat is gone, turn on the modules one at a time to find the culprit. ๐Ÿ”„ Reset the battery settings through TWRP (Wipe โ†’ Format Data, but it will erase all data!).