TWRP: Porting for a/b partitioned devices

Search This thread

Kelexine

Member
Oct 7, 2022
49
7
dextterblog.blogspot.com
Please has anyone been able to port TWRP recovery for an a/b partitioned device, I mean devices that contains the recovery ramdisk in the boot.img and doesn't have a separate recovery partition.
Thanks in advance.
 

V0latyle

Forum Moderator
Staff member
Please has anyone been able to port TWRP recovery for an a/b partitioned device, I mean devices that contains the recovery ramdisk in the boot.img and doesn't have a separate recovery partition.
Thanks in advance.
What do you mean by "port"?

TWRP is supported on multiple A/B devices such as the Google Pixel. However, TWRP does not support the compression necessary to replace the stock recovery in the boot image, so TWRP may only be used "live", where the TWRP image is booted via command, instead of being flashed to /boot.
 
  • Like
Reactions: Kelexine

Kelexine

Member
Oct 7, 2022
49
7
dextterblog.blogspot.com
What do you mean by "port"?

TWRP is supported on multiple A/B devices such as the Google Pixel. However, TWRP does not support the compression necessary to replace the stock recovery in the boot image, so TWRP may only be used "live", where the TWRP image is booted via command, instead of being flashed to /boot.
By porting I mean changing some files, like copying the kernel and other device specific files to a prebuilt TWRP boot image for a related device.
For example I was able to do that for my android 8 based device and it worked flawlessly, but my problem is that I don't know how to do that for a/b partitioned devices cause my device is not officially supported and i can't seem to find any unofficial version for my device, plus my phone's kernel source and device are not published on GitHub or anywhere.

But some devices specially some Mediatek and Unisoc based devices don't support live boot and so it's necessary two flash it to the boot partition.

Finally built twrp for this device after so many attempts, here is the file for those that owns this device too.

NOTE: This file is for KG5j variant not KG5k or any other variant
 

Attachments

  • twrp.img
    30.4 MB · Views: 52
Last edited by a moderator:
  • Like
Reactions: ipdev

Kelexine

Member
Oct 7, 2022
49
7
dextterblog.blogspot.com
hello how is the twrp for tecno spark 8c it works fine for me but when I restart the phone it enters a bootloop to the recovery
After flashing run fastboot reboot, it will reboot directly to TWRP recovery enter your lock screen password to unecrypt data, then click on advanced install recovery ramdisk and select the twrp.img you downloaded or click on advanced then install current TWRP and let the recovery do the rest.
 

Top Liked Posts