Modern smartphones, including the popular Xiaomi Redmi Note 7, often have limited access to system files by default. Obtaining superuser rights, or Root rights, opens up huge opportunities for the owner of the device to customize and optimize the work of the gadget.
The procedure for obtaining extended rights on the Android platform requires carefulness and a clear follow-up to the algorithm of actions. A mistake at any stage can lead to data loss or software failures. However, if done correctly, you will have full control over the operating system of your smartphone.
In this article, we will discuss in detail the process of unlocking the bootloader, installing a custom recavery and the final firmware Magisk. We will consider both software methods and hardware nuances characteristic of the Redmi Note 7 model codenamed lavender.
Preparation of the smartphone and the necessary tools
Before any manipulation of the system partition, careful preparation must be made; without a good foundation, further action may be useless or even dangerous to the device; and make sure that the battery is at least 60% in charge to avoid sudden shutdown.
You will need quality. USB-cable, preferably original, and computer running Windows. ADB And the Fastboot must be installed correctly in the system.
Make sure to back up all your important data. The process of unlocking the bootloader will inevitably result in complete deletion of data from the device. Photos, contacts and documents are better saved to a cloud service or external hard drive.
β οΈ Note: You perform all actions to modify the system software at your own risk.The author of the article is not responsible for the possible failure of the device.
To work, you will need to download the current version of the Mi Unlock Tool firmware from the official website, and you will need a Mi Account, which must be linked to the phone at least 7 days (168 hours) before the procedure begins.
βοΈ Checklist of preparations
Unlocking the Bootloader bootloader
The key step is unlocking the bootloader. Without this step, installing a modified recovery or obtaining Root rights is impossible. Xiaomi has implemented this protection to ensure user safety, but it also limits freedom of action.
First, activate the developer mode. To do this, go to Settings β About Phone and quickly press 7 times on the MIUI Version. After the message "You became a developer" appears, go to the advanced settings.
In the Developer Menu, find Mi Unlock Status and turn it on. Make sure USB debugging is enabled. After that, the phone needs to be rebooted to Fastboot mode, holding down the volume and power buttons simultaneously.
What if the timer shows 168 hours?
Connect your smartphone to your computer in Fastboot mode and launch Mi Unlock. After logging in, click Unlock. The process will take a few minutes, after which the device will be reset to factory settings.
- π± Make sure that SIM-card installed in the first slot.
- π Donβt try to get around the 168-hour wait β this can lead to a lockdown. IMEI.
- πΎ Save a backup before the final data reset.
- π Use it. USB-Port 2.0 for better compatibility with Fastboot.
Installation of custom TWRP Recovery
Recovery from Xiaomi does not allow third-party installation ZIP-We need to archive or make full partition backups. TWRP (Team Win Recovery Project is a powerful recovery environment with a graphical interface.
Download the image file twrp-lavender.img, It is designed specifically for the Redmi Note. 7. Put the file in the root folder on the computer where it is installed ADB-Rename the file for convenience, for example, in recovery.img.
Put your phone in Fastboot mode (volume down + power buttons) and connect to your PC. Open the command line in the ADB folder and enter a command to check the connection:
fastboot devicesIf the device is determined, execute the command to temporarily load the recaveri:
fastboot boot recovery.imgIt's important not to flash the recovers right away with flash unless you're sure of the stability of the version. Booting allows you to test TWRP. If it's successful, you'll see the recovery interface.
π‘
Expert advice: If after rebooting TWRP Flying and returning stock recap, this is normal for some versions MIUI. In that case, while in TWRP, squirt ZIP-archive with a patch that will fix the custom recaveri forever.
Inside TWRP, go to Wipe and format Data by entering the word "yes." This is necessary to decrypt the data, otherwise you won't be able to write files to your phone.
Magisk installation process and obtaining Root
The most relevant and secure way to obtain superuser rights today is to use Magisk. Unlike the old methods (SuperSU), Magisk works systemless, which allows you to bypass security checks in banking applications.
Download the current one. APK-Magisk file from the official GitHub repository. Rename the file extension from.apk to.zip. Copy the resulting archive to the internal memory of a smartphone connected in mode TWRP.
In the recovery menu, select Install. Find the copied ZIP-Magisk archive and confirm the swipe installation. It takes a few seconds. Once the installation is successful, press Reboot System.
| Parameter | Meaning/Action | Note |
|---|---|---|
| Model of the device | Xiaomi Redmi Note 7 | Codename lavender |
| Minimum version of Android | Android 9.0 (Pie) | Relevant for stock firmware |
| Unlocking tool | Mi Unlock Tool | Requires a wait of 7 days |
| Root manager | Magisk | Systems Method (Systemless) |
| Firmware mode | TWRP Recovery | An unlocked BL is required |
When you first boot the system, look up the Magisk icon in the application menu, and if it appears and you log in with the "Installed" status, it's a success. You've gained full access to the system.
π‘
Magisk allows you to hide the presence of Root rights from specific applications, which is critical for the work of banking customers and Google Pay.
License check and access setting
Once installed successfully, you need to make sure that the rights are working correctly. Download the "Root Checker" app from Google Play. Launch it and press the check button. The green screen will confirm that the superuser has rights.
In the Magisk app itself, you should enable "Zygisk" and "DenyList" (formerly known as MagiskHide) in the settings, which will help to hide the system modifications from applications with strict security checks.
To add the app to the hide list:
- π‘οΈ Open the Magisk settings and select βSet up negative lists".
- π¦ Find your banking apps and Google Play Services on the list.
- β Activate the switches in front of them.
- π Restart the device to apply changes.
Now, when you launch a banking application, it will provide it with original, unmodified data about the system, an effective way to combine Root rights with everyday smartphone use.
β οΈ Warning: Do not give Root access to unfamiliar applications. Superuser malware can completely destroy your system or steal data.
Possible problems and ways to solve them
The Xiaomi Redmi Note 7 can be difficult to modify, and users often experience a bootloop or a broken sensor. Don't panic, most problems are solvable.
If the phone is stuck on the MI logo, try going to TWRP (clamping volume up and power) and making a Wipe Cache/Dalvik. If that doesn't help, maybe the Magisk version isn't compatible with your Android version.
If you have a camera or sensor problem after installing Root, check if the system partitions are damaged. Sometimes you need to flash the boot.img stock image through Fastboot, while retaining Root rights through the Magisk patch.
Always have stock firmware on hand for your regional version, and the ability to roll back is the main security guarantee when experimenting with system files.