We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如果某个app是使用Instant Run的方式来启动,那么在onCreateApplication的时候会发生class not found的error。根据Instant Run的启动方式,它会去构建BootstrapApplication 其中会使用 com.android.tools.fd.runtime.Paths; com.android.tools.fd.runtime.AppInfo; 而在编译的过程中, public class AppInfo { public static String applicationId = "XXXXXX"; public static String applicationClass = "XXXXXX"; }
public final class Paths { public static String getMainApkDataDirectory(String applicationId) { return "/data/data/" + applicationId; } }
这里会去访问到/data/data/XXXXX/目录下的class dex文件,而不是Plugin构建的那个data目录。 看起来可以通过hook AppInfo的applicationClass和applicationId字段解决问题,但似乎不是最好的办法。
The text was updated successfully, but these errors were encountered:
通过native的iohook可以解决。
Sorry, something went wrong.
这个问题有具体解决方案吗、
小白求教
No branches or pull requests
如果某个app是使用Instant Run的方式来启动,那么在onCreateApplication的时候会发生class not found的error。根据Instant Run的启动方式,它会去构建BootstrapApplication
其中会使用
com.android.tools.fd.runtime.Paths;
com.android.tools.fd.runtime.AppInfo;
而在编译的过程中,
public class AppInfo {
public static String applicationId = "XXXXXX";
public static String applicationClass = "XXXXXX";
}
public final class Paths {
public static String getMainApkDataDirectory(String applicationId) {
return "/data/data/" + applicationId;
}
}
这里会去访问到/data/data/XXXXX/目录下的class dex文件,而不是Plugin构建的那个data目录。
看起来可以通过hook AppInfo的applicationClass和applicationId字段解决问题,但似乎不是最好的办法。
The text was updated successfully, but these errors were encountered: