Requirements
Install OpenJDK 24, Android SDK 37, NDK30.0.14904198, CMake 3.22.1, Kotlin CLI, Go 1.26, Rust nightly, Git, and patch.
local.properties in the project root:
Prepare native dependencies
The repository does not use Git submodules. Fetch mihomo first; valid channels arealpha, meta, and smart.
cargo-ndk:
Build an APK
gradlew.bat on Windows. APKs are written to app/build/outputs/apk/<build-type>/. The default local Debug build targets arm64-v8a without bundled Geo data; the Release command builds every configured ABI and a universal APK.
For a signed release, add
release.keystore and signing.properties locally. Do not commit either file.