How to install root on Xiaomi Redmi Note 7: a complete guide to security

Why Redmi Note 7 Needs a Special Root Approach

Xiaomi Redmi Note 7 (codenamed lavender) is still one of the most popular devices for firmware experiments โ€” despite its release in 2019. Its hardware (Snapdragon 660, 3/4/6 GB of RAM) pulls custom builds perfectly, but the process of getting root here is complicated by two key points: a blocked bootloader by default and anti-rollback protection (anti-rollback), which can turn the phone into a โ€œbrickโ€ if you do wrong.

Unlike the newer Xiaomi models, where unlocking the bootloader takes 7-14 days, Redmi Note 7 can do this process in 24-72 hours โ€” if you know the nuances of working with Mi Unlock servers. In addition, the device supports the installation of TWRP (Team Win Recovery Project), but only certain versions compatible with MIUI 12/13/14 and Android 9/10/11. Error in the selection of recovery is fraught with loss of data or inability to boot the system.

This is the same as all Redmi Note 7 versions:

  • ๐Ÿ“ฑ Redmi Note 7 (lavender) โ€“ standard version with Snapdragon 660;
  • ๐Ÿ“ฑ Redmi Note 7 Pro (violet) โ€“ with 48 MP camera and the same processor;
  • ๐Ÿ“ฑ Redmi Note 7S (Lavender โ€“ Budget option for India.

Before you start, answer the main question: why do you root? If the goal is simply to remove embedded applications or disable ads in MIUI, it is enough to unlock the bootloader and install Magisk without completely flashing. If you plan to install custom cores or LineageOS, you will need full access to the system partition.

๐Ÿ“Š Why you want to root on Redmi Note 7?
Remove the built-in Xiaomi software
Install custom firmware
Overclock the processor/GPU
Disable Advertising in MIUI
Another option

Preparation of the device: 5 mandatory steps before unlocking

Incorrect preparation is the cause of 80% of the โ€œbrickedโ€ Redmi Note 7. To avoid problems, follow all the paragraphs from this section in the specified order:

  1. Check out MIUI and Android. Go to Settings โ†’ About Phone. A successful root requires firmware that is not newer than MIUI 14 (Android 11). If you have MIUI 15 or Android 12+, roll back through the Mi Flash Tool first.
  2. Activate debugging on USB. Go to Settings. โ†’ The phone. โ†’ Version. MIUI and tap 7 times on the line to turn on Developer Mode. โ†’ Additionally. โ†’ For developers, turn on: ๐Ÿ”ง Debugging by USB; ๐Ÿ”ง Unlocking OEM (point-of-point!); ๐Ÿ”ง Factory Unblocking (if any).
  3. Link your Mi Account. Without a Xiaomi account, you canโ€™t unlock the bootloader. Make sure your device has added and confirmed your Mi Account (not to be confused with Google!).
  4. Back up. Use Mi Cloud or Titanium Backup (if you already have root: ๐Ÿ“ Photo and video (folder) DCIM); ๐Ÿ“ฑ Contact and SMS (export to.vcf and.xml); ๐Ÿ”‘ Wi-Fi Passwords (WiFi Password Viewer).

Charge the battery.

original USB-cable

โ˜‘๏ธ Checklist before unlocking

Done: 0 / 5

โš ๏ธ Note: If you are updating the Redmi Note 7 OTA (by air) with MIUI 10. MIUI 12+, Anti-rollback protection can lock the bootloader permanently, in which case you will need a complete reset via Fastboot with loss of data.

Unlock the bootloader: bypass the limitations of Xiaomi

Xiaomi artificially complicates the unlocking process to protect users from accidental errors. The Redmi Note 7 has a rule that the minimum wait time is 72 hours from the moment an account is attached.

Download the official Mi Unlock Tool from en.miui.com/unlock (version no lower than 5.5.224.24) and install it on Windows 10/11 PCs (no guaranteed work on macOS/Linux).

Step-by-step:

  1. Sign in to Mi Unlock Tool under the same account as your phone.
  2. Connect your phone in Fastboot mode: Turn off the device. Press Volume down + Power until the Fastboot logo appears.

Unlock

"Couldnโ€™t unlock. Wait for 72 hours"

How to speed up the unlocking up to 24 hours
Close Mi Unlock Tool โ†’ Turn off the Internet on PC โ†’ Run the utility again โ†’ Connect the phone in Fastboot โ†’ Press Unlock. If there is a "Network error", turn on the Internet and try again. This method works in 60% of cases.

full-dump

Message in Mi UnlockReason.Decision
Couldnโ€™t unlock. Wait for 72 hoursThe account is not tied to the device or little time has passedRepeat the attempt after 24 hours or use the spoiler above
Current account is different from the account info on the deviceDifferent accounts on the phone and in the utilityReconnect your account on your phone and log in again to Mi Unlock
Device is locked. Unable to unlockAnti-recoil protection or unofficial firmwareReturn to the stock firmware via Mi Flash

โš ๏ธ After unlocking the bootloader Redmi Note 7 loses support for Google Pay, Netflix in the future HD This is due to a violation of SafetyNet.Solution - Magisk installation with Universal SafetyNet Fix module.

TWRP Installation: Which Recovery to Choose for Redmi Note 7

The official TWRP for lavender has not been updated for a long time, but the development community supports informal builds. Importantly, not all versions of TWRP are anti-rollback compatible. For example, installing TWRP 3.6.0 on firmware with anti-rollback 4 will lead to brick.

Download the current version TWRP XDA-Developers Forum (Recommended) twrp-3.7.0_9-0-lavender-mauronofrio.img). You will also need Fastboot (part of Googleโ€™s Platform Tools).

Installation instructions:

  1. Move the downloaded.img file to the folder with Platform Tools (e.g., C:\platform-tools).
  2. Open the Command Prompt in this folder (Shift + PCM โ†’ Open the PowerShell window here).
  3. Connect your phone in Fastboot mode (as in the previous section).
  4. Enter the command to check the connection: fastboot devices Must appear serial number of the device.
  5. Install. TWRP: fastboot flash recovery twrp-3.7.0_9-0-lavender-mauronofrio.img
  6. Immediately after installation, do not restart to the system! twrp-3.7.0_9-0-lavender-mauronofrio.img This will load the phone right into TWRP, Bypassing stock recovery, which can overwrite your custom.

๐Ÿ’ก

If after installing the TWRP, the phone is stuck on the Redmi logo, press Volume Up + Power for 10 seconds to force it to turn off. Then reboot to TWRP via the fastboot boot command.

Testing the health of TWRP

The TWRP menu should be available:

  • ๐Ÿ“ Backup - Creating a Backup;
  • ๐Ÿ”„ Restore - Restore;
  • ๐Ÿ“ฆ Install - installation ZIP-Files (for Magisk);
  • ๐Ÿ”ง Wipe โ€“ Cleaning Partitions.

If you see Chinese characters instead of English, you downloaded the wrong version. Don't try to press anything! TWRP.

Magisk Installation: Getting Root Without Risk to the System

Magisk is not just a root tool, but a complete ecosystem that allows you to hide the status of the root from applications (for example, banking) and install modules for deep customization. Magisk v26.1+ is suitable for the Redmi Note 7.

Download the latest version of Magisk from GitHub (Magisk-v26.1.zip file).Do not use versions below 24.3 - they are not compatible with Android 10/11.

Installation process:

  1. Copy. Magisk-v26.1.zip on the phone (internal memory or SD-map).
  2. Boot to TWRP (via fastboot boot recovery.img or Volume up + Power combination).
  3. In TWRP, click Install โ†’ select Magisk-v26.1.zip โ†’ swipe for confirmation.
  4. After installation, press Reboot System.

The first download after installing Magisk can take up to 10 minutes, and if the phone has been stuck on the logo for longer than 15 minutes, it means that there has been an error.

  • ๐Ÿ”„ Boot in. TWRP;
  • ๐Ÿ“ฆ Install. Magisk-uninstaller.zip (Download it in advance from the same GitHub);
  • ๐Ÿ”ง Try another version of Magisk (e.g. 25.2).

๐Ÿ’ก

Magisk installation does NOT erase user data, but if you plan to encrypt /data partition, do so before installing root, otherwise you will lose access to files.

Root Check and Magisk Setup

After the system is loaded:

  1. Install the Magisk app from Magisk-v26.1.apk (company with ZIP).
  2. Open the app and check the status: โœ… Magisk: Installed - root is installed; โŒ Magisk: Not Installed โ€“ Repeat the process; โš ๏ธ SafetyNet: Fail โ€“ Universal SafetyNet Fix Module.
  3. To hide root from banking applications: Go to Magisk โ†’ MagiskHide Settings; Turn on the option and select the applications that need to โ€œhideโ€ root (for example, Sberbank Online).

Problem Solving: What to Do When Something Goes Wrong

Even with the right instructions, you can fail, and here are the most common problems and solutions.

Problem.Probable causeDecision
The phone will not turn on after installing TWRPIncompatible Recovery or Anti-RollbackSwitch to Fastboot Flash Recovery stock_recovery.img
Magisk is not installed (error 1)Damaged. ZIP-file or lack of space in /systemDownload the file again or clear the cache in TWRP
After the root does not work camera or Wi-FiMagisk module conflict or vendor damageRemove all modules in Magisk or reflash vendor.img
Not coming through SafetyNetUniversal SafetyNet Fix is not available.Install the module through Magisk โ†’ Modules

If the phone has become a hard brick, and even the Fastboot is not defined, the only option is to run the firmware through EDL (Emergency Download Mode).

  • ๐Ÿ”ง Authorized Xiaomi Account (to access the EDL-firmware);
  • ๐Ÿ”ง Box solution (e.g. UFi Box or EasyJTAG);
  • ๐Ÿ”ง Testpoints (you need to close on the board for transfer to the EDL).

โš ๏ธ Attention: Firmware through EDL If you're not sure about your skills, contact the service center.The cost of recovering the Redmi Note 7 through EDL โ€” 1500 to 3000 rubles.

What to do after getting root: useful modules and tweaks

Now that you have root, you can unlock the full potential of the Redmi Note 7. Here are the top modules for Magisk that you should install first:

  • ๐Ÿš€ ViPER4Android FX โ€” Best audio processor for headphones and speakers, installed with the Audio Modification Library driver.
  • ๐ŸŽฎ Game Turbo Mod - Overclocking GPU Optimization for games (increased) FPS into PUBG Call of Duty Mobile at 15-20%).
  • ๐Ÿ”‹ AccA (Accumulate Charge) โ€“ Limits battery life to 80%, extending battery life.
  • ๐Ÿ›ก๏ธ LSposed + XPrivacyLua โ€“ blocking app surveillance and deep permissions.
  • ๐Ÿ“ฑ QuickSwitch โ€“ porting Pixel features to the MIUI (For example, navigation gestures from Google).

For the installation of modules:

  1. Download the file with the.zip extension;
  2. Open Magisk โ†’ Modules โ†’ Install from storage
  3. Select a file and restart the phone.

Do not install more than 5-7 modules at once, which can lead to a bootloop ( looped reboot).If the phone starts to slow down, remove the extra modules through TWRP (folder /magisk/modules).

๐Ÿ’ก

Before installing any module, read reviews on XDA-Developers. Some modules (for example, to change the DPI) can break the MIUI interface.

FAQ: answers to frequent questions about root on Redmi Note 7

Can I get root without unlocking the bootloader?
No. On the Redmi Note 7 (as with all modern Xiaomi), unlocking the bootloader is a must. Alternative methods (for example, through vulnerabilities in the kernel) either fail or lead to brick.
Will Google Pay work after you get root?
The default is no, because root violates SafetyNet. But if you install Universal SafetyNet Fix and turn on MagiskHide, the chances of Google Pay working are ~70%. Banking applications (Sberbank, Tinkoff) can be blocked even with these measures.
How to get it back and remove root?
To completely remove root and return the phone to stock: Download the stock firmware for your model from the official Xiaomi website; Unpack ZIP-Download to Fastboot and run through the command: fastboot flash all stock_rom.img After the firmware, reset via fastboot erase userdata.
Can I update my MIUI after I get root?
Yes, but only manually through TWRP. Automatic Update (OTA) will result in root loss and possible brick due to anti-rollback. Always check the compatibility of the new firmware with your version of TWRP and Magisk before upgrading.
How to check if the bootloader is unlocked?
Turn off your phone and boot to Fastboot (Loudness Down) + If you have "Unlocked" on the bottom of the screen, the bootloader is unlocked. If "Locked," you'll have to repeat the process with the Mi Unlock Tool.