Hovatek Forum DEVELOPMENT Android [Please help] After using avbtool to sign boot.img, ResearchDownload cannot be flash
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


[Please help] After using avbtool to sign boot.img, ResearchDownload cannot be flash

[Please help] After using avbtool to sign boot.img, ResearchDownload cannot be flash

omuitk
omuitk
omuitk
Newbie
3
15-07-2020, 01:56 PM
#1



avbtool add_hash_footer --image boot.img --partition_name boot --partition_size 36700160 --key testkey_rsa4096.pem --algorithm SHA256_RSA4096
After using the above command to sign boot.img, the official brush tool cannot be brushed. As far as I know, officials use public keys, but the boot.img I generated is completely different from officials. What's the question?

The official on the left of the picture, the one on the right is generated by me, but it is different from the boot.bin extracted by vbmeta. Isn't the official testkey_rsa4096.pem used?
.png
QQ图片20200715205128.png
Size: 211.87 KB / Downloads: 18
This post was last modified: 15-07-2020, 01:58 PM by omuitk.
X3non
X3non
X3non
Recognized Contributor
22,062
16-07-2020, 09:05 AM
#2
(15-07-2020, 01:56 PM)omuitk avbtool add_hash_footer --image boot.img --partition_name boot --partition_size 36700160 --key testkey_rsa4096.pem --algorithm SHA256_RSA4096
After using the above command to sign boot.img, the official brush tool cannot be brushed. As far as I know, officials use public keys, but the boot.img I generated is completely different from officials. What's the question?

The official on the left of the picture, the one on the right is generated by me, but it is different from the boot.bin extracted by vbmeta. Isn't the official testkey_rsa4096.pem used?

this testkey_rsa4096.pem ; is it the same private key you used when creating your custom vbmeta?
you should use the same private key you use when creating vbmeta to sign the boot.img then flash the vbmeta first before attempting to flash the signed boot
hovatek
hovatek
hovatek
Administrator
49,570
17-07-2020, 08:51 AM
#3
(15-07-2020, 01:56 PM)omuitk avbtool add_hash_footer --image boot.img --partition_name boot --partition_size 36700160 --key testkey_rsa4096.pem --algorithm SHA256_RSA4096
After using the above command to sign boot.img, the official brush tool cannot be brushed. As far as I know, officials use public keys, but the boot.img I generated is completely different from officials. What's the question?

The official on the left of the picture, the one on the right is generated by me, but it is different from the boot.bin extracted by vbmeta. Isn't the official testkey_rsa4096.pem used?

You should be using fastboot to flash this self-signed boot.img, not research download tool for many reasons.
BTW, you need to have signed the boot partition (when creating vbmeta) with a public key that corresponds to the private key used to sign the boot.img in your command above.
Read https://www.hovatek.com/forum/thread-32674.html and take note of the requirements part

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
omuitk
omuitk
omuitk
Newbie
3
17-07-2020, 10:30 AM
#4
(16-07-2020, 09:05 AM)X3non
(15-07-2020, 01:56 PM)omuitk avbtool add_hash_footer --image boot.img --partition_name boot --partition_size 36700160 --key testkey_rsa4096.pem --algorithm SHA256_RSA4096
After using the above command to sign boot.img, the official brush tool cannot be brushed. As far as I know, officials use public keys, but the boot.img I generated is completely different from officials. What's the question?

The official on the left of the picture, the one on the right is generated by me, but it is different from the boot.bin extracted by vbmeta. Isn't the official testkey_rsa4096.pem used?

this testkey_rsa4096.pem ; is it the same private key you used when creating your custom vbmeta?
you should use the same private key you use when creating vbmeta to sign the boot.img then flash the vbmeta first before attempting to flash the signed boot
this testkey_rsa4096.pem,Using the public key,Because I see that vbmeta is also generated by the public key
omuitk
omuitk
omuitk
Newbie
3
17-07-2020, 10:32 AM
#5



(17-07-2020, 08:51 AM)hovatek
(15-07-2020, 01:56 PM)omuitk avbtool add_hash_footer --image boot.img --partition_name boot --partition_size 36700160 --key testkey_rsa4096.pem --algorithm SHA256_RSA4096
After using the above command to sign boot.img, the official brush tool cannot be brushed. As far as I know, officials use public keys, but the boot.img I generated is completely different from officials. What's the question?

The official on the left of the picture, the one on the right is generated by me, but it is different from the boot.bin extracted by vbmeta. Isn't the official testkey_rsa4096.pem used?

You should be using fastboot to flash this self-signed boot.img, not  research downloadtool for many reasons.
BTW, you need to have signed the boot partition (when creating vbmeta) with a public key that corresponds to the private key used to sign the boot.img in your command above.
Read https://www.hovatek.com/forum/thread-32674.html and take note of the requirements part
fastboot should unlock bootloader,but research download Is not needed
hovatek
hovatek
hovatek
Administrator
49,570
17-07-2020, 01:26 PM
#6
(17-07-2020, 10:32 AM)omuitk fastboot should unlock bootloader,but research download Is not needed

In theory, yes but have you considered that the phone might get bricked when you force-flash a modified file on a locked bootloader?

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram