TWRP: Porting for a/b partitioned devices
source link: https://forum.xda-developers.com/t/twrp-porting-for-a-b-partitioned-devices.4564987/#post-88561167
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
TWRP: Porting for a/b partitioned devices
Thanks in advance.
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.
Reactions: Kelexine
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.img30.4 MB · Views: 40
Reactions: ipdev
Jermaine22martinez
New member
Finally built twrp for this device after so many attempts, here is the file for those that owns this device too.
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
Reactions: Kelexine
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
I don't understand, please explain your issues so I can know how to help
Follow this guide https://forum.xda-developers.com/t/...hat-does-not-have-recovery-partition.4572311/
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
-
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.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 variantFinally built twrp for this device after so many attempts, here is the file for those that owns this device too.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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK