Skip to content

MagiskBoot removes Samsung SignerVer02 metadata causing "Secure Check Fail: boot.img" on SM-T290 #9938

Description

@alejandrourrea0810

Device: Samsung Galaxy Tab A 8.0 2019 (SM-T290) GTOWIFI
Android version: 15
LineageOS 22.2
Build: lineage-22.2-20260701-nightly-gtowifi
Magisk version name: 30.7
Magisk version code: 30700

Bootloader:
Unlocked

Download Mode reports:

OEM LOCK: OFF (U)
KG STATUS: Checking
AP SWREV: K5 S5

Problem

After patching the stock LineageOS boot.img with Magisk and flashing it, the device immediately fails before Android starts.

The bootloader shows:

Secure Check Fail: boot.img

The original unmodified LineageOS boot.img boots normally.

The patched image was created directly from the original boot.img using Magisk ("Select and Patch a File") without any manual modifications.

The device never reaches Android after flashing the patched image, therefore no magisk.log can be generated.

No Magisk modules are installed.


Investigation

I compared the original boot image with the Magisk patched image.

The original image contains both Samsung metadata strings:

SEANDROIDENFORCE
SignerVer02

The patched image still contains:

SEANDROIDENFORCE

However, the Samsung-specific SignerVer02 metadata is completely missing.

Verified offsets:

Original boot.img

SEANDROIDENFORCE @ 15054848
SignerVer02      @ 15054864
AVB0             @ 15056896
AVBf             @ 67108800

Magisk patched image

SEANDROIDENFORCE @ 14968832
SignerVer02      NOT FOUND
AVB0             @ 14970880
AVBf             @ 67108800

Relevant information

The LineageOS maintainer recently added Samsung-specific metadata generation for this exact device:

LineageOS/android_device_samsung_gtowifi@2bb8adf

Commit title:

gtowifi: add support for all bootloaders by adding Samsung metadata

The commit message explains that newer Samsung Wingtech bootloaders require the SignerVer02 metadata even when the bootloader is unlocked.


Question

Could MagiskBoot preserve or recreate this Samsung metadata when rebuilding boot.img?

Based on my investigation, the original boot image contains the Samsung SignerVer02 metadata while the Magisk patched image does not.

Could the removal (or failure to preserve) this metadata explain why the bootloader rejects the patched image with:

Secure Check Fail: boot.img

Files

Original boot image:

boot.zip

Magisk patched boot image:

magisk_patched-30700_RayaJ.zip

Screenshot of the bootloader error:

Secure Check Fail Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedIssue confirmed to exist and the reason is knownenhancementNew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions