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; /*from ww w. j a v a2s.com*/ import org.mariotaku.utwitterapi.util.TrustAllSSLSocketFactory; import de.robv.android.xposed.XC_MethodReplacement; import de.robv.android.xposed.XposedBridge; public class HttpsURLConnectionSetSSLSocketFactoryCallback extends XC_MethodReplacement { @Override protected Object replaceHookedMethod(final MethodHookParam param) throws Throwable { if (param.args != null && param.args.length == 1) { param.args[0] = TrustAllSSLSocketFactory.getSocketFactory(); } return XposedBridge.invokeOriginalMethod(param.method, param.thisObject, param.args); } }