Fix bug when replaceHook failed Hook APP crashed unconsciously and add hooked method return type checking

This commit is contained in:
2022-08-07 02:49:09 +08:00
parent 0a6b9efd1c
commit 1171f5125e
2 changed files with 26 additions and 3 deletions

View File

@@ -520,6 +520,8 @@ fun intercept()
!> 这将会禁止此方法执行并返回 `null`
!> 注意:例如 `Int``Long``Boolean` 常量返回值的方法一旦被设置为 null 可能会造成 Hook APP 抛出异常。
#### removeSelf [method]
```kotlin