From 864a39269896480e291ee0efbf26418a71e8edfd Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Tue, 29 Nov 2022 00:52:27 +0800 Subject: [PATCH] Update api-exception documentation --- docs-source/src/en/config/api-exception.md | 36 +++++++++++++++++++ docs-source/src/zh-cn/config/api-exception.md | 32 +++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/docs-source/src/en/config/api-exception.md b/docs-source/src/en/config/api-exception.md index cec17d09..4b41f729 100644 --- a/docs-source/src/en/config/api-exception.md +++ b/docs-source/src/en/config/api-exception.md @@ -734,6 +734,24 @@ Under normal circumstances, this error basically does not occur. After eliminati ::: danger loggerE +You cannot inject module resources into yourself + +::: + +**Abnormal** + +Use `injectModuleAppResources` in the (Xposed) Host environment (the Module App's own Xposed Environment) to inject the Module App's own resources into itself. + +**solution** + +Since the Module App itself can also be Hooked by itself, you cannot inject yourself into the Module App itself (you cannot recurse its own resources). + +If you must obtain the resources of the Module App itself, please use it directly without any other operations. + +###### exception + +::: danger loggerE + Activity Proxy initialization failed because got an Exception ::: @@ -839,6 +857,24 @@ registerModuleAppActivities(proxy = "com.demo.test.TestActivity") Please make sure that the `Activity` name you fill in really and effectively exists in the Host App, and the target `Class` extends `Activity`. +###### exception + +::: danger loggerE + +You cannot register Activity Proxy into yourself + +::: + +**Abnormal** + +Use `registerModuleAppActivities` to inject the Module App's own `Activity` into itself in the (Xposed) Host environment (the Module App's own Xposed Environment). + +**solution** + +Since the Module App itself can also be Hooked by itself, you cannot inject yourself into the Module App itself (you cannot recurse its own resources). + +If you must obtain the resources of the Module App itself, please use it directly without any other operations. + ## Blocking Exceptions > These exceptions will directly cause the app to stop running (FC), at the same time print `E` level logs on the console, and also cause the Hook process to "die". diff --git a/docs-source/src/zh-cn/config/api-exception.md b/docs-source/src/zh-cn/config/api-exception.md index 3d89dc69..79aa33ad 100644 --- a/docs-source/src/zh-cn/config/api-exception.md +++ b/docs-source/src/zh-cn/config/api-exception.md @@ -708,6 +708,22 @@ Failed to inject module resources into \[**RESOURCES**\] ::: danger loggerE +You cannot inject module resources into yourself + +::: + +**异常原因** + +在 (Xposed) 宿主环境 (模块自身的 Xposed 环境) 中使用 `injectModuleAppResources` 将模块自身的资源注入自身。 + +**解决方案** + +由于模块自身也可以被自身 Hook,但你并不可以在模块自身注入自己 (不能递归自身的资源),若你一定要获取模块自身的资源,请直接使用即可,无需任何其它操作。 + +###### exception + +::: danger loggerE + Activity Proxy initialization failed because got an Exception ::: @@ -804,6 +820,22 @@ registerModuleAppActivities(proxy = "com.demo.test.TestActivity") 请确认你填入的 `Activity` 名称真实有效地存在于宿主中,且目标 `Class` 继承于 `Activity`。 +###### exception + +::: danger loggerE + +You cannot register Activity Proxy into yourself + +::: + +**异常原因** + +在 (Xposed) 宿主环境 (模块自身的 Xposed 环境) 中使用 `registerModuleAppActivities` 将模块自身 `Activity` 注入自身。 + +**解决方案** + +由于模块自身也可以被自身 Hook,但你并不可以在模块自身注入自己 (不能递归自身的资源),若你一定要获取模块自身的资源,请直接使用即可,无需任何其它操作。 + ## 阻断异常 > 这些异常会直接导致 APP 停止运行(FC),同时会在控制台打印 `E` 级别的日志,还会造成 Hook 进程“死掉”。