How to Flash TWRP Recovery in the vendor boot partition

In this guide, we will show you the steps to flash the TWRP Recovery in the vendor boot partition. If you are stepping into custom development, then a custom recovery will prove to be the most powerful tool that you could have in your arsenal. From flashing custom ROMs to taking Nadroid Backups, these recoveries behold a slew of useful functionalities up their sleeves. However, flashing them has proven to be quite a challenging task in recent years.

The reason for the same is the different partition styles that each device beholds. For instance, while some have a dedicated recovery partition, it’s missing from others. So while you could flash a custom recovery directly to the recovery partition in the former, you’ll have to take the help of the boot partition and then the ramdisk to get the job done in the latter. Then, there’s this third method of flashing TWRP Recovery- which involves the vendor partition. Here’s everything you need to know in this regard.

What is Vendor Boot as Recovery [A/B Partition]

twrp vendor boot

These devices don’t have a dedicated recovery partition. And even though it does have a boot partition, but the ramdisk doesn’t reside there, instead it is present in the vendor_boot partition [hence you cannot flash it via the Install Recovery Ramdisk method]. Moreover, you cannot even use the fastboot boot recovery.img command to temporarily ‘boot’ your device to the recovery. All in all, flashing the recovery to the vendor_boot partition is the only way out.

Chipsets that Support this Flashing

Do note that this is a non-comprehensive list and more entries will be added to it as and when we get hold of them.

Dimensity 8100/8100-Ultra/9000/9000+

Devices that Support this Flashing

Do note that this is a non-comprehensive list and more entries will be added to it as and when we get hold of them. Moreover, to be precise, we have listed the codenames for each device:

daumier, matisse, rubens, xaga(pro/in)

How to Flash TWRP Recovery in Vendor Boot Partition

  1. First off, download and extract Android SDK Platform Tools on your PC.
  2. After that, unlock the bootloader on your device [if not done so already].twrp vendor boot
  3. Then enable USB Debugging on your device and connect it to your PC.
  4. Now download the recovery IMG for your device from a trusted website.
  5. Then rename it to recovery.img and transfer it to the platform-tools folder.
  6. Now open the Command Prompt inside the platform-tools folder.
  7. Then type in the below command to boot your device to Fastboot Mode:
    adb reboot bootloader

    twrp vendor boot

  8. Now type in the below command to flash the recovery to the vendor_boot partition:
    fastboot flash vendor_boot_ab recovery.img
  9. If the above command doesn’t work, then you’ll have to manually flash it to both slots:
    fastboot flash vendor_boot_a recovery.img
    fastboot flash vendor_boot_b recovery.img
  10. Or you could combine both the partition commands into one single as shown below:
    fastboot flash vendor_boot_ab recovery.img
  11. Finally, use the below command to boot your device to the newly flashed recovery:
    fastboot reboot recovery

That’s it. These were the steps to flash the TWRP Recovery in the vendor boot partition. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


Share: