Magiskboot Error: 'unexpected ASN.1 DER tag' When Unpacking boot.img
in Post with 0 comment

I'm encountering an issue while attempting to install Magisk on my device using the magiskboot method. While following the guide at https://kernelsu.org/guide/installation.html#using-magiskboot-on-Android-devices, I'm getting stuck at the unpacking stage.

Here's the error message I'm seeing:

shiba:/data/local/tmp $ ./magiskboot unpack boot.img
Parsing boot image: [boot.img]
HEADER_VER      [4]
KERNEL_SZ       [16481280]
RAMDISK_SZ      [0]
PAGESIZE        [4096]
CMDLINE         []
KERNEL_FMT      [lz4_legacy]
[boot/sign.rs:273] unexpected ASN.1 DER tag: expected SEQUENCE, got APPLICATION [1] (primitive)
VBMETA

The boot.img comes from https://dl.google.com/dl/android/aosp/shiba-bp1a.250305.019-factory-4401ad97.zip.

Here's my device information:
* Device: shiba
* Android Version: 15
* Magisk Version Name: Magisk (1e3edb88) (28103)
* Magisk Version Code: 28103

Can anyone help me understand this error and how to resolve it?

The article has been posted for too long and comments have been automatically closed.