Deleting the recovery partition on Qin F21

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!
1 Like

Thanks although someone already provided a boot image without the recovery

Do you have a link to that, just for documentation for future readers?

Also, fastboot might be a slightly less intimidating method than any of the various flash tools if someone is still learning.

It was created privately by somebody I’ll find out if I can post it

1 Like

That’s true.

Boot image without recovery menu
Credits to @YechielE
Download

That’s not possible with just device owner permissions.

The phone doesn’t have a recovery partition. It’s in boot.

This is correct.

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.

1 Like

I’m not sure exactly what this is supposed to do but it doesn’t delete recovery

Must be a different firmware on yours than on mine, because it did delete recovery on mine.

What firmware do you have

The 1.1.1.1 version.

You can always flash TWRP boot on it, and then it will have back recovery partition

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.

  • fastboot
  • mtkclient
  • sp flash tool
  • infinity cm2
  • sideload
  • OTA from SD

There are many ways to flash a partition without recovery

1 Like

If I do this, then will resetting the device in the future work if I need to and will it require extra steps to factory reset it?

1 Like

Thanks, how would I flash it with adb?

  • adb reboot bootloader
  • fastboot flash recovery recovery.img
    or
  • fastboot erase recovery

you can always do a factory reset using fastboot command:
fastboot -w