This is a clean, safe, and modular template for creating Android game mods using C++, ImGui, and Dobby Hook. It is designed to be a solid foundation, free of active cheat features (like ESP or Unlockers) that are easily detected.
- Clean Architecture: Separated Core, UI, SDK, and Utils.
- ImGui Integrated: Ready-to-use ImGui interface with touch support.
- Safe Hooking: Uses Dobby for safe function hooking (EGL, Input).
- Passive Logic: Focuses on reading data rather than writing (safer).
- Multi-Arch Support: Builds for
arm64-v8aandarmeabi-v7a. - Automated Builds: GitHub Actions workflow included.
- Fork or Push this repository to GitHub.
- Go to the Actions tab in your repository.
- Select the Build Android Mod Library workflow.
- If it doesn't run automatically on push, click Run workflow.
- Once finished, download the artifacts (
libMyCleanMod-so) from the workflow summary.
Prerequisites:
- Android NDK (r25c recommended) installed.
ndk-buildadded to your PATH orANDROID_NDK_HOMEenvironment variable set.
Windows:
Double-click build.bat or run it from Command Prompt.
Linux / macOS / Termux: Run the build script:
chmod +x build.sh
./build.shThe compiled .so files will be located in:
src/main/jni/libs/
- Extract the built
.sofile (e.g.,libMyCleanMod.so). - Inject it into the target game APK (put in
lib/arm64-v8a/orlib/armeabi-v7a/). - Load the library using
System.loadLibrary("MyCleanMod");in the game's Java code (e.g., inMainActivityorSplashActivity).
src/main/jni/main.cpp: Entry point, Thread management, and Hooks.src/main/jni/Config.h: Configuration.src/main/jni/Core/: Core logic (GameReader, Hooks).src/main/jni/UI/: ImGui menu drawing logic.src/main/jni/SDK/: Game structs and offsets.src/main/jni/Utils/: Utility functions (Logger, Obfuscation).