Skip to content

Quick Start ​

Integrate YukiHook into your project.

Project Requirements ​

The project needs to be created using Android Studio or IntelliJ IDEA and must be an Android project with integrated Kotlin environment dependencies.

  • Android Studio (It is recommended to get the latest version from here)

  • IntelliJ IDEA (It is recommended to get the latest version from here)

  • Kotlin 1.9.0+, Gradle 8+, Java 17+, Android Gradle Plugin 8+

Configure Repositories ​

The dependencies of YukiHook are published in Maven Central and our public repository, you can use the following method to configure repositories.

We recommend using Kotlin DSL as the Gradle build script language.

Configure repositories in your project's build.gradle.kts.

kotlin
repositories {
    google()
    mavenCentral()
    // (Optional) You can add this URL to use our public repository
    // When Sonatype-OSS fails and cannot publish dependencies, this repository is added as a backup
    // For details, please visit: https://github.com/HighCapable/maven-repository
    maven("https://raw.githubusercontent.com/HighCapable/maven-repository/main/repository/releases")
    // (Optional) If you use yukihook-runtime-xposed82,
    // you need to add this URL to get the Xposed Framework API
    maven("https://api.xposed.info/") {
        content {
            includeGroup("de.robv.android.xposed")
        }
    }
}

Configure Java Version ​

Modify the Java version of Kotlin in your project's build.gradle.kts to 17 or above.

kotlin
android {
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }
}

tasks.withType<KotlinJvmCompile>().configureEach {
    compilerOptions {
        jvmTarget.set(JvmTarget.JVM_17)
    }
}

Features Overview ​

The project is divided into multiple modules. You can choose the module you wish to include as a dependency in your project, but be sure to include yukihook-core, yukihook-compiler and a base module.

Click the corresponding module below to view detailed feature descriptions.

Version Notes

Starting from 1.5.0, YukiHook started to be split into multiple modules and released with unified versioning. In most cases, you only need to pay attention to the same major version. You can also refer to the yukihook-bom below to use BOM for unified dependency version management.

For details, please see the changelog.

Choose a Base Module ​

The base module decides which Xposed API your Xposed module uses. Only one base module can exist in a build variant.

Base ModuleXposed APIVersionMin SDKUse Case
yukihook-runtime-libxposedlibxposed API101+26For newer Xposed frameworks that support the libxposed API
yukihook-runtime-xposed82Xposed Framework API8221For frameworks that only support the Xposed Framework API

Demo ​

You can find some examples here, view the corresponding demo projects to better understand how these features work and quickly pick the features you need.

  • demo-app: the host demo
  • demo-module-modern: the module demo using yukihook-runtime-libxposed
  • demo-module-legacy: the module demo using yukihook-runtime-xposed82

Install both the host and the module demo, and activate the module to test the hooked features in the host.

Released under the Apache-2.0 License