-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VirtualApp无法运行开启InstantRun编译的应用 #2
Comments
平行空间与VA应用目录结构差异平行空间可以运行,且平行空间双开
而VA的目录结构
InstantRun相关资料 |
Instant Run的app如果要运行的话,需要做一下IO Redirect的操作。可以在本地修改一下代码就可以了。 2016-08-17 21:09 GMT+08:00 prife [email protected]:
|
还有一种解决方法: 具体的原理稍后解释。 |
可以在 private void handleBindApplication(AppBindData data) {
Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
public synchronized void start() {
new Exception().printStackTrace();
super.start();
}
});
+ IOHook.redirect("/data/data/"+data.appInfo.packageName+"/", data.appInfo.dataDir);
+ IOHook.hook();
IOHook.startDexOverride();
IOHook.hookNative();
ContextFixer.fixCamera();
......
} |
使用VS,打开InstantRun特性,生成一个helloworld应用,在VA中打开,即抛出异常,如下所示。
The text was updated successfully, but these errors were encountered: