APatch bootloop on Samsung Galaxy A07 (SM-A075F) running Android 15 / One UI 7.0 (Kernel image magic error / Security Error)

Open
#1,504 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
android

Research direction

Start with the APatch Manager boot.img patching flow and KernelPatch 0.12.2, then reproduce the Samsung Galaxy A07 flashing sequence using Odin or SamFw. Collect the APatch Manager bug report logs and compare patched and stock boot behavior; done means identifying the compatibility failure or documenting the required flashing parameters.

Written by the indexing model from the issue text.

Description

bug
Please check before submitting an issue | 在提交 Issue 前请检查
  • I searched the issues and didn't found anything relevant | 我已经搜索了 Issues 列表,没有发现于本问题相关内容
  • If the patch fails or the image cannot be booted after flashing the new boot.img, visit KernelPatch to clarify your doubts | 修复失败或刷入修补后镜像不能启动,请前往 KernelPatch 提问
  • I will upload the bug report file in APatch Manager > Settings > Send logs | 我会上传 Bug Report 文件从 APatch 管理器 > 设置 > 发送日志
  • I know how to reproduce the issue, which might not be specific to my device | 我知道如何重新复现这个问题
Version requirements | 版本要求
  • I'm using the latest CI version of APatch Manager | 我正在使用最新 CI 版本
Bug description | 描述 Bug

Device Info:
• Device: Samsung Galaxy A07 (SM-A075F)
• OS: Android 15 (One UI 7.0)
• Build Number: AP3A.240905.015.A2.A075FXXU1AYG5
• APatch Version Used: 11142 (0.12.2)
• Bootloader Status: Already Unlocked (OEM unlocking active)
Describe the bug:
• First, trying to patch the full stock AP_...tar.md5 file via APatch manager fails instantly with a kernel image magic error.
• To bypass this, I extracted the stock boot.img from the AP archive, transferred it to the device, and successfully patched it using APatch manager (setting a superuser password). It generated apatch_patched_...img.
• Since Samsung devices require .tar formatting, I repacked the patched boot image into a compatible .tar archive using 7-Zip.
• When flashing only the patched boot.tar (or combined with stock vbmeta.tar to bypass AVB check) via SamFw/Odin tools along with full stock firmware (BL, CP, CSC), the device enters a bootloop (reboots 4+ times automatically).
• Finally, the phone halts at a black recovery screen with a yellow warning triangle, stating a "Security Error" and forcing a factory reset. The only way to rescue the device is by reflashing 100% unpatched stock firmware.
Questions:
• Is there a known incompatibility with APatch and Samsung's Android 15 / One UI 7.0 kernel encryption structure on this chip?
• Does this device require specific AVB / vbmeta patching parameters that the manager doesn't currently apply to the individual boot.img?

Reproduce method | 复现方法
  1. Open the APatch application on the device.
  2. Attempt to perform the core action (Patching Kernel / Granting Root).
  3. The application encounters an error or freezes/crashes instantly.
  4. See error or unexpected termination.
Expected behavior | 预期行为

The patched boot.tar file should flash successfully via Odin/SamFw tools, allowing the Samsung Galaxy A07 to boot normally into the system with full APatch root privileges activated.

Actual behavior | 实际行为

The device enters an automatic bootloop (reboots 4+ times) and then gets stuck on a black recovery screen showing a "Security Error" with a yellow warning triangle, forcing a factory reset. It only boots if unpatched stock firmware is reflashed.

Screenshots | 截图

No response

Logs | 日志

No response

Device name | 设备名称

Samsung A07

OS version | 系统版本

Android 15

APatch version | APatch 版本

APatch_11142_166daa0_on_HEAD-release-signed.apk

Kernel version | 内核版本

5.10.233-android12-9-31702120

KernelPatch version | KernelPatch 版本

0.12.2

Other information | 其他信息

Please check compatibility with Samsung Galaxy A07 (SM-A075F) running Android 15 / One UI 7.0 (Kernel 5.10.233). The manager patches individual boot.img fine, but flashing it triggers a strict security bootloop error. No custom logs available as the device refuses to boot past recovery.

Dominant language
Kotlin
Stars
8.2k
Forks
809
Avg merge
7d 17h
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bmax121/APatch

All issues in bmax121/APatch

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.