Install adb and fastboot:
sudo su apt-get update apt-get install android-tools-adb android-tools-fastboot -y
Supposed your phone device bootloader is unblocked:
– Settings –> About Phone –> MIUI version and MIUI Version 7 Times
– Settings –> Additional Settings –> Developer Options and check “OEM unlocking” [should be already checked] and “USB debugging.”
– Turn off your phone
– Enter FASTBOOT mode by pressing and holding VOLUME DOWN and POWER button until you see Fastboot screen
– Connect your device to computer
– Check if PC found it
fastboot devices
9715c3f1 fastboot
– Flash your recovery
fastboot flash recovery twrp.img
– Press and hold VOLUME UP and run:
fastboot reboot
– TWRP recovery should be loaded now
My TWRP recovery overwrites with stock recovery after ROM updates, possible solutions:
– test another twrp version
– test enable “read only” mode on system partition