This repository hosts a template zygisk module for developers to start developing Zygisk modules. Before developing Zygisk modules, you should first check out the official documentation for Magisk Modules. Do not fork this repository for your new module; either manually clone this repository.
- The canonical URL of the latest public Zygisk API is module/jni/zygisk.hpp.
- The header file is self documented; directly refer to the header source code for all Zygisk API details.
- Magisk is committed to maintain backwards compatibility forever. That is, whenever there is an API update for Zygisk in a newer Magisk version, Magisk can always load Zygisk modules built for an older Zygisk API.
- If you do not need the new features introduced in newer API versions, it's perfectly fine to stay on the older API version to maintain maximum compatibility.
Zygisk API | Minimal Magisk | Diff |
---|---|---|
v4 | 26000 | v3..v4 |
v3 | 24300 | v2..v3 |
v2 | 24000 | N/A |
1. Cargo NDK
2. Python3
Test on Python 3.11.4
cargo install cargo-ndk
For more Details, view https://github.com/bbqsrc/cargo-ndk
rustup target add armv7-linux-androideabi # for arm
rustup target add i686-linux-android # for x86
rustup target add aarch64-linux-android # for arm64
rustup target add x86_64-linux-android # for x86_64
python build.py
And then, artifact will put in out
Only Support API of Version 2
Some codes from Zygisk-Rust-bindings
Some codes from Zygisk-Rust-ModuleTemplate