A high-performance ART hooking framework for modern Android
面向现代 Android 的高性能 ART Hook 框架
Fork of JingMatrix/Vector · 基于上游 JingMatrix/Vector
Vector is a Zygisk module providing an ART hooking framework that maintains API consistency with the original Xposed. It is engineered on top of LSPlant to deliver a stable, native-level instrumentation environment.
The framework allows modules to modify system and application behavior in-memory. Because no APK files are modified, changes are non-destructive, easily reversible via reboot, and compatible across various ROMs and Android versions.
Note
KPM traceless backend (this fork). HookInline/UnhookInline route through a kernel-level
traceless-hook engine from stealth-poc (its
lib/kpmhook + lib/dbi are vendored into native/src/kpm): real libart functions are
intercepted via UXN page-fault region clones / SSOL executing from VMA-less ghost memory,
so the target's .text is never modified (CRC- and maps-scan-safe). It falls back to Dobby when
the KPM bridge is unarmed.
What this fork adds (beyond upstream JingMatrix/Vector):
- KPM traceless backend — inline hooks leave the target's
.textunmodified (see the note above). - fs-hide — kernel-side
statfs/mountinfofiltering for injected targets (reader-gated so root's own views stay truthful). - Ghost main-path — hook clones live in VMA-less "ghost" memory.
- Traceless unpacker — on-device DEX reconstruction via a KPM clone of ART's
FindClass(no.textpatch). - SSOL Java-layer hooks — single-step-out-of-line for dense framework JIT, keeping ART's PC→method map / stack unwind / GC / deopt intact.
Vector supports devices running Android 8.1 through Android 17 Beta.
Tip
This framework requires a recent installation of Magisk or KernelSU with Zygisk enabled.
- Download the latest release as a system module.
- Install the module via your root manager (Magisk / KernelSU).
- Ensure a Zygisk environment (e.g. NeoZygisk).
- Reboot the device.
- Access management settings via the system notification.
| Channel | Source |
|---|---|
| Stable Releases | GitHub Releases |
| Canary (CI) Builds | GitHub Actions |
| Upstream (JingMatrix) | JingMatrix/Vector |
Note
Debug builds are recommended for users encountering issues or performing troubleshooting. We encourage users to test CI builds to help identify bugs and accelerate development.
Caution
GitHub requires users to be logged in to download CI artifacts.
The link above is filtered to show only master branch builds.
Builds from Pull Requests are often unstable; stay on master unless you are helping with debugging.
- Troubleshooting: Consult the upstream guide before reporting bugs.
- Discussions: GitHub Discussions (upstream community).
- Localization: Crowdin.
- Issues for this fork: open issues on 1013503897/Vector.
Important
Bug reports are only accepted if they are based on the latest debug build.
Note
Vector supports the libxposed API via two git submodules: the module API and the service API.
A successful GitHub Actions build of the master branch indicates that Vector fully supports these APIs at those specific commits. Developers should check out the same commits as Vector.
- JingMatrix/Vector: upstream project this fork is based on.
- Magisk: foundation of Android customization.
- LSPlant: core ART hooking engine.
- XposedBridge: standard Xposed APIs.
- Dobby: inline hooking (fallback backend; this fork's primary is the KPM traceless engine).
- LSPosed: upstream source.
- xz-embedded: library decompression utilities.
- stealth-poc: KPM traceless-hook engine vendored into this fork.
Legacy and Historical Dependencies
Vector is licensed under the GNU General Public License v3.
Vector 是一个 Zygisk 模块,提供与原版 Xposed 保持 API 一致的 ART Hook 框架。它基于 LSPlant 构建,用于提供稳定的 native 级插桩环境。
模块可在内存中修改系统与应用行为;由于不改写 APK 文件,改动是非破坏性的,重启即可还原,并兼容多种 ROM 与 Android 版本。
Note
KPM 无痕后端(本 fork)。 HookInline / UnhookInline 走 stealth-poc 的内核级无痕 Hook 引擎(lib/kpmhook + lib/dbi 已 vendor 到 native/src/kpm):通过 UXN 缺页 region clones / SSOL,在无 VMA 的 ghost 内存中执行,不修改目标 .text。KPM bridge 未就绪时回退到 Dobby。
相对上游 JingMatrix/Vector,本 fork 额外提供:
- KPM 无痕后端 — 内联 Hook 不修改目标
.text(见上)。 - fs-hide — 内核侧对注入目标做
statfs/mountinfo过滤(按读者门控,root 自身视图保持真实)。 - Ghost 主路径 — Hook 克隆位于无 VMA 的 ghost 内存。
- 无痕脱壳 — 通过 ART
FindClass的 KPM 克隆在设备上重建 DEX(不打.text补丁)。 - SSOL Java 层 Hook — 针对密集 framework JIT 的 single-step-out-of-line,尽量保持 ART 的 PC→method、栈展开、GC、deopt 完整可用。
支持 Android 8.1 至 Android 17 Beta。
Tip
需要较新的 Magisk 或 KernelSU,并启用 Zygisk。
- 从 Release 下载最新系统模块。
- 用 Magisk / KernelSU 安装模块。
- 确保 Zygisk 环境可用(例如 NeoZygisk)。
- 重启设备。
- 通过系统通知进入管理界面。
| 渠道 | 来源 |
|---|---|
| 稳定版 | GitHub Releases |
| 金丝雀(CI) | GitHub Actions |
| 上游(JingMatrix) | JingMatrix/Vector |
Note
排查问题时建议使用 Debug 构建。也欢迎试 CI 构建,帮助发现缺陷。
Caution
下载 CI 产物需要 登录 GitHub。
上方链接已过滤为 master 分支构建。PR 构建往往不稳定;除非协助调试,请留在 master。
- 排障: 提交前可先参考 上游指南。
- 讨论: GitHub Discussions(上游社区)。
- 本地化: Crowdin。
- 本 fork 的 Issue: 请开在 1013503897/Vector。
Important
仅接受基于 最新 Debug 构建 的问题反馈。
Note
Vector 通过两个 git submodule 支持 libxposed API:module API 与 service API。
master 分支上成功的 GitHub Actions 构建,表示在对应 commit 上对这些 API 有完整支持。开发时请对齐 Vector 所用的相同 commit。
- JingMatrix/Vector:本 fork 的上游项目。
- Magisk:Android 定制基础。
- LSPlant:核心 ART Hook 引擎。
- XposedBridge:标准 Xposed API。
- Dobby:内联 Hook(回退后端;本 fork 主路径为 KPM 无痕引擎)。
- LSPosed:上游来源。
- xz-embedded:解压工具库。
- stealth-poc:本 fork 引入的 KPM 无痕 Hook 引擎。
历史依赖
Vector 采用 GNU General Public License v3。