PinNaCode / magiskboot_build

unofficial magiskboot build system (and port) targeting multi-platform (does not require NDK)
Apache License 2.0
150 stars 23 forks source link

Problems with repacking #14

Closed kartun83 closed 10 months ago

kartun83 commented 10 months ago

Hi. I'm trying to repack boot from this image: https://sourceforge.net/projects/evolution-x/files/cupid/14/

specifically : evolution_cupid-ota-uq1a.231205.015-12181801-OFFICIAL.zip

commandline: ./magiskboot unpack original_boot.img

output:

Parsing boot image: [original_boot.img]
HEADER_VER      [4]
KERNEL_SZ       [37468820]
RAMDISK_SZ      [2086108]
OS_VERSION      [14.0.0]
OS_PATCH_LEVEL  [2023-12]
PAGESIZE        [4096]
CMDLINE         []
KERNEL_FMT      [raw]
RAMDISK_FMT     [lz4_legacy]
unexpected ASN.1 DER tag: expected SEQUENCE, got APPLICATION [1] (primitive)
VBMETA

The device is able to boot with this boot.img, so may be there is a problem with the tool ?

ghost commented 10 months ago

hi there. could you please explain what is the problem you had encountered while repacking this image? also please use debug builds and tell me your OS version.

also, i have tested to repack the boot image from the rom zip you linked on my Linux PC, it seems to work, and the output is identical to the Magisk's official android build of magiskboot.

ghost commented 10 months ago

if you mean the issue is that "unexpected ASN.1 DER tag" line, it also happens with official android build of magiskboot binary, i guess just ignore it.