Update move-to-new-api documentation

This commit is contained in:
2022-08-07 01:08:55 +08:00
parent 79337b44b5
commit 0a6b9efd1c

View File

@@ -125,6 +125,8 @@ afterHook {
result = ...
// 删除返回值内容
resultNull()
// 向 Hook APP 抛出异常
Throwable("Fatal").throwToApp()
// 执行未经 Hook 的原始方法
method.invokeOriginal(...)
}
@@ -158,6 +160,8 @@ override fun afterHookedMethod(param: MethodHookParam) {
param.result = ...
// 删除返回值内容
param.result = null
// 向 Hook APP 抛出异常
param.throwable = Throwable("Fatal")
// 执行未经 Hook 的原始方法
XposedBridge.invokeOriginalMethod(param.method, param.thisObject, ...)
}