Skip to content
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

hook checkServerTrusted error #65

Open
qq6r opened this issue Oct 19, 2022 · 0 comments
Open

hook checkServerTrusted error #65

qq6r opened this issue Oct 19, 2022 · 0 comments

Comments

@qq6r
Copy link

qq6r commented Oct 19, 2022

There is a segment of code in main.java:
findAndHookMethod(X509TrustManagerExtensions.class, "checkServerTrusted", X509Certificate[].class, String.class, String.class, new XC_MethodReplacement() {
@OverRide
protected Object replaceHookedMethod(MethodHookParam param) throws Throwable {
return param.args[0];
}
});
in colos 7.0(android 10),checkServerTrusted function return type is List,but param.args[0] is an array,and cannot work on my phone,after i changed it to "return Arrays.asList((X509Certificate[])param.args[0]);",it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant