Hovatek
  • Private Support
  • Blog
  • Home
Login Register Ask Question Hello There, Guest!
Login
Username:
Password: Lost Password?
 

OR

       

Hovatek is hiring: Application is open to residents of Lagos, Nigeria only! Click Here To Apply
Telegram Channel: Join the discussions @ t.me/Hovatek


  1. Hovatek Forum
  2. MOBILE PHONES HELP SECTION
  3. Android
Pages (2): « Previous 1 2
 
Thread Rating:
  • 0 Vote(s) - 0 Average

Thread Modes

Teclast M40 bricked after magisk boot.img

snow43
Enthusiastic Member
Posts: 7
Threads: 1
Joined: Dec 2020
Reputation: 0
#11

26-12-2020, 02:54 PM


Code:
python2 avbtool add_hash_footer --image magisk_patched_vYoFe.img --partition_name boot --partition_size 36700160 --key snow.pem --algorithm SHA256_RSA4096
avbtool: Image size of 36700160 exceeds maximum image size of 36630528 in order to fit in a partition size of 36700160.

This is the output of avbtool signing the canary patched image

Find
Reply
hovatek
Administrator
*******
Posts: 46,775
Threads: 1,179
Joined: Oct 2013
Reputation: 422
#12

26-12-2020, 02:56 PM
(26-12-2020, 02:54 PM)snow43 Wrote:  
Code:
python2 avbtool add_hash_footer --image magisk_patched_vYoFe.img --partition_name boot --partition_size 36700160 --key snow.pem --algorithm SHA256_RSA4096
avbtool: Image size of 36700160 exceeds maximum image size of 36630528 in order to fit in a partition size of 36700160.

This is the output of avbtool signing the canary patched image

Just unpack and repack the boot image using Android Image Kitchen. That'll reduce the size

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Website Find
Reply
hovatek
Administrator
*******
Posts: 46,775
Threads: 1,179
Joined: Oct 2013
Reputation: 422
#13

26-12-2020, 05:00 PM
The command to generate your vbmeta is

Code:
python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 2 --chain_partition boot:1:keys/snow.bin --chain_partition dtbo:5:keys/dtbo_key.bin --chain_partition recovery:2:keys/snow.bin --chain_partition socko:6:keys/socko_key.bin --chain_partition odmko:7:keys/odmko_key.bin --chain_partition vbmeta_system:3:keys/vbmeta_system_key.bin --chain_partition vbmeta_vendor:4:keys/vbmeta_vendor_key.bin --chain_partition l_modem:8:keys/l_modem_key.bin --chain_partition l_ldsp:9:keys/l_ldsp_key.bin --chain_partition l_gdsp:10:keys/l_gdsp_key.bin --chain_partition pm_sys:11:keys/pmsys_key.bin --chain_partition l_agdsp:12:keys/l_agdsp_key.bin --chain_partition l_cdsp:13:keys/l_cdsp_key.bin --padding_size 20480 --output vbmeta-sign-custom.img

For padding, use the Android vbmeta_pad.py (for 00 50 00 00) @ https://forum.hovatek.com/thread-32664.html

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
(This post was last modified: 26-12-2020, 05:03 PM by hovatek.)
Website Find
Reply
snow43
Enthusiastic Member
Posts: 7
Threads: 1
Joined: Dec 2020
Reputation: 0
#14

26-12-2020, 09:15 PM
Update: Got root access
guide for extracting keys/vbmeta https://forum.hovatek.com/thread-32664.html
vbmeta creation
Code:
python2 avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 0 --chain_partition boot:1:keys/snow.bin --chain_partition dtbo:5:keys/dtbo_key.bin --chain_partition recovery:2:keys/snow.bin --chain_partition socko:6:keys/socko_key.bin --chain_partition odmko:7:keys/odmko_key.bin --chain_partition vbmeta_system:3:keys/vbmeta_system_key.bin --chain_partition vbmeta_vendor:4:keys/vbmeta_vendor_key.bin --chain_partition l_modem:8:keys/l_modem_key.bin --chain_partition l_ldsp:9:keys/l_ldsp_key.bin --chain_partition l_gdsp:10:keys/l_gdsp_key.bin --chain_partition pm_sys:11:keys/pmsys_key.bin --chain_partition l_agdsp:12:keys/l_agdsp_key.bin --chain_partition l_cdsp:13:keys/l_cdsp_key.bin --padding_size 20480 --output vbmeta-sign-custom.img

Use rsa4096_vbmeta.pem from this link [ Login / Register to download free]
replace snow.bin with your own private key. Execute vbmeta_pad.py.

boot file creation
extract boot.img from stock .pac file https://onedrive.live.com/?authkey=%21AH...ion=locate
patch it with magisk canary, use android kitchen tool https://forum.xda-developers.com/attachm...1590190159 to unpack and repack to decrease image size
execute
Code:
python2 avbtool add_hash_footer --image boot_magisk_patched_repack.img --partition_name boot --partition_size 36700160 --key snow.pem --algorithm SHA256_RSA4096
Reboot to fastboot with adb reboot bootloader.
flash vbmeta with
Code:
fastboot flash vbmeta vbmeta-sign-custom.img
flash boot with
Code:
fastboot flash:raw boot boot.img
fastboot reboot
you should have root by now
Find
Reply
« Next Oldest | Next Newest »

Share

Share Tweet Share Share Pin
Pages (2): « Previous 1 2


Possibly Related Threads…
Thread / Author Replies Views Last Post
Magisk patched boot.img not root/work
darkrai_24
1
22
Last Post by X3non
28 minutes ago
bricked my teclast p80x
Vincenzo Galiano
1
104
Last Post by X3non
04-01-2021, 01:30 PM
X690B boot magisk bootloop
HamadaElhag
8
1,138
Last Post by Sandeepth
23-12-2020, 07:18 AM
[Solved] Teclast p20hd brick
teclastp2020hd
6
587
Last Post by iceze
08-12-2020, 10:49 PM
vivo y53 verified android boot v1.0 patch boot img
farooq16a
15
726
Last Post by hovatek
06-12-2020, 06:14 AM

  • View a Printable Version


Users browsing this thread: 1 Guest(s)
  1. Hovatek Forum
  2. MOBILE PHONES HELP SECTION
  3. Android

About

The Hovatek Forum is a free Tech. Support Forum. We provide solutions to all your device related problems and questions. We'll love to have you participate in discussions here whether you're a Newbie or Experienced.

         

Forum Team

Powered By MyBB. Crafted by EreeCorp.




Linear Mode
Threaded Mode