Xposed Module Kit
July 15, 2026 ยท View on GitHub
A batteries-included scaffold for building Xposed / LSPosed modules on Android, plus a small set of command-line helpers for discovering hook targets.
๐ง Contact / ่็ณปๆนๅผ: qtphone.com
Features
- Gradle build configuration for Xposed / LSPosed modules (api 82 โ 93).
- Reusable hook templates under
src/hooks/:HookTemplateโ abstract base for before/after hooks.MethodHookโ hook a single method by name + signature (defensive).PackageHookโ scope hooks to a target package.
src/utils/Python tools for offline analysis:logger.pyโ colored console logger.class_scanner.pyโ parse compiled.classfiles (or a.jar) and emit ready-to-use hook stubs.
examples/bypass_root_check/โ worked example: neutralise common root-detection logic (File.exists onsu,Runtime.exec,Build.TAGS).
Project layout
xposed-module-kit/
โโโ build.gradle / settings.gradle / gradle.properties
โโโ app/ # Android module project
โ โโโ build.gradle
โ โโโ src/main/java/com/qtphone/xposedkit/
โ โโโ MainHook.java # IXposedHookLoadPackage entry
โ โโโ XKitLogger.java
โ โโโ hooks/ # HookTemplate / MethodHook / PackageHook
โโโ examples/bypass_root_check/ # Root-detection bypass example
โโโ src/utils/ # Python dev tooling
โโโ logger.py
โโโ class_scanner.py
Building the module
# Requires Android SDK + JDK 17
./gradlew assembleRelease
# install the generated APK, then enable the module in LSPosed.
Using class_scanner.py
cd src/utils
python class_scanner.py path/to/decompiled/classes --filter com.example --emit-hooks
This prints every non-constructor method and a copy-pasteable
MethodHook.hookMethod(...) line for each.
Disclaimer
Provided for security research, education and lawful testing on devices and apps you own or are authorised to test. The authors are not responsible for misuse.