Hovatek Forum DEVELOPMENT Android Errors in verification of the contents of a patched magisk boot.img
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


Errors in verification of the contents of a patched magisk boot.img

Errors in verification of the contents of a patched magisk boot.img

_Jaqb_
_Jaqb_
_Jaqb_
Junior Member
21
07-12-2020, 09:34 AM
#1



I can't verify the contents of a patched magisk boot.img (on Linux & Windows).

In terminal (Python 2) I got message:
Code:

Given image does not look like a vbmeta image.

or (Python 3)

Code:

File "avbtool", line 411
    b = 2L**32
         ^
SyntaxError: invalid syntax

The contents of a stock boot.img in avbtool is ok...

When I ignore it and sign patched boot.img I got this message:
Code:

avbtool: Image size of 36700160 exceeds maximum image size of 36630528 in order to fit in a partition size of 36700160

Is patched img wrong because of new version Magisk Canary/Magisk?
hovatek
hovatek
hovatek
Administrator
49,570
07-12-2020, 12:37 PM
#2
(07-12-2020, 09:34 AM)_Jaqb_ I can't verify the contents of a patched magisk boot.img (on Linux & Windows).

In terminal (Python 2) I got message:
Code:

Given image does not look like a vbmeta image.

or (Python 3)

Code:

File "avbtool", line 411
    b = 2L**32
         ^
SyntaxError: invalid syntax

The contents of a stock boot.img in avbtool is ok...

When I ignore it and sign patched boot.img I got this message:
Code:

avbtool: Image size of 36700160 exceeds maximum image size of 36630528 in order to fit in a partition size of 36700160

Is patched img wrong because of new version Magisk Canary/Magisk?

Try using avbtool in Linux instead of Windows
Get info for stock boot.img and paste the info here

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
_Jaqb_
_Jaqb_
_Jaqb_
Junior Member
21
07-12-2020, 04:34 PM
#3
(07-12-2020, 12:37 PM)hovatek
(07-12-2020, 09:34 AM)_Jaqb_ I can't verify the contents of a patched magisk boot.img (on Linux & Windows).

In terminal (Python 2) I got message:
Code:

Given image does not look like a vbmeta image.

or (Python 3)

Code:

File "avbtool", line 411
    b = 2L**32
         ^
SyntaxError: invalid syntax

The contents of a stock boot.img in avbtool is ok...

When I ignore it and sign patched boot.img I got this message:
Code:

avbtool: Image size of 36700160 exceeds maximum image size of 36630528 in order to fit in a partition size of 36700160

Is patched img wrong because of new version Magisk Canary/Magisk?

Try using avbtool in Linux instead of Windows
Get info for stock boot.img and paste the info here

Info for stock boot.img:

Code:

Footer version:           1.0
Image size:               36700160 bytes
Original image size:      17016832 bytes
VBMeta offset:            17018880
VBMeta size:              2112 bytes
--
Minimum libavb version:   1.0
Header Block:             256 bytes
Authentication Block:     576 bytes
Auxiliary Block:          1280 bytes
Algorithm:                SHA256_RSA4096
Rollback Index:           0
Flags:                    0
Release String:           'avbtool 1.1.0'
Descriptors:
    Hash descriptor:
      Image Size:            17016832 bytes
      Hash Algorithm:        sha256
      Partition Name:        boot
      Salt:                  c2e63955b2be65fb301246a850b837aec4ccb4e772cf0c65decc7a78eed5a1c6
      Digest:                e9c387018c85e6960d397bb838904d8d60ba8e5e6f46c55382e120d81463035d
      Flags:                 0
hovatek
hovatek
hovatek
Administrator
49,570
08-12-2020, 06:20 AM
#4
(07-12-2020, 04:34 PM)_Jaqb_ Info for stock boot.img:

Code:

Footer version:           1.0
Image size:               36700160 bytes
Original image size:      17016832 bytes
VBMeta offset:            17018880
VBMeta size:              2112 bytes
--
Minimum libavb version:   1.0
Header Block:             256 bytes
Authentication Block:     576 bytes
Auxiliary Block:          1280 bytes
Algorithm:                SHA256_RSA4096
Rollback Index:           0
Flags:                    0
Release String:           'avbtool 1.1.0'
Descriptors:
    Hash descriptor:
      Image Size:            17016832 bytes
      Hash Algorithm:        sha256
      Partition Name:        boot
      Salt:                  c2e63955b2be65fb301246a850b837aec4ccb4e772cf0c65decc7a78eed5a1c6
      Digest:                e9c387018c85e6960d397bb838904d8d60ba8e5e6f46c55382e120d81463035d
      Flags:                 0

What version of magisk did you patch your boot with?

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
_Jaqb_
_Jaqb_
_Jaqb_
Junior Member
21
08-12-2020, 10:23 AM
#5



(08-12-2020, 06:20 AM)hovatek
(07-12-2020, 04:34 PM)_Jaqb_ Info for stock boot.img:

Code:

Footer version:           1.0
Image size:               36700160 bytes
Original image size:      17016832 bytes
VBMeta offset:            17018880
VBMeta size:              2112 bytes
--
Minimum libavb version:   1.0
Header Block:             256 bytes
Authentication Block:     576 bytes
Auxiliary Block:          1280 bytes
Algorithm:                SHA256_RSA4096
Rollback Index:           0
Flags:                    0
Release String:           'avbtool 1.1.0'
Descriptors:
    Hash descriptor:
      Image Size:            17016832 bytes
      Hash Algorithm:        sha256
      Partition Name:        boot
      Salt:                  c2e63955b2be65fb301246a850b837aec4ccb4e772cf0c65decc7a78eed5a1c6
      Digest:                e9c387018c85e6960d397bb838904d8d60ba8e5e6f46c55382e120d81463035d
      Flags:                 0

What version of magisk did you patch your boot with?

The newest.

Magisk Manager 8.0.3.314
Magisk 20.4 and beta 21.1

and next

Magisk Canary (app-debug.apk) from Github
hovatek
hovatek
hovatek
Administrator
49,570
09-12-2020, 06:00 AM
#6
(08-12-2020, 10:23 AM)_Jaqb_ The newest.

Magisk Manager 8.0.3.314
Magisk 20.4 and beta 21.1

and next

Magisk Canary (app-debug.apk) from Github

zip your stock boot and all magisk patched boots (ensure to name each properly), upload and drop the link here so I take a look

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
_Jaqb_
_Jaqb_
_Jaqb_
Junior Member
21
09-12-2020, 08:59 AM
#7
(09-12-2020, 06:00 AM)hovatek
(08-12-2020, 10:23 AM)_Jaqb_ The newest.

Magisk Manager 8.0.3.314
Magisk 20.4 and beta 21.1

and next

Magisk Canary (app-debug.apk) from Github

zip your stock boot and all magisk patched boots (ensure to name each properly), upload and drop the link here so I take a look

link to stock and magisk boot:
http://www.mediafire.com/file/m6dtkenkm8...T.zip/file

---
update:

in magisk_install_log Magisk Canary in the end I see:
Code:

rm: can't stat '/data/unencrypted/magisk': Permission denied
rm: can't stat '/cache/magisk': Permission denied
rm: can't stat '/mnt/vendor/persist/magisk': Permission denied
boot_patch.sh: line 574: magisk: Permission denied

How to use a different version of Magisk Canary/Magisk? Does anyone know? (without TWRP)
This post was last modified: 09-12-2020, 11:30 AM by _Jaqb_.
hovatek
hovatek
hovatek
Administrator
49,570
16-12-2020, 04:07 PM
#8
(07-12-2020, 09:34 AM)_Jaqb_
Code:

avbtool: Image size of 36700160 exceeds maximum image size of 36630528 in order to fit in a partition size of 36700160

This is due to the size of the image. Unpack and repack the image using Android image kitchen. This will reduce the size and should allow you sign

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