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
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