Repository navigation
NPatch Remote API 1.0.1
Lightweight Remote Store client that lets Xposed module apps safely communicate with NPatch Manager in Local mode.
What's Changed
- Maven Distribution (JitPack & GitHub Packages): You can now import the SDK directly via Gradle without manually copying AAR files.
- Diagnostic Probing (
probe): AddedNPatchRemoteClient.probe(context): RemoteStatusreturningREADY,MANAGER_NOT_FOUND,MODULE_NOT_CONFIGURED,CONNECTION_TIMEOUT,DENIED, orUNKNOWN_ERRORfor actionable developer guidance. - Version Compatibility Handshake (
connectChecked): AddedconnectChecked()andconnectCheckedAsync()withIncompatibleManagerExceptionto guard against outdated NPatch Managers (< 1.0.7). - Process Lifecycle Cleanup: Passes a
clientTokenBinder so NPatch Manager automatically releases cached service instances upon module process termination. - Client Caching: Caches client instances by package and authority to reduce IPC overhead.
- Realtime Preference Sync: Added
ContentObserversupport to keep remote preferences synchronized automatically.
Getting Started
Option 1: JitPack (Recommended)
// settings.gradle.kts
dependencyResolutionManagement {
repositories {
maven { url = uri("https://jitpack.io") }
}
}
// build.gradle.kts
dependencies {
implementation("com.github.7723mod:NPatch-Remote-API:v1.0.1")
implementation("io.github.libxposed:interface:102.0.0")
}Option 2: Direct AAR
Download npatch-remote-api-v1.0.1-release.aar below and place it in your libs/ folder:
dependencies {
implementation(files("libs/npatch-remote-api-v1.0.1-release.aar"))
implementation("io.github.libxposed:interface:102.0.0")
}Compatibility
- SDK:
1.0.1 - NPatch Manager:
>= 1.0.8 - libxposed interface:
102.0.0 - Android: API 28+ (Android 9+)