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 w ww.j ava 2s. c o m import org.apache.http.conn.ssl.SSLSocketFactory; import org.mariotaku.utwitterapi.util.TrustAllApacheSSLSocketFactory; import de.robv.android.xposed.XC_MethodReplacement; import de.robv.android.xposed.XposedBridge; public class ApacheSSLSocketFactoryHook extends XC_MethodReplacement { private final SSLSocketFactory socketFactory = TrustAllApacheSSLSocketFactory.getSocketFactory(); @Override protected Object replaceHookedMethod(final MethodHookParam param) throws Throwable { return XposedBridge.invokeOriginalMethod(param.method, socketFactory, param.args); } }