Back to project page utwitterapi.
The source code is released under:
GNU General Public License
If you think the Android project utwitterapi listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.mariotaku.utwitterapi.hook; //w ww . ja va 2 s. co m import org.mariotaku.utwitterapi.util.AllowAllHostnameVerifierImpl; import de.robv.android.xposed.XC_MethodReplacement; import de.robv.android.xposed.XposedBridge; public class HttpsURLConnectionSetHostnameVerifierCallback extends XC_MethodReplacement { @Override protected Object replaceHookedMethod(final MethodHookParam param) throws Throwable { if (param.args != null && param.args.length == 1) { param.args[0] = new AllowAllHostnameVerifierImpl(); } return XposedBridge.invokeOriginalMethod(param.method, param.thisObject, param.args); } }