Phone: Xiaomi Redmi 4 prime (unlocked)
Rom (custom): lineage-13.0

By entering into fastboot, using the twrp 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.

  • Well if you have run flash command from fastboot than it should be flashed and stay there permanently. Also why do you use boot command after flash if it's flashed (when you use boot command it just boots to recovery from external file it doesn't flash it). Try accessing it with combination of buttons during boot. – Једноруки Крстивоје Jun 6 '17 at 15:05
  • I did that, the problem is after using the hardware keys to enter into recovery (phone is off) it remains at oem logo (MI logo) forever. – wiki Jun 6 '17 at 15:20
  • here it says you should be pressing volume up key when xiaomi logo appears to enter the recovery. What about other users of that phone does anyone have same issue? – Једноруки Крстивоје Jun 6 '17 at 16:53
  • Isn't "Update 2" actually an answer to your own question? If so, you'd better post it as an answer :) // PS: On many devices, that's the trick: Immediately after flashing, boot into it so it makes itself permanent. Otherwise, the system is reverting back, as you've experienced. – Izzy Jun 6 '17 at 17:00
  • The thing is in the new custom rom, when booting into twrp recovery even for the first time, it doesn't prompt to make it permanent! – wiki Jun 6 '17 at 18:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.