bmax121/KernelPatch
Patching and hooking the Linux kernel with only a stripped Linux kernel image.
1
Compatible with Termux's su.
1. The core algorithm for kpimg injection has changed. Some devices is now supported, and it's also possible that the upgrade may cause boot stock... 2. Early support for embed extra-item (such as KPM, executable, shell, android rc file ...) into kernel image. These extra-items will trigger under certain events. (current only support KPM triggered under "pre-kernel-init" event). And add another KPM control interface 3. Refactor the implementation of the 'su' command. This will fix some of the issues related to the 'su' command. 4. Add new SUPERCMD implementation to execute any command with superkey, this replaced the original KPATCH_SHADOW_PATH 5. Attempted to implement kpatch release from kernel, but it may not be reliable, so let's leave it to the next version.
1. Embed KPM support, Add KPM control API and CLI 2. Re-patch kernel image support 3. Start supporting KALLSYMS_ALL=n, but still some issues 4. bug fix 5. Note: SuperCall changes and is not forward compatible
📋 What's Changed
- kptools: Fix calculation of kpimg length by @sekaiacg in https://github.com/bmax121/KernelPatch/pull/30
- Readme: fixup Documentaion link by @Forenche in https://github.com/bmax121/KernelPatch/pull/32
- kptools: Add targetOS option to patch target system by @sekaiacg in https://github.com/bmax121/KernelPatch/pull/36
- kptools: Support compile kptools for windows target by @affggh in https://github.com/bmax121/KernelPatch/pull/37
- kpimg: Refix boot stuck cause by bti
- Full Changelog: https://github.com/bmax121/KernelPatch/compare/0.8.3...0.8.4
1. Module support, now you can inject arbitrary code into the kernel via KPM. This includes inline hooking, syscall hooking, and more. 2. Implementation of the root shell command in Android, which is "kp" by default, and its corresponding path is /system/bin/kp. Additionally, this path can also be dynamically modified. 3. Implementation of granting and revoking root permissions for Android UID. 4. Fixed some bugs, making it more stable now.
