custom signed [stock recovery image] unbootable
custom signed [stock recovery image] unbootable
(15-01-2024, 11:50 PM)Gargoyle Some devices have a problem with --flag 2,Sorry for the late reply indeed. I am next to the give up on this thing. I tried generate new vbmeta.img with --flag 0 and no luck. I dig into the dm-verity implement detail, avbtool articles and even the source code for the data structure definition. I compared origin recovery image and vbmeta image with my self-signed one via hex editor.
try leaving the original value of --flag 0
(14-01-2024, 10:25 PM)albert_ein my device:
Alcatel 1S 2019
Android 9.0 (Pie)
Unisoc SC9863 (28nm)
Models: 5024D_EEA
..
(02-02-2024, 01:29 PM)maxpayne(14-01-2024, 10:25 PM)albert_ein my device:
Alcatel 1S 2019
Android 9.0 (Pie)
Unisoc SC9863 (28nm)
Models: 5024D_EEA
..
There are several possible break points but lets go one at a time.
recovery-from-boot.p should be renamed to recovery-from-boot.bak else the recovery you flashed will always get replaced by stock recovery which will fail the signature test since its different from what you'd originally flashed
(02-02-2024, 03:11 PM)albert_ein recovery failed to boot
dead end again
(06-02-2024, 08:30 AM)maxpayne(02-02-2024, 03:11 PM)albert_ein recovery failed to boot
dead end again
So this is what you need to do.
You said your boot.img ramdisk is empty so you need to rely on recovery.img and recovery partition to root.
The goal is to:
1. Gain temporary root
2. rename recover-from-boot.p to recover-from-boot.bak
The mistake you're making is that you are rebooting the phone to home screen after flashing the signed recovery. By doing this, recovery-from-boot.p is replacing the recovery.img you flashed with stock recovery. This will fail because your vbmeta is expecting a different recovery from stock recovery.
What you need to do is immediately after flashing your recovery.img in fastboot, you power off the phone using this trick https://www.hovatek.com/forum/thread-32663.html . Once its off, you then use button combo to try booting into recovery mode. The phone will boot normally instead (it won't enter recovery mode) and you should have root.
Once you confirm root access, you use a system app to go to /system and rename rename recover-from-boot.p to recover-from-boot.bak
I hope this is clear