An Android il2cpp hooking module, driven by Zygisk.
- Android Studio 2024.2.2 or later
- A rooted arm64-v8a or armeabi-v7a Android device
- Your rooting solution has Zygisk support
- (optional) Open
gradle.properties
, change module properties if you want to give it another name or description or etc. - Go to
module/src/main/cpp/includes/main.hpp
, replaceNTD_TARGET_APP
definition with your target app's id. Optionally, you can change module's logcat tag by replacingNTD_MODULE_NAME
with your own tag name. - (optional) Go to
module/build.gradle.kts
, select abuildArch
for your module. - Write your own code (perhaps mainly in
module/src/main/cpp/il2cppHook.cpp
). - Build the project. If you are not using an Android Studio GUI run the following command in your terminal.
./gradlew :app:assembleDebug
# or
./gradlew :app:assembleRelease
Output module file is located at module/build/outputs/${MODULE_NAME}.zip
.
- zygisk-module-sample: https://github.com/topjohnwu/zygisk-module-sample
- xDL: https://github.com/hexhacking/xDL
- ShadowHook: https://github.com/bytedance/android-inline-hook
- UnityResolve.hpp: https://github.com/issuimo/UnityResolve.hpp