在内存中快速加载 dex。
众所周知,在 Android(尤其是在 ART 模式下)运行时加载未优化的 Dex 文件会花费很长时间。如果您的应用使用 MultiDex 或 PluginFramework,您会发现这个问题很难忍受。
<dependency>
<groupId>com.github.asLody</groupId>
<artifactId>turbodex</artifactId>
<version>1.1.0</version>
<type>pom</type>
</dependency>compile 'com.github.asLody:turbodex:1.1.0'要使用 TurboDex,首先将 library 添加到您的项目中, 然后在您的应用程序中写入以下代码:
@Override
protected void attachBaseContext(Context base) {
TurboDex.enableTurboDex();
super.attachBaseContext(base);
}
在您启用TurboDex 后,无论您在哪里加载 Dex,它都会快速返回。 示例:
new DexClassLoader(...):
DexFile.loadDex(...);http://note.youdao.com/share/?id=28e62692d218a1f1faef98e4e7724f22&type=note#/ 然而,不知道这篇笔记的作者为什么会认为Hook 模块是我实现的。 我并没有为 Substrate 部分的模块起名,而是采用了原名:MSHook。 而且, 我还保留了所有 Cydia 源码的头部协议声明,你知道源码的出处,却没有意识到这一点吗?
QQ 群: 535498571
暂无开放 Issues,或尚未同步最近议题。