NusantaraHook-Lsposed
This project is created as a modular framework for learning and experimenting with hooking on Android using LSPosed, DexKit (native helper), and the Xposed API. This documentation is intended for developers who want to understand the architecture, how to build, the code structure, and contribution practices — while still emphasizing ethical and legal use.
NusantaraHook-Lsposed is a modular collection for creating LSPosed modules that:
- Are easily extensible — plug-and-play architecture for adding per-package hooks.
- Use modern Kotlin for readability and maintainability.
- Allow integration of native libraries (e.g.,
libdexkit.so) to assist with runtime method/class discovery. - Provide patterns for error handling, logging, and hook isolation to remain stable at runtime.
Important note (legal & ethics)
Use this project only for educational purposes, internal debugging, testing applications you have access rights to, or legitimate security research. It is forbidden to use the techniques in this repo to hijack, break into, or violate the privacy/security of others. The project owner is not responsible for misuse.
- Modular architecture: easy to add new
*Hookfor target packages. - Simple entrypoint loader (
MainHook) with package → module mapping. - Optional native integration (
System.loadLibrary("dexkit")) with a safe fallback on failure. - Logging via
XposedBridge.logand internal logging patterns. - Example hook templates for target applications:
AnimePlayHook,ThunderVpnHook. - Structure that supports local testing and debugging via logcat.
- Android Studio (latest stable version recommended)
- JDK 17+ (JDK 21/23 recommended)
- Android Gradle Plugin matching the project's Gradle version
- Android device for testing (rooted + Magisk + LSPosed for LSPosed testing)
- Kotlin 1.8+ (adjust to project configuration)
Security reminder: testing hooking on third-party applications without permission may violate the law or TOS. Always test on your own applications or with consent.
-
Clone the repo:
git clone https://github.com/username/NusantaraHook-Lsposed.git cd NusantaraHook-Lsposed -
Open in Android Studio: File → Open → select the NusantaraHook-Lsposed folder.
-
Sync Gradle, make sure gradle.properties and the JDK path are correct.
-
Build the APK
./gradlew :app:assembleRelease
-
Install to device After a successful build, install the module .apk to the Android device that already has LSPosed installed.
- Make sure the device is rooted with Magisk + LSPosed.
- Install NusantaraHook-Lsposed.apk as an LSPosed module.
- Enable the module for the target application
- Other applications can be added via code.
⚠️ Disclaimer⚠️ Warning This project is created for educational and research purposes only. Use for breaking into applications, bypassing security, or illegal purposes is strictly prohibited. The developer is not responsible for any misuse.