Root Xiaomi Mi8 and Install TWRP | Guide


This year late May, Xiaomi released their 8th-anniversary edition flagship phones in China. The series has 3 devices- the standard Mi 8, the lightweight Mi 8 SE and the premium Mi 8 Explorer Edition. The standard Mi 8 sports in a 6.21-inch Full HD+ (2248×1080) AMOLED display with 600 nits brightness and support for HDR10 content and covers the DCI-P3 color gamut. It is powered by the Qualcomm Snapdragon 845 SoC clocked at 2.8 GHz and it comes with 6 GB of RAM and  64GB/128GB/256GB of internal storage.  In the camera department, the Xiaomi Mi 8 packs a 12-megapixel (f/1.8) primary and a 12 megapixel (f/2.4) telephoto lens on the rear and a 20-megapixel (f/1.8) front shooter for selfies.  It runs on MIUI 9 based on Android Oreo 8.1 out of the box and is juiced by a 3400mAh which supports Quick Charge 4.0+. It also features the world’s first dual-frequency GPS system on a smartphone.

Installing TWRP Recovery on your Xiaomi Mi 8 will help you install custom ROMs, Custom Kernels, and also enabled you to easily root your device. While there are many other ways by which you can root an Android device, using Magisk to root Android is the best way as of now. And for that TWRP is mandatory! Read ahead to know how to install TWRP on the Xiaomi Mi 8 and then how to root it using Magisk.

Mandatory Disclaimer: Rooting your device will require you to unlock your bootloader. In most cases, this will effectively void your device warranty. That said, unlocking bootloader/rooting are complex processes and may not always produce the desired results. Know what you are doing and always have a backup before proceeding. The author or ThemeFoxx cannot be held responsible in case anything unexpected happens to your device. Remember, you are warned.


  • Your Xiaomi Mi 8’s Bootloader must be unlocked.
  • Installing TWRP is a pretty complex task. Make sure to take a complete backup of your device before proceeding. Guide: Guide to Backup Android Device Without Root
  • Make sure you have enough charge left on your device. A minimum of 60% is recommended.
  • Make sure you have latest ADB and Fastboot tool installed on your Mac/Windows/Linux. Windows users will need to install the latest Xiaomi USB Drivers.
  • Enable USB Debugging in Developer Options.
SEE ALSO  (Always on) Force 90Hz Refresh Rate on Google Pixel 4 / Pixel 4 XL


Download these files before moving onto the step by step guide.

Place the TWRP image file inside your PC’s ADB folder and store Magisk in your phone’s external memory.

Steps To Root Xiaomi Mi 8 And Install TWRP

  1. Download the TWRP recovery file and rename it to ‘recovery.img’.
  2. Move it to the folder where ADB and fastboot are installed on your device.
  3. Connect your Mi 8 to your PC via a USB cable and run the ADB command line interface.
  4. Reboot your device into fastboot mode by typing the following command in your ADB command line interface:
    adb reboot bootloader
  5. Next type the following command:
    fastboot flash recovery recovery.img
  6. Now, power off your device and reboot it into the recovery mode by pressing the Volume Up and Power button simultaneously.
  7. Swipe on the required space on your screen to allow modifications.
  8. On the main screen of TWRP, select Install and then select Swipe at the bottom part of the screen to flash the zip file.
  9. Go back to the main menu, select Install and then navigate to the location where you have stored the magisk file and flash it.
  10. When the flashing completes successfully, normally reboot your device.
SEE ALSO  How to download Apps (.APK files) from Google Play Store on PC

Once the installation finished, reboot your device and look for an app called Magisk Manager. If it is not installed, download Magisk Manager APK and install it on your device.

Recommended: Best Magisk Modules for Android [2018]

Congratulations! You just successfully rooted your Xiaomi Mi 8 and installed TWRP.

This is the easiest way to root and install TWRP on Xiaomi Mi 8. I hope this article works the way it is intended to beLet us know about your experience trying out the methods mentioned in this article in the comments section down below. In case I missed mentioning anything or if there is some topic which you want me to cover, please let me know in the comments section down below.

SEE ALSO  How to Install Dolby Digital Plus on Android Pie Devices

2 thoughts on “Root Xiaomi Mi8 and Install TWRP | Guide”

    • Thanks for tuning into Themefoxx. We are working on Nokia 2 and will publish our findings in the upcoming days. Stay Tuned. Have a good day!


Leave a Comment