How to Unlock Bootloader and root Xiaomi Mi 9

Xiaomi recently introduced its newest flagship device Mi 9. The phone is getting popular already and if you own it and want to root your Mi 9, it’s possible. Now, you can unlock the bootloader on the Xiaomi Mi9 using Mi Unlock tool easily. and it’s useless to mention that once you have unlocked it, you can easily flash TWRP recovery and root Xiaomi Mi 9. follow our detailed step-by-step tutorial to root you Mi 9 safely.

As is the case with other devices, if you want to root this device and flash a custom recovery or ROM, you will first have to unlock its bootloader. follow the below steps in purchase to do the same:

Disclaimer
Unlocking the bootloader will space the guarantee of your device. If you miss or don’t follow any of the steps in the discussed order, you may end up bricking your device. neither the author nor DroidViews will be held responsible in such any case. proceed only if you know what you are doing.

Prerequisites

Backup your complete data, as all of your data, including your internal storage, will be wiped out.

Keep your phone charged at least 70-80% charged.

Enable designer options: go to settings and tap on build Number 7 times.

Under designer Options, enable USB Debugging and OEM Unlocking.

Rename the TWRP recovery that you would be downloading below to “recovery.img” and place it inside the “platform-tools” folder.

Downloads

Mi Unlock tool (for unlocking bootloader)

SDK Platform-Tools (for fastboot commands)

Magisk (to root your device)

TWRP (for flashing custom ROMs, mods, etc.)

Force Encryption Disabler (to permanently install TWRP)

Steps to unlock Xiaomi  Mi 9 Bootloader

In purchase to unlock the bootloader of Xiaomi Mi 9, follow the below steps:

Open this link and tap on Unlock Now. fill in the form regarding why you need to unlock the bootloader.

Once applied, you will get an OTP, enter that OTP in the PC and click Next.
Click on Unlock now and fill in the Unlock Bootloader form

Your Application has been successfully submitted. now you need to wait on some days until you get a message of acceptance which states that you are eligible to unlock the bootloader.

Install the Mi Unlock tool on your PC.

For the Unlocking Part, follow the below steps:

Enable USB Debugging and OEM unlocking.

Now switch off the device, press volume Down and Power button at the same time to enter into the Fastboot Mode.

Connect your phone to laptop via USB.

Open Mi Unlock Tool, click on agree and sign in with your Mi ID and password.

Click next and then the Unlock button.
After linking your phone, click on Unlock

After the process is completed successfully, reboot your device.

That’s it. You have successfully unlocked the bootloader of Xiaomi Mi 9.

After unlocking the bootloader, you need to root Xiaomi Mi 9 in purchase to flash various mods, ROMs, apps, etc.

Steps to root Xiaomi Mi 9 and install TWRP

Having unlocked the bootloader on your Xiaomi Mi 9, let’s root it and flash the TWRP recovery on it.

Connect your phone to PC via USB.

Open Platform-Tools folder, type “cmd’ in the folder window address bar to introduce a command prompt and type:
adb reboot bootloader

Your device will reboot to the Fastboot mode. now type:
fastboot flash recovery recovery.img

With the above code, recovery would be flashed onto your device. now to reboot the device, type:
fastboot reboot

Starting from Android Pie, TWRP encrypts the internal storage of your device. therefore in purchase to decrypt it, style the data partition via TWRP.

Also, in purchase to permanently keep TWRP installed and make sure the stock recovery does not overwrite it, flash force Encryption Disabler via TWRP.

Finally, to get root privileges, you need to flash the Magisk.zip file.

Note: For flashing any file via TWRP, you need to go to Install, select that file and them swipe to confirm flash.

That’s it! You have successfully unlocked and rooted your Xiaomi Mi 9 device. have any inquiry or didn’t understand any part? feel free to drop your doubts in the comment section below.

Read Next: list of useful ADB and Fastboot Commands for Android