mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
Added baseClassLoader in YukiHookBridge
This commit is contained in:
@@ -120,6 +120,15 @@ object YukiHookBridge {
|
|||||||
/** 当前 Xposed 模块自身 [Resources] */
|
/** 当前 Xposed 模块自身 [Resources] */
|
||||||
internal var moduleAppResources: YukiModuleResources? = null
|
internal var moduleAppResources: YukiModuleResources? = null
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当前环境中使用的 [ClassLoader]
|
||||||
|
*
|
||||||
|
* 装载位于 (Xposed) 宿主环境与模块环境时均使用当前 DEX 内的 [ClassLoader]
|
||||||
|
* @return [ClassLoader]
|
||||||
|
* @throws IllegalStateException 如果 [ClassLoader] 为空
|
||||||
|
*/
|
||||||
|
internal val baseClassLoader get() = classOf<YukiHookAPI>().classLoader ?: error("Operating system not supported")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取当前 Xposed 模块自身动态 [Resources]
|
* 获取当前 Xposed 模块自身动态 [Resources]
|
||||||
* @return [YukiModuleResources] or null
|
* @return [YukiModuleResources] or null
|
||||||
|
Reference in New Issue
Block a user