mirror of
https://github.com/Fuzion24/JustTrustMe.git
synced 2026-03-19 05:39:46 +08:00
Merge pull request #2 from 0xroot/master
Added support for Google Chrome & WebViews
This commit is contained in:
@@ -72,6 +72,19 @@ public class Main implements IXposedHookLoadPackage {
|
||||
param.args[0] = org.apache.http.conn.ssl.SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER;
|
||||
}
|
||||
});
|
||||
|
||||
// Trick for WebViews
|
||||
findAndHookMethod("android.webkit.WebViewClient", lpparam.classLoader, "onReceivedSslError", HostnameVerifier.class, new XC_MethodReplacement() {
|
||||
protected Object replaceHookedMethod(MethodHookParam param) throws Throwable {
|
||||
((android.webkit.SslErrorHandler)param.args[1]).proceed();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
findAndHookMethod("android.webkit.WebViewClient", lpparam.classLoader, "onReceivedError", HostnameVerifier.class,new XC_MethodReplacement() {
|
||||
protected Object replaceHookedMethod(MethodHookParam param) throws Throwable {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
class ImSureItsLegitTrustManager implements X509TrustManager {
|
||||
|
||||
Reference in New Issue
Block a user