Skip to content
AndroidReverser-TestPublic

About

适用于安卓平台的内核级无痕注入框架

Resources

Stars

84 stars

Watchers

1 watching

Forks

Repository files navigation

KCLF

Kernel Controlled Loading Framework — Android ARM64 / KernelPatch KPM

KCLF 通过内核 task_work 借用目标线程,在 EL0 执行 SO 的构造与析构函数。 默认 manual 后端映射并重定位 ELF;可显式选择 linker 后端调用目标 bionic loader。 manual 可自动加载 /data/local/tmp/ 下可读 SO,详见后备文件与兼容性。

KCLF runs SO constructors and finalizers in a target ARM64 thread through kernel task_work. It provides a manual ELF loader and an explicit bionic linker backend. Manual loading can stage readable /data/local/tmp/ payloads automatically; see backing files and compatibility.

下载 / Releases · 文档 / Documentation · 使用 / Usage

快速开始 / Quick start

在 Linux/WSL 中使用 GNU Make、AArch64 GCC/binutils 和 KernelPatch 源码构建: Build on Linux/WSL with GNU Make, AArch64 GCC/binutils and KernelPatch sources:

make KP_DIR=/path/to/KernelPatch TARGET_COMPILE=aarch64-linux-gnu-
make test
adb push kclf.kpm /data/local/tmp/kclf.kpm
adb shell /data/local/tmp/kpatch "$KEY" kpm load /data/local/tmp/kclf.kpm
adb shell /data/local/tmp/kpatch "$KEY" kpm ctl0 kclf probe

KEY 是本地设置的 KernelPatch superkey;测试 App、注入命令和卸载步骤见使用说明。 Set KEY locally to your KernelPatch superkey. See usage for the test app, injection and unloading.

适用范围 / Scope

  • 仅支持 ARM64 64 位目标和 Linux 5.x / 6.x;兼容性取决于运行时 ABI 和设备配置。 ARM64 targets on Linux 5.x / 6.x only; runtime ABI and device configuration still apply.
  • 1.6.7 实测为 Pixel 6 / Android 16 / Linux 6.1.134 / 4K;5.15 的记录属于历史版本。 其他内核及 16K/64K 真机未认证。 Current device validation covers Pixel 6 / Android 16 / Linux 6.1.134 / 4K; historical 5.15 results and host simulations do not certify other kernels or page sizes.
  • 需选择 x16 已无活跃值的协作边界,保持 manual 依赖驻留,并在 quiesce=idle 后卸载 KPM。 Use a cooperative boundary where x16 is dead, keep manual dependencies loaded, and drain before KPM unload.

文档 / Documentation

内容 / Topic 文档 / Guide
构建、命令、测试 App / Build, commands, test app USAGE
架构、实现和限制 / Architecture and limits IMPLEMENTATION
ELF TLS 回归 / ELF TLS regression TLS_TESTING
1.6.7 兼容性与验证 / Compatibility and validation COMPATIBILITY
版本与历史报告 / Changes and historical reports CHANGELOG · 文档目录 / Index

许可证 / License: GPL-2.0

About

适用于安卓平台的内核级无痕注入框架

Resources

Stars

84 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages