Filed to patch boot.img
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
filed to patch boot.img
Reproduce method | 复现方法
- open the app
- click on install icon
- click
Select a boot image to patch - select
boot.imgfile - enter the
SuperKey - click start button
Expected behavior | 预期行为
I expected the operation to be successful.
Actual behavior | 实际行为
filed to patch boot.img
Screenshots | 截图
No response
Logs | 日志
****************************
APatch Boot Image Patcher
****************************
****************************
- Backing boot.img
- Patching kernel
+ ./kptools -p -i kernel.ori -S MM32663266 -k kpimg -o kernel
[-] /home/runner/work/KernelPatch/KernelPatch/tools/symbol.c:77/fillin_map_symbol(); no symbol memblock_alloc[+] kernel image_size: 0x022ca000
[+] kernel uefi header: false
[+] kernel load_offset: 0x00080000
[+] kernel kernel_size: 0x02ba3000
[+] kernel page_shift: 12
[+] new kernel image ...
[+] linux_banner 1: Linux version 4.14.186-perf-gf8d872e9279c (builder@pangu-build-component-vendor-156865-2nk81-0hc61-ztnmq) (Android (6443078 based on r383902) clang version 11.0.1 (https://android.googlesource.com/toolchain/llvm-project b397f81060ce6d701042b782172ed13bee898b79), LLD 11.0.1 (/buildbot/tmp/tmp6_m7QH b397f81060ce6d701042b782172ed13bee898b79)) #1 SMP PREEMPT Fri Sep 22 09:56:34 UTC 2023
[+] linux_banner offset: 0x1897c7f
[+] kernel version major: 4, minor: 14, patch: 186
[+] kallsyms_token_table offset: 0x01634a00
[+] endian: little
[+] kallsyms_token_index offset: 0x01634e00
[+] arm64 relocation kernel_va: 0xffffff8008081000
[+] arm64 relocation table range: [0x01b9b7d8, 0x020a7c80), count: 0x00035d87
[+] apply 0x00035d86 relocation entries
[+] kallsyms_markers range: [0x01633f00, 0x016349d0), count: 0x00000159
[?] find approximate kallsyms_offsets error
[+] approximate kallsyms_addresses range: [0x013621d8, 0x0140e180) count: 0x000157f5
[?] mismatch relo applied, subsequent operations may be undefined
[+] kallsyms_names offset: 0x0140f300
[?] can't find kallsyms_num_syms, try: 0x000157eb
[?] no linux_banner, CONFIG_KALLSYMS_ALL=n
[+] names table vector index: 0x00000012, pid_vnr index: 0x0000115e
[+] pid_vnr verfied sp, insn: 0x910003fd
[+] vectors index: 18, offset: 0x00101000
[+] pid_vnr offset: 0x002d355c
[+] kallsyms_addresses offset: 0x013677d8
[+] kernel base address: 0xffffff8008081000
[+] layout kimg: 0x0,0x22ca000, kpimg: 0x22ca000,0x2c100, extra: 0x22f6100,0x80, end: 0x22f6180, start: 0x2ba3000
[+] kpimg version: c02
[+] kpimg compile time: 14:48:49 Nov 11 2025
[+] kpimg config: android, release
[+] tcp_init_sock: type: T, offset: 0x01308cb4
[+] map_start: 0x1308cc0, max_size: 0x800
[+] kallsyms_lookup_name: type: T, offset: 0x003a87b8
[+] printk: type: T, offset: 0x0034064c
[+] memblock_reserve: type: T, offset: 0x004c002c
[+] memblock_free: type: T, offset: 0x004bff58
[+] memblock_mark_nomap: type: T, offset: 0x004c0490
[?] no symbol: memblock_phys_alloc_try_nid
[+] memblock_virt_alloc_try_nid: type: T, offset: 0xbe01d96e
+ patch_rc=1
+ set +x
- Patch kernel error: 1
Write patched boot.img failed
****************************
Device name | 设备名称
Redmi note 11 SE
OS version | 系统版本
android 13 / miui 14
APatch version | APatch 版本
166daa0 (11142)
Kernel version | 内核版本
4.14.186-pref-gf8d872e9279c
KernelPatch version | KernelPatch 版本
i dont know
Other information | 其他信息
boot.img file md5:
55c65cf312bc503fe05ae79d687872ec
sha256:
5a3662be5a80ef40a2dc7b4e220961aeb72dee66951ca7b197ab0abc965d410d
sha512:
ddfee6e6fa9e75fd48b29e742c6f14f89b186cb612db00f467ecaa183cc8e56bd719d078ab14a2c8d59f45157ba59034e7e93c6752ff4a99fb37ceb9ed0e92d8
This is the first time I've tried to install the app.
getting the same or a similar issue
****************************
****************************
APatch Boot Image Patcher
****************************
- Backing boot.img
- Patching kernel
+ ./kptools -p -i kernel.ori -S 92110124vD -k kpimg -o kernel
[-] /home/runner/work/KernelPatch/KernelPatch/tools/symbol.c:47/get_symbol_offset_exit(); no symbol tcp_init_sock
[+] kernel image_size: 0x021ef800
[+] kernel uefi header: false
[+] kernel load_offset: 0x00080000
[+] kernel kernel_size: 0x02dc2000
[+] kernel page_shift: 12
[+] new kernel image ...
[+] linux_banner 1: Linux version 4.14.186-g7c18952d3c68 ([email protected]) (Android (6443078 based on r383902) clang version 11.0.1 (https://android.googlesource.com/toolchain/llvm-project b397f81060ce6d701042b782172ed13bee898b79), LLD 11.0.1 (/buildbot/tmp/tmp6_m7QH b397f81060ce6d701042b782172ed13bee898b79)) #1 SMP PREEMPT Wed May 25 19:55:45 WIB 2022
[+] linux_banner offset: 0xfe000f
[+] kernel version major: 4, minor: 14, patch: 186
[+] kallsyms_token_table offset: 0x0174ca00
[+] endian: little
[+] kallsyms_token_index offset: 0x0174ce00
[+] arm64 relocation kernel_va: 0xffffff8008082000
[+] arm64 relocation table range: [0x01b07658, 0x01fa00c0), count: 0x0003106f
[+] apply 0x0003106e relocation entries
[+] kallsyms_markers range: [0x0174c200, 0x0174c9a0), count: 0x000000f3
[?] find approximate kallsyms_offsets error
[+] approximate kallsyms_addresses range: [0x0160c620, 0x01684528) count: 0x0000efe1
[?] mismatch relo applied, subsequent operations may be undefined
[+] kallsyms_names offset: 0x01686700
[?] can't find kallsyms_num_syms, try: 0x0000efd7
[?] no linux_banner, CONFIG_KALLSYMS_ALL=n
[+] names table vector index: 0x00000012, pid_vnr index: 0x00000593
[+] pid_vnr verfied sp, insn: 0x910043fd
[+] vectors index: 18, offset: 0x00c1e800
[+] pid_vnr offset: 0x00c86990
[+] kallsyms_addresses offset: 0x01669e00
[+] kernel base address: 0xffffff80080bd600
[+] layout kimg: 0x0,0x21ef800, kpimg: 0x21f0000,0x2c100, extra: 0x221c100,0x80, end: 0x221c180, start: 0x2dc2000
[+] kpimg version: c02
[+] kpimg compile time: 14:48:49 Nov 11 2025
[+] kpimg config: android, release
[+] tcp_init_sock: type: T, offset: 0xe167a70e
+ patch_rc=1
+ set +x
- Patch kernel error: 1
Write patched boot.img failed
****************************
CrDroid (android 13) by timjosten. KernelSU is installed but the KSU app stopped detecting it for some reason. Redmi note 8 Pro (begonia)
in addition, TWRP installer also fails for a similar issue
so... does anybody know anything about this issue?
@bmax121 Please solve this problem