1. Unlock Bootloader
Download official unlock tool here : https://en.miui.com/unlock/
2. Download the newest ROM and extract boot.img
Download the full ROM here: http://c.mi.com/oc/miuidownload/index
(ROM for Chinese model:http://www.miui.com/download-365.html)
3. Install Magisk Manager, the patch boot.img
Copy boot.img to the phone, then install magisk manager, click install, choose boot.img.
Then magisk_patch.img is generated. This is the root kernel.
Copy magisk_patch.img back to computer.
4. Flash root kernel.
Power off, then hold Vol Down + Power button ,enter fastboot mode.
open cmd, flash the root kernel.
fastboot flash boot magisk_patch.img
fastboot reboot
Lastest Fastboot Download: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Download official unlock tool here : https://en.miui.com/unlock/
2. Download the newest ROM and extract boot.img
Download the full ROM here: http://c.mi.com/oc/miuidownload/index
(ROM for Chinese model:http://www.miui.com/download-365.html)
3. Install Magisk Manager, the patch boot.img
Copy boot.img to the phone, then install magisk manager, click install, choose boot.img.
Then magisk_patch.img is generated. This is the root kernel.
Copy magisk_patch.img back to computer.
4. Flash root kernel.
Power off, then hold Vol Down + Power button ,enter fastboot mode.
open cmd, flash the root kernel.
fastboot flash boot magisk_patch.img
fastboot reboot
Lastest Fastboot Download: https://dl.google.com/android/repository/platform-tools-latest-windows.zip