Skip to content

NPatch Remote API 1.0.1

Latest

Choose a tag to compare

@HSSkyBoy HSSkyBoy released this 30 Oct 09:55
· 3 commits to master since this release
5c7efd3

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): Added NPatchRemoteClient.probe(context): RemoteStatus returning READY, MANAGER_NOT_FOUND, MODULE_NOT_CONFIGURED, CONNECTION_TIMEOUT, DENIED, or UNKNOWN_ERROR for actionable developer guidance.
  • Version Compatibility Handshake (connectChecked): Added connectChecked() and connectCheckedAsync() with IncompatibleManagerException to guard against outdated NPatch Managers (< 1.0.7).
  • Process Lifecycle Cleanup: Passes a clientToken Binder 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 ContentObserver support 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+)