TechBuzzPro

Xiaomi Mi 9 SE: Install TWRP & Root Guide

· 5 min read · Phones & Tablets

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can install TWRP and root your Xiaomi Mi 9 SE, but it voids your warranty and carries a risk of bricking your device if not done carefully. This guide details the process, emphasizing safety and accuracy. It involves unlocking the bootloader, flashing TWRP, and then using TWRP to flash Magisk for root access.

What You'll Need

  • A Xiaomi Mi 9 SE (obviously!)
  • A Windows PC (required for some steps)
  • USB cable (the one that came with your phone is best)
  • ADB and Fastboot tools installed on your PC. These are command-line tools for communicating with your phone in bootloader mode.
  • TWRP recovery image for your specific Mi 9 SE model (ensure you download the correct version – incorrect versions can brick your device).
  • Magisk APK (the latest version is recommended). This is used for gaining root access.
  • Xiaomi account with developer options enabled (you'll need to be logged in on your phone and PC).

Step-by-Step

  1. Enable Developer Options: On your Mi 9 SE, go to Settings > About phone. Tap on "MIUI version" repeatedly (usually 7-10 times) until you see a message saying "You are now a developer!".
  2. Enable USB Debugging and OEM Unlocking: Go to Settings > Additional settings > Developer options. Enable "USB debugging" and "OEM unlocking". If these options are missing, ensure you have the latest MIUI version installed.
  3. Bind Your Xiaomi Account: In Developer options, find "Mi Unlock status" and tap it. Follow the on-screen instructions to bind your Xiaomi account to your device. This is crucial for unlocking the bootloader.
  4. Download ADB and Fastboot Tools: Download the ADB and Fastboot tools for your computer. You can find them easily by searching online for "minimal ADB and fastboot." Extract the contents of the archive to a convenient location on your computer (e.g., C:\adb).
  5. Download TWRP Recovery: Download the correct TWRP recovery image (.img file) for your Mi 9 SE model from a reputable source (e.g., XDA Developers forum). Double-check the model number to avoid bricking your device.
  6. Download Magisk APK: Download the latest Magisk APK file from the official Magisk GitHub repository or a trusted source.
  7. Boot into Fastboot Mode: Power off your Mi 9 SE. Press and hold the Volume Down button and the Power button simultaneously until you see the Fastboot logo (a rabbit fixing an Android).
  8. Connect Your Phone to Your PC: Connect your Mi 9 SE to your PC using the USB cable.
  9. Open a Command Prompt (or Terminal): Open a command prompt or terminal window on your PC. Navigate to the directory where you extracted the ADB and Fastboot tools (e.g., type `cd C:\adb` and press Enter).
  10. Verify Fastboot Connection: In the command prompt, type `fastboot devices` and press Enter. You should see your device listed with a serial number. If not, ensure you have the correct drivers installed.
  11. Unlock the Bootloader: Type `fastboot oem unlock` and press Enter. This will erase all data on your phone. A warning will appear on your phone’s screen; use the volume buttons to select "Unlock the bootloader" and press the power button to confirm. This process can take a few minutes.
  12. Flash TWRP Recovery: Type `fastboot flash recovery twrp.img` (replace `twrp.img` with the actual filename of the TWRP image you downloaded) and press Enter.
  13. Boot into TWRP Recovery: After flashing TWRP, disconnect the USB cable. Press and hold the Volume Up button and the Power button simultaneously until you see the TWRP recovery screen.
  14. Flash Magisk: In TWRP, tap "Install." Navigate to the Magisk APK file you downloaded and select it. Swipe to confirm the flash.
  15. Reboot Your Phone: Tap "Reboot system." Your phone will now reboot with Magisk installed, granting you root access.

Common Mistakes

  • Downloading the wrong TWRP image: This is the most common mistake and can brick your device. Always double-check the model number.
  • Not enabling OEM unlocking: If OEM unlocking is not enabled, the bootloader unlock process will fail.
  • Forgetting to bind your Xiaomi account: Xiaomi requires you to bind your account before unlocking the bootloader.
  • Incorrect Fastboot commands: Typing the commands incorrectly can lead to errors. Double-check your typing.
  • Interrupting the flashing process: Do not disconnect your phone or interrupt the flashing process while it’s in progress.

Tips

  • Back up your data: Unlocking the bootloader and flashing TWRP will erase all data on your phone. Back up everything important before proceeding.
  • Charge your phone: Ensure your phone is adequately charged before starting the process.
  • Read the instructions carefully: Read all instructions thoroughly before proceeding.
  • Join a forum: Join a forum like XDA Developers for support and troubleshooting.
  • Use a reliable USB cable: A faulty USB cable can cause errors during the flashing process.

Troubleshooting

  • Phone stuck in Fastboot mode: Try holding the Power button for 30 seconds to force a reboot.
  • "Waiting for device" error: Ensure you have the correct drivers installed and that your USB cable is properly connected. Try a different USB port.
  • Bootloop: If your phone gets stuck in a bootloop, try wiping data/factory reset in TWRP. This will erase all data on your phone.
  • Bricked device: If your device is completely unresponsive, you may need to use Mi Flash Tool to restore it to its stock firmware. This is a more advanced process and carries a higher risk of data loss. Seek help from a forum before attempting this.
  • TWRP not booting: Make sure you flashed the correct TWRP image for your device model.

Frequently Asked Questions

What does rooting my phone do?

Rooting gives you superuser access to your device, allowing you to install custom ROMs, remove bloatware, and modify system settings.

Will rooting void my warranty?

Yes, rooting your phone will void your warranty. Xiaomi considers it a modification of the device's software.

Is rooting my phone safe?

Rooting itself isn't inherently unsafe, but it does increase the risk of security vulnerabilities if not done carefully. Only install apps and modifications from trusted sources.

How do I unroot my phone?

You can typically unroot your phone by flashing the stock ROM using Mi Flash Tool.

What is TWRP?

TWRP (Team Win Recovery Project) is a custom recovery environment that allows you to flash custom ROMs, kernels, and other modifications to your device.

Can I install custom ROMs after rooting?

Yes, once you have root access and TWRP installed, you can install custom ROMs to completely change your phone's operating system.