Hovatek Forum DEVELOPMENT Android Can't flash boot.img magisk patched file unisoc
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


Can't flash boot.img magisk patched file unisoc

Can't flash boot.img magisk patched file unisoc

Cuynuz
Cuynuz
Cuynuz
Junior Member
23
28-02-2022, 07:57 AM
#1



I can't flash boot.img with magisk patched file.

i signed this image with avbtool (unisoc) and flashed custom signed vbmeta image!

[Image: cv960v.png]
hovatek
hovatek
hovatek
Administrator
49,570
01-03-2022, 10:24 AM
#2
(28-02-2022, 07:57 AM)Cuynuz I can't flash boot.img with magisk patched file.

i signed this image with avbtool (unisoc) and flashed custom signed vbmeta image!

Looks like boot wasn't properly signed. The command used in:
Share
1. Generating vbmeta
2. Signing the boot image

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Cuynuz
Cuynuz
Cuynuz
Junior Member
23
01-03-2022, 10:45 AM
#3
(01-03-2022, 10:24 AM)hovatek
(28-02-2022, 07:57 AM)Cuynuz I can't flash boot.img with magisk patched file.

i signed this image with avbtool (unisoc) and flashed custom signed vbmeta image!

Looks like boot wasn't properly signed. The command used in:
Share
1. Generating vbmeta
2. Signing the boot image

I'm generating vbmeta with command from this post : python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 2 --chain_partition boot:1:keys/key_boot.bin --chain_partition system:3:keys/key_system.bin --chain_partition vendor:4:keys/key_vendor.bin --chain_partition product:10:keys/key_product.bin --chain_partition dtbo:9:keys/key_dtbo.bin --chain_partition recovery:2:keys/hovatek.bin --chain_partition l_modem:5:keys/key_l_modem.bin --chain_partition l_ldsp:6:keys/key_l_ldsp.bin --chain_partition l_gdsp:7:keys/key_l_gdsp.bin --chain_partition pm_sys:8:keys/key_pm_sys.bin --chain_partition dtb:11:keys/key_dtb.bin --padding_size 16384 --output vbmeta-sign-custom.img

i'm sign boot image using this command : python avbtool add_hash_footer --image bootmagisk.img --partition_name boot --partition_size 36700160 --key hovatek.pem --algorithm SHA256_RSA4096
Gargoyle
Gargoyle
Gargoyle
Contributor
463
01-03-2022, 03:15 PM
#4
You need to extract
python avbtool extract_public_key --key hovatek.pem --output keys/hovatek.bin

and replace the key in vbmeta
" --chain_partition boot:1:keys/key_boot.bin" to --chain_partition boot:1:keys/hovatek.bin
This post was last modified: 01-03-2022, 03:15 PM by Gargoyle.
hovatek
hovatek
hovatek
Administrator
49,570
02-03-2022, 09:27 AM
#5



(01-03-2022, 10:45 AM)Cuynuz i'm sign boot image using this command : python avbtool add_hash_footer --image bootmagisk.img --partition_name boot --partition_size 36700160 --key hovatek.pem --algorithm SHA256_RSA4096

As @Gargoyle hinted, you need to replace the key for boot partition in your vbmeta creation command, not that of recovery partition

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Cuynuz
Cuynuz
Cuynuz
Junior Member
23
09-03-2022, 09:08 AM
#6
(02-03-2022, 09:27 AM)hovatek
(01-03-2022, 10:45 AM)Cuynuz i'm sign boot image using this command : python avbtool add_hash_footer --image bootmagisk.img --partition_name boot --partition_size 36700160 --key hovatek.pem --algorithm SHA256_RSA4096

As @Gargoyle hinted, you need to replace the key for boot partition in your vbmeta creation command, not that of recovery partition
I patched boot image with magisk + signed with vbmeta and flashed to phone, but can't boot to android stuck on splash logo
hovatek
hovatek
hovatek
Administrator
49,570
09-03-2022, 06:10 PM
#7
(09-03-2022, 09:08 AM)Cuynuz As @Gargoyle hinted, you need to replace the key for boot partition in your vbmeta creation command, not that of recovery partition
I patched boot image with magisk + signed with vbmeta and flashed to phone, but can't boot to android stuck on splash logo
[/quote]

1. What version of magisk manager are you using?
2. Does your boot.img contain ramdisk (info is displayed in magisk manager)

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Cuynuz
Cuynuz
Cuynuz
Junior Member
23
09-03-2022, 09:25 PM
#8
(09-03-2022, 06:10 PM)hovatek
(09-03-2022, 09:08 AM)Cuynuz As @Gargoyle hinted, you need to replace the key for boot partition in your vbmeta creation command, not that of recovery partition
I patched boot image with magisk + signed with vbmeta and flashed to phone, but can't boot to android stuck on splash logo

1. What version of magisk manager are you using?
2. Does your boot.img contain ramdisk (info is displayed in magisk manager)
[/quote]

1. Magisk version is 24201 (Canary)
2. My boot.img contain ramdisk.
hovatek
hovatek
hovatek
Administrator
49,570
11-03-2022, 01:49 PM
#9
(09-03-2022, 09:25 PM)Cuynuz 1. Magisk version is 24201 (Canary)
2. My boot.img contain ramdisk.

Just unpack and repack boot.img using AIK, sign then flash it. See if it boots fine
This post was last modified: 11-03-2022, 01:49 PM by hovatek.

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