How to Install TWRP and Root Redmi Note 7S
In this article
Installing TWRP and rooting the Redmi Note 7S gives you full control over the phone: you can flash custom ROMs, take complete system backups, remove preinstalled apps, and use root-only tools. The process requires an unlocked bootloader, a Windows PC, and a few files. Before you begin, back up all data because unlocking the bootloader wipes the phone, and rooting voids your warranty. Also note that Xiaomi's MIUI may block some steps, so follow the order carefully. This guide assumes you have the global Redmi Note 7S (codename lavender) and a basic understanding of ADB and fastboot.
What You'll Need
- A Windows PC with a USB-A port (USB-C to USB-A cable recommended).
- ADB and Fastboot installed (use the official Google platform-tools package).
- Xiaomi USB drivers installed (available from Xiaomi's official support site).
- An unlocked bootloader (see Step 1).
- TWRP recovery image for lavender (download from the official TWRP website).
- Magisk APK (download from the official Magisk GitHub repository).
- A microSD card or USB OTG drive (optional but helpful for storing backups and the Magisk zip).
- At least 60% battery on the phone.
Step-by-Step
- Unlock the bootloader. On the phone, go to Settings > About phone and tap MIUI version seven times to enable Developer options. Then go to Settings > Additional settings > Developer options and enable USB debugging and OEM unlocking. On your PC, install the Mi Unlock tool (official Xiaomi tool) and follow its instructions. You will need to bind your Mi account to the phone and wait the required period (typically 7 days for new accounts). This step wipes all data, so back up first.
- Download TWRP and Magisk. Get the TWRP image for lavender from twrp.me. Download the latest Magisk APK from GitHub. Rename the TWRP image to
twrp.imgand place it in your platform-tools folder. Copy the Magisk APK to your phone's internal storage or microSD card. - Enable USB debugging and connect the phone. On the phone, go to Settings > Additional settings > Developer options and ensure USB debugging is on. Connect the phone to the PC with a USB cable. On the phone, when prompted to allow USB debugging, tap Allow.
- Boot into fastboot mode. Open a command prompt or PowerShell in your platform-tools folder. Type
adb devicesand confirm your device appears. Then typeadb reboot bootloader. The phone will reboot into fastboot mode (you'll see the Mi Bunny logo). - Flash TWRP. In the command prompt, type
fastboot flash recovery twrp.img. Wait for the success message. Then typefastboot boot twrp.imgto boot directly into TWRP without overwriting the stock recovery yet. This is important because MIUI may replace TWRP on reboot if you flash it permanently before rooting. - Allow system modifications in TWRP. When TWRP starts, swipe to allow modifications. Go to Wipe > Format Data, type
yes, and confirm. This removes encryption and wipes all data (including internal storage). Reboot back to recovery (TWRP) to ensure it sticks. If TWRP asks to install the TWRP app, you can skip it. - Install Magisk. In TWRP, tap Install, navigate to the Magisk APK you copied earlier, and select it. Swipe to confirm flash. Magisk will patch the boot image and install root. After flashing, tap Reboot System.
- Verify root. Once the phone boots, open the Magisk app (it should appear in your app drawer). If it shows "Installed" with a version number, root is active. You can test with a root checker app from the Play Store.
Common Mistakes
- Flashing TWRP before unlocking the bootloader. The flash will fail or brick the phone. Always unlock first.
- Skipping Format Data. Without formatting data, TWRP cannot decrypt the storage, and Magisk installation will fail.
- Using the wrong TWRP image. The Redmi Note 7S is codename lavender; using an image for another model can brick the device.
- Forgetting to disable MIUI optimization. Some MIUI versions re-enable stock recovery on reboot. After rooting, you can disable MIUI optimization in Developer options to prevent this.
- Not backing up. Unlocking the bootloader and formatting data erase everything. Always back up photos, contacts, and app data first.
Tips
- Use a USB 2.0 port on your PC for better compatibility with fastboot.
- Keep the TWRP image and Magisk APK in the same folder as ADB for easy access.
- After rooting, install a root manager app like Magisk Manager to handle su requests and modules.
- Consider flashing a custom kernel or ROM only after you have a stable root and a full backup.
- If you need to re-lock the bootloader later, flash the stock MIUI ROM first via fastboot, then use Mi Unlock to lock it (this wipes data again).
Troubleshooting
If the phone does not boot into TWRP after fastboot boot twrp.img, try a different USB cable or port. If TWRP boots but touch does not work, you may have the wrong TWRP version; download the latest official image. If Magisk installation fails, ensure you formatted data and that the Magisk APK is not corrupted. If the phone bootloops after rooting, boot into TWRP, flash the Magisk uninstaller, and reboot. If fastboot does not recognize the device, reinstall the Xiaomi USB drivers and try again. For persistent issues, consult the XDA Forums thread for the Redmi Note 7S.
Frequently Asked Questions
Do I need to unlock the bootloader to install TWRP?
Yes. The bootloader must be unlocked before you can flash or boot a custom recovery like TWRP.
Will rooting delete my data?
Unlocking the bootloader wipes all data. Formatting data in TWRP also wipes internal storage. Back up before starting.
Can I root without TWRP?
Yes, you can patch the boot image with Magisk and flash it via fastboot, but TWRP makes the process easier and allows backups.
Is it safe to use the official TWRP app?
The TWRP app can flash recovery, but manual fastboot flashing is more reliable and recommended for first-time installation.
What if my phone is stuck in fastboot mode?
Hold the power button for about 10 seconds to force a reboot. If that fails, connect to a PC and run fastboot reboot.
Can I receive OTA updates after rooting?
OTA updates may fail on rooted devices. You can either unroot before updating or flash the full ROM manually.