A library for building Java only Zygisk/Riru modules.
MIT License
A library for building Java only Zygisk/Riru modules.
pluginManagement {
repositories {
// ... other repositories
maven(url = "https://maven.kr328.app/releases")
}
}
class Entrypoint {
// ZygoteLoader will invoke this method after injected to target process
public static void main() {
// ... your code
}
}
com.github.kr328.gradle.zygote
pluginplugins {
id("com.android.application") // required
id("com.github.kr328.gradle.zygote") version "3.1" // apply plugin
// ... other plugins
}
zygote {
// initial inject packages
packages(ZygoteLoader.PACKAGE_SYSTEM_SERVER) // initial inject to system_server
// riru related properties
riru {
id = "your module id"
name = "your module name"
author = "your name"
description = "your module description"
entrypoint = "your entrypoint class qualified name" // see also step 2
archiveName = "generated zip archive name" // optional
updateJson = "your updateJson property" // optional, see also https://topjohnwu.github.io/Magisk/guides.html#moduleprop
}
// zygisk related properties
zygisk {
// same with riru
}
}
Build module
Run gradle task <module>:assembleRelease
Pick generated zip from <module>/build/outputs/magsisk