diff --git a/app/src/main/java/xyz/fycz/myreader/util/utils/PluginUtils.kt b/app/src/main/java/xyz/fycz/myreader/util/utils/PluginUtils.kt index 200bbf6..ba9e704 100644 --- a/app/src/main/java/xyz/fycz/myreader/util/utils/PluginUtils.kt +++ b/app/src/main/java/xyz/fycz/myreader/util/utils/PluginUtils.kt @@ -130,10 +130,7 @@ object PluginUtils { fun getPluginLoadInfo(): String { return try { - (MapleUtils.getStaticObjectField( - appLoader?.javaClass, - "pluginLoadInfo" - ) as StringBuilder).toString() + MapleUtils.callMethod(appLoader, "getPluginLoadInfo") as String } catch (e: Exception) { "" } diff --git a/dynamic/src/main/java/xyz/fycz/dynamic/AppLoadImpl.kt b/dynamic/src/main/java/xyz/fycz/dynamic/AppLoadImpl.kt index bacb399..7d7e247 100644 --- a/dynamic/src/main/java/xyz/fycz/dynamic/AppLoadImpl.kt +++ b/dynamic/src/main/java/xyz/fycz/dynamic/AppLoadImpl.kt @@ -130,4 +130,8 @@ class AppLoadImpl : IAppLoader { MapleUtils.log(e) } } + + fun getPluginLoadInfo(): String { + return allFixInfoSb.toString() + } }