I was asked about deleting the recovery partition on a Qin F21 Pro, to prevent removing eGate by booting into recovery mode. I thought I would document the process here in case anyone else found it useful.
Make sure you have adb and fastboot installled on your computer.
Enable abd on the phone and connect to to your computer via a usb cable.
In your command prompt, type adb reboot fastboot. The phone will reboot into fastboot mode.
Type fastboot delete-logical-partition recovery. This deletes the recovery partition.
Type fastboot reboot to restart the phone. That’s it!
It’s not a regular partition, at least with the firmware that is on mine. But there is a logical recovery partition, hence the delete-logical-partition command… Depending on what firmware is on the device, it might not even have that.
Is there a way to install this to remove the recovery without using twrp. I used TWRP to install it and it removed TWRP and the recovery, but want a way to install it without using TWRP. Thanks.