Phone: Xiaomi Redmi 4 prime (unlocked) Rom (custom): lineage-13.0
By entering into fastboot, using the twrp 188.8.131.52 recovery image (made specifically for this phone) and issuing the following commands, I can successfully boot into recovery and use twrp;
fastboot flash recovery cofface_twrp_recovery_markw_1121.img fastboot boot cofface_twrp_recovery_markw_1121.img
The problem is, the flashing of recovery is not permanent and as soon as I reboot into system, I will lost the twrp recovery and have to use fastboot and flashing recovery again;
How can I make the twrp recovery permanent?
Update 1: If I don't use
fastboot boot cofface_twrp_recovery_markw_1121.img at the end and use the hardware keys to enter into recovery while the phone is off, it remains at oem logo (MI logo) forever.
Update 2: When I was using the stock rom (MIUI 8.2) and applying the above procedure, the first time that twrp showed up, it asked to make the flashing permanent and it became permanent in spite of numerous system reboots.