Skip to content

Commit 4a7ab44

Browse files
committed
feat(sdk): 补充 getService() 原始服务获取方法
1 parent e376ce9 commit 4a7ab44

4 files changed

Lines changed: 18 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ NPatch Remote API 不是另一套 Xposed API,也不取代 libxposed。
3131

3232
```kotlin
3333
dependencies {
34-
implementation(files("libs/npatch-remote-api-v1.0.0-release.aar"))
34+
implementation(files("libs/npatch-remote-api-v1.0.1-release.aar"))
3535
implementation("io.github.libxposed:interface:102.0.0")
3636
}
3737
```
@@ -79,7 +79,7 @@ AAR 输出在 `build/outputs/aar/`。也可以运行 `publishReleasePublicationT
7979

8080
## 兼容性
8181

82-
- SDK:`1.0.0`
82+
- SDK:`1.0.1`
8383
- libxposed interface:`102.0.0`
8484
- NPatch:`1.0.7` 或更高
8585
- Android:API 28+(Android 9 或更高)

README_EN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Download the AAR from [Releases](https://github.com/7723mod/NPatch-Remote-API/re
3131

3232
```kotlin
3333
dependencies {
34-
implementation(files("libs/npatch-remote-api-v1.0.0-release.aar"))
34+
implementation(files("libs/npatch-remote-api-v1.0.1-release.aar"))
3535
implementation("io.github.libxposed:interface:102.0.0")
3636
}
3737
```
@@ -79,7 +79,7 @@ The AAR is written to `build/outputs/aar/`. You can also run `publishReleasePubl
7979

8080
## Compatibility
8181

82-
- SDK: `1.0.0`
82+
- SDK: `1.0.1`
8383
- libxposed interface: `102.0.0`
8484
- NPatch: `1.0.7` or newer
8585
- Android: API 28+ (Android 9 or higher)

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group = "top.nkbe.npatch"
7-
version = "1.0.0"
7+
version = "1.0.1"
88

99
android {
1010
namespace = "top.nkbe.npatch.remote"

src/main/java/top/nkbe/npatch/remote/NPatchRemoteClient.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,19 @@ public boolean deleteRemoteFile(String name) throws RemoteException {
161161
return service.deleteRemoteFile(name);
162162
}
163163

164+
/**
165+
* Returns the underlying {@link IXposedService} binder interface.
166+
*
167+
* <p>Allows advanced module apps to invoke standard API 102 methods directly (such as
168+
* querying scope, inspecting running targets, or requesting hot reload) over the
169+
* authenticated Manager connection.</p>
170+
*
171+
* @return the raw {@link IXposedService} instance
172+
*/
173+
public IXposedService getService() {
174+
return service;
175+
}
176+
164177
private static IBinder requestBinder(
165178
Context context,
166179
String method,

0 commit comments

Comments
 (0)