mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
Update api-exception documentation
This commit is contained in:
@@ -1225,6 +1225,33 @@ The supported types of `YukiHookModulePrefs` are only `String`, `Set<String>`, `
|
||||
|
||||
The supported types of `YukiHookDataChannel` are the types restricted by `Intent.putExtra`, please pass in the supported types.
|
||||
|
||||
::: danger IllegalStateException
|
||||
|
||||
loadApp/loadZygote/loadSystem/withProcess method need a "**NAME**" param
|
||||
|
||||
:::
|
||||
|
||||
**Abnormal**
|
||||
|
||||
The variable array variable parameter that needs to be filled is missing in `loadApp`, `loadZygote`, `loadSystem`, `withProcess`.
|
||||
|
||||
> The following example
|
||||
|
||||
```kotlin
|
||||
// <Scenario 1>
|
||||
loadApp()
|
||||
// <Scenario 2>
|
||||
loadZygote()
|
||||
// <Scenario 3>
|
||||
loadSystem()
|
||||
// <Scenario 4>
|
||||
withProcess()
|
||||
```
|
||||
|
||||
**Solution**
|
||||
|
||||
Please see the usage in `PackageParam` to use this function correctly.
|
||||
|
||||
###### exception
|
||||
|
||||
::: danger IllegalStateException
|
||||
|
@@ -1191,6 +1191,35 @@ Key-Value type **TYPE** is not allowed
|
||||
|
||||
::: danger IllegalStateException
|
||||
|
||||
loadApp/loadZygote/loadSystem/withProcess method need a "**NAME**" param
|
||||
|
||||
:::
|
||||
|
||||
**异常原因**
|
||||
|
||||
在 `loadApp`、`loadZygote`、`loadSystem`、`withProcess` 中缺少了需要填写的可变数组变量参数。
|
||||
|
||||
> 示例如下
|
||||
|
||||
```kotlin
|
||||
// <情景 1>
|
||||
loadApp()
|
||||
// <情景 2>
|
||||
loadZygote()
|
||||
// <情景 3>
|
||||
loadSystem()
|
||||
// <情景 4>
|
||||
withProcess()
|
||||
```
|
||||
|
||||
**解决方案**
|
||||
|
||||
请查看 `PackageParam` 中的用法正确地使用此功能。
|
||||
|
||||
###### exception
|
||||
|
||||
::: danger IllegalStateException
|
||||
|
||||
YukiHookDataChannel cannot used in zygote
|
||||
|
||||
:::
|
||||
|
Reference in New Issue
Block a user