-
Notifications
You must be signed in to change notification settings - Fork 282
Open
Description
The following two information are what I need to fix the problem
-
Your kernel image. boot.img is too big, you can use 'magiskboot unpack boot.img' to get kernel image (which named 'kernel' after unpack)
kernel.zip -
The real symbol informations corresponding to your boot.img or kernel
It can be obtained through the following two commands under root.
echo 1 > /proc/sys/kernel/kptr_restrict
cat /proc/kallsymsAfter flashed the boot image and entered the correct SuperKey in the manager, the manager still says "Authentication Failed".
And connect to a wifi will cause a crash.
kp(0.12.0) output log here
****************************
APatch Boot Image Patcher
****************************
- Backing boot.img
- Patching kernel
+ ./kptools -p -i kernel.ori -S testtest123 -k kpimg -o kernel
[+] kernel image_size: 0x02d5100c
[+] kernel uefi header: false
[+] kernel load_offset: 0x00080000
[+] kernel kernel_size: 0x0389d000
[+] kernel page_shift: 12
[+] new kernel image ...
[+] linux_banner 1: Linux version 4.14.141+ (compiler@comsz01078157) (Android (5484270 based on r353983c) clang version 9.0.3 (https://android.googlesource.com/toolchain/clang 745b335211bb9eadfa6aa6301f84715cee4b37c5) (https://android.googlesource.com/toolchain/llvm 60cf23e54e46c807513f7a36d0a7b777920b5881) (based on LLVM 9.0.3svn)) #1 SMP PREEMPT Tue Feb 15 12:32:17 CST 2022
[+] linux_banner offset: 0x1e5aca8
[+] kernel version major: 4, minor: 14, patch: 141
[+] kallsyms_token_table offset: 0x01e4bd00
[+] endian: little
[+] kallsyms_token_index offset: 0x01e4c100
[+] arm64 relocation kernel_va: 0xffffff8008081000
[+] arm64 relocation table range: [0x02554218, 0x02af9c60), count: 0x0003c3c3
[+] apply 0x0003c3c2 relocation entries
[+] kallsyms_markers range: [0x01e4af00, 0x01e4bc30), count: 0x000001a5
[?] find approximate kallsyms_offsets error
[+] approximate kallsyms_addresses range: [0x01c1ce98, 0x01cee4c8) count: 0x0001a2c6
[?] mismatch relo applied, subsequent operations may be undefined
[+] kallsyms_names offset: 0x01cef600
[?] can't find kallsyms_num_syms, try: 0x0001a2bc
[?] no linux_banner, CONFIG_KALLSYMS_ALL=n
[+] names table vector index: 0x00000012, pid_vnr index: 0x0000d165
[+] pid_vnr verfied sp, insn: 0x321c07e1
[+] vectors index: 18, offset: 0x0032f800
[+] pid_vnr offset: 0x01846128
[+] kallsyms_addresses offset: 0x01c2a318
[+] kernel base address: 0xffffff8008153b00
[+] layout kimg: 0x0,0x2d5100c, kpimg: 0x2d52000,0x2c110, extra: 0x2d7e110,0x80, end: 0x2d7e190, start: 0x389d000
[+] kpimg version: c00
[+] kpimg compile time: 08:19:52 Jun 9 2025
[+] kpimg config: android, release
[+] tcp_init_sock: type: t, offset: 0x01868eb8
[+] map_start: 0x1868ec0, max_size: 0x800
[+] kallsyms_lookup_name: type: t, offset: 0x01856244
[+] printk: type: t, offset: 0x018556a4
[+] memblock_reserve: type: t, offset: 0x0185be94
[+] memblock_free: type: t, offset: 0x0185be90
[+] memblock_mark_nomap: type: t, offset: 0x0185bea4
[?] no symbol: memblock_phys_alloc_try_nid
[+] memblock_virt_alloc_try_nid: type: t, offset: 0x018485e0
[+] memblock_alloc_try_nid: type: t, offset: 0x018485d8
[+] panic: type: t, offset: 0x01860b28
[+] rest_init: type: t, offset: 0x0184567c
[?] no symbol: kernel_init
[?] no symbol: report_cfi_failure
[?] no symbol: __cfi_slowpath_diag
[+] __cfi_slowpath: type: t, offset: 0x005f9be8
[+] copy_process: type: t, offset: 0x0038b920
[?] no symbol: avc_denied
[+] slow_avc_audit: type: t, offset: 0x0184b800
[+] input_handle_event: type: t, offset: 0x0135eb28
[+] root superkey hash: 626aa60100e38a2b0a8c9b3512116bfb3ff9db5b986b21b27c2989e011629435
[+] paging_init: type: t, offset: 0x020cc2d8
[+] patch done: kernel
+ patch_rc=0
+ set +x
- Repacking boot image
- Detected CONFIG_KALLSYMS_ALL is not set!
- APatch has patched but maybe your device won't boot.
- Make sure you have original boot image backup.
- Successfully Patched!
Output file is written to
/storage/emulated/0/Download/apatch_patched_11084_0.12.0_jinq.img
****************************
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels