Xposed Module Kit

July 15, 2026 ยท View on GitHub

License: MIT

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 .class files (or a .jar) and emit ready-to-use hook stubs.
  • examples/bypass_root_check/ โ€“ worked example: neutralise common root-detection logic (File.exists on su, 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.