Bootloop after patching stock boot.img with latest APatch using kptools-linux (Poco M3 / Android 13)
Please check before submitting an issue | 在提交 Issue 前请检查
- [x] I searched the issues and didn't found anything relevant | 我已经搜索了 Issues 列表,没有发现于本问题相关内容
- [x] If the patch fails or the image cannot be booted after flashing the new boot.img, visit KernelPatch to clarify your doubts | 修复失败或刷入修补后镜像不能启动,请前往 KernelPatch 提问
- [x] I will upload the bug report file in APatch Manager > Settings > Send logs | 我会上传 Bug Report 文件从 APatch 管理器 > 设置 > 发送日志
- [x] I know how to reproduce the issue, which might not be specific to my device | 我知道如何重新复现这个问题
Version requirements | 版本要求
- [x] I'm using the latest CI version of APatch Manager | 我正在使用最新 CI 版本
Bug description | 描述 Bug
After patching my stock boot.img using APatch CLI tools (kptools-linux + kpimg-android + magiskboot), the device always enters a bootloop after flashing the patched image. I followed the official documentation step by step, and the patch process completes successfully without errors, but the system cannot boot afterward
Reproduce method | 复现方法
Extract boot.img from Pixel Experience ROM (Android 13).
Run magiskboot unpack boot.img.
Rename the kernel to kernel-b.
Run the following command:
./kptools-linux -p --image kernel-b --skey "iyad2013" --kpimg kpimg-android --out kernel
Run ./magiskboot repack boot.img to generate new-boot.img.
Flash with fastboot:
fastboot flash boot new-boot.img
Device reboots into bootloop.
Expected behavior
Device should boot normally with APatch root active (visible via Apatch Manager or shell).
Actual behavior
Device immediately reboots into a bootloop after flashing the patched image.
Device name
Poco M3 (citrus)
OS version
Android 13 – Pixel Experience 2024 ROM
APatch version
Latest stable release (11107) and CLI patching method with kptools-linux
Kernel version
4.19.225-lilium+
KernelPatch version
kpimg-android from latest APatch CLI package
Expected behavior | 预期行为
...
Actual behavior | 实际行为
...
Screenshots | 截图
...
Logs | 日志
No response
Device name | 设备名称
poco m3
OS version | 系统版本
android 13 custom rom pixel exprience 2024 citrus
APatch version | APatch 版本
11107
Kernel version | 内核版本
4.19
KernelPatch version | KernelPatch 版本
...
Other information | 其他信息
Magisk was previously installed, but removed before flashing.
Verified kernel supports CONFIG_KALLSYMS=y.
Tried both direct flashing and repack methods.
Bootloop occurs even after wiping caches and reflashing stock boot before patching.
SuperKey used: iyad2013.
Device enters bootloop right after showing boot logo.