[Development] Unisoc / Spreadtrum (SPD) auto TWRP recovery porter by Team Hovatek
[Development] Unisoc / Spreadtrum (SPD) auto TWRP recovery porter by Team Hovatek
(07-06-2021, 03:11 PM)X3non(07-06-2021, 05:56 AM)Pupstime _ Hi, so I try to port twrp for android 8.1.0 go edition. My phone has spreadtrum chipset. I use this tutorial here https://www.hovatek.com/forum/thread-32678.html to unlock bootloader and flash custom signed vbmeta. The problem is, after i port the twrp, I need to sign the twrp.img using the .pem isn't it? And to sign it, I need to use this command "python avbtool info_image --image twrp.img" to find out the partition size and algorithm before I use this command "python avbtool add_hash_footer --image twrp.img --partition_name recovery --partition_size ? --key hovatek.pem --algorithm ?". When I use this command "python avbtool info_image --image twrp.img" , it return this "avbtool: Given image does not look like a vbmeta image." I use hxd hex editor to find DHTB sign , it doesn't exist in the ported twrp.img. Is there any solution for that?
you're to use the info_image command on your stock recovery not on twrp, this will give you the needed info ; refer to https://www.hovatek.com/forum/thread-32674.html