手机管家 v6.0.0版本的 MD5 值为:bf0bca2cb03f766137fe9ecf7383a634
以下内容为反编译后的 bfi.java 源代码,内容仅作参考
package tcs;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.text.TextUtils;
import com.tencent.kingkong.database.SQLiteDatabase;
import org.apache.http.HttpHost;
import org.apache.http.client.HttpClient;
import org.apache.http.client.params.HttpClientParams;
import org.apache.http.conn.params.ConnManagerParams;
import org.apache.http.conn.params.ConnPerRouteBean;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpProtocolParams;
public final class bfi {
private static String a = "10.0.0.172";
private static int b = 80;
private static String Rb = "10.0.0.200";
private static HttpClient eLU = null;
public static synchronized HttpClient Hv() {
String lowerCase;
HttpClient httpClient;
synchronized (bfi.class) {
if (eLU == null) {
BasicHttpParams basicHttpParams = new BasicHttpParams();
ConnManagerParams.setTimeout(basicHttpParams, 1000L);
ConnManagerParams.setMaxTotalConnections(basicHttpParams, 200);
ConnManagerParams.setMaxConnectionsPerRoute(basicHttpParams, new ConnPerRouteBean(20));
HttpConnectionParams.setConnectionTimeout(basicHttpParams, ke.YP);
HttpConnectionParams.setSoTimeout(basicHttpParams, ke.YP);
HttpProtocolParams.setUseExpectContinue(basicHttpParams, true);
HttpClientParams.setRedirecting(basicHttpParams, true);
HttpConnectionParams.setSocketBufferSize(basicHttpParams, 4096);
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
schemeRegistry.register(new Scheme("https", SSLSocketFactory.getSocketFactory(), 443));
eLU = new DefaultHttpClient(new ThreadSafeClientConnManager(basicHttpParams, schemeRegistry), basicHttpParams);
}
HttpClient httpClient2 = eLU;
Context b2 = bfk.Hw().b();
if (b2 == null) {
lowerCase = SQLiteDatabase.KeyEmpty;
} else if (b2.checkCallingOrSelfPermission("android.permission.ACCESS_NETWORK_STATE") == -1) {
lowerCase = SQLiteDatabase.KeyEmpty;
} else {
NetworkInfo activeNetworkInfo = ((ConnectivityManager) b2.getSystemService("connectivity")).getActiveNetworkInfo();
if (activeNetworkInfo == null) {
lowerCase = SQLiteDatabase.KeyEmpty;
} else if (activeNetworkInfo.getType() == 1) {
lowerCase = "wifi";
} else {
String extraInfo = activeNetworkInfo.getExtraInfo();
lowerCase = extraInfo == null ? SQLiteDatabase.KeyEmpty : extraInfo.toLowerCase();
}
}
if (!TextUtils.isEmpty(lowerCase)) {
if (lowerCase.equalsIgnoreCase(tmsdk.common.internal.utils.y.ctX) || lowerCase.equalsIgnoreCase(tmsdk.common.internal.utils.y.ctZ) || lowerCase.equalsIgnoreCase(tmsdk.common.internal.utils.y.cub)) {
httpClient2.getParams().setParameter("http.route.default-proxy", new HttpHost(a, b));
} else if (lowerCase.equalsIgnoreCase(tmsdk.common.internal.utils.y.cud)) {
httpClient2.getParams().setParameter("http.route.default-proxy", new HttpHost(Rb, b));
}
}
httpClient = eLU;
}
return httpClient;
}
}