Google Installer v1.0版本的 MD5 值为:cded706947e19d011b30ce3df4f280af
以下内容为反编译后的 e.java 源代码,内容仅作参考
package uAgent.commonsdk.stateless;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import com.android.leech.base.bugly.download.BuglyStrategy;
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.URL;
import java.net.URLConnection;
import java.security.SecureRandom;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLHandshakeException;
import org.apache.http.conn.ssl.SSLSocketFactory;
import uAgent.commonsdk.statistics.common.DeviceConfig;
import uAgent.commonsdk.statistics.common.MLog;
public class e {
private String a = "10.0.0.172";
private int b = 80;
private Context c;
public e(Context context) {
this.c = context;
}
private boolean a() {
NetworkInfo activeNetworkInfo;
String extraInfo;
Context context = this.c;
if (context == null || context.getPackageManager().checkPermission("android.permission.ACCESS_NETWORK_STATE", this.c.getPackageName()) != 0) {
return false;
}
try {
ConnectivityManager connectivityManager = (ConnectivityManager) this.c.getSystemService("connectivity");
if (DeviceConfig.checkPermission(this.c, "android.permission.ACCESS_NETWORK_STATE") && (activeNetworkInfo = connectivityManager.getActiveNetworkInfo()) != null && activeNetworkInfo.getType() != 1 && (extraInfo = activeNetworkInfo.getExtraInfo()) != null) {
if (!extraInfo.equals("cmwap") && !extraInfo.equals("3gwap")) {
if (extraInfo.equals("uniwap")) {
}
}
return true;
}
} catch (Throwable th) {
uAgent.commonsdk.proguard.b.a(this.c, th);
}
return false;
}
public boolean a(byte[] bArr, String str) {
URLConnection openConnection;
OutputStream outputStream;
if (bArr == null || str == 0) {
uAgent.commonsdk.statistics.common.e.a("walle", "[stateless] sendMessage, envelopeByte == null || path == null ");
} else {
OutputStream outputStream2 = 0;
try {
try {
if (a()) {
openConnection = new URL("https://plbslog.umeng.com/" + ((String) str)).openConnection(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(this.a, this.b)));
} else {
openConnection = new URL("https://plbslog.umeng.com/" + ((String) str)).openConnection();
}
str = (HttpsURLConnection) openConnection;
try {
HttpsURLConnection.setDefaultHostnameVerifier(SSLSocketFactory.STRICT_HOSTNAME_VERIFIER);
SSLContext sSLContext = SSLContext.getInstance("TLS");
sSLContext.init(null, null, new SecureRandom());
HttpsURLConnection.setDefaultSSLSocketFactory(sSLContext.getSocketFactory());
str.setRequestProperty("X-Umeng-UTC", String.valueOf(System.currentTimeMillis()));
str.setRequestProperty("Msg-Type", "envelope/json");
str.setConnectTimeout(BuglyStrategy.a.MAX_USERDATA_VALUE_LENGTH);
str.setReadTimeout(BuglyStrategy.a.MAX_USERDATA_VALUE_LENGTH);
str.setRequestMethod("POST");
str.setDoOutput(true);
str.setDoInput(true);
str.setUseCaches(false);
outputStream = str.getOutputStream();
} catch (SSLHandshakeException e) {
e = e;
} catch (Throwable th) {
th = th;
}
} catch (Throwable th2) {
th = th2;
}
try {
outputStream.write(bArr);
outputStream.flush();
str.connect();
outputStream2 = 200;
r1 = str.getResponseCode() == 200;
if (outputStream != null) {
try {
outputStream.close();
} catch (Exception unused) {
}
}
if (str != 0) {
try {
str.getInputStream().close();
} catch (IOException unused2) {
}
str.disconnect();
return r1;
}
} catch (SSLHandshakeException e2) {
e = e2;
outputStream2 = outputStream;
MLog.e("SSLHandshakeException, Failed to send message.", e);
if (outputStream2 != 0) {
try {
outputStream2.close();
} catch (Exception unused3) {
}
}
if (str != 0) {
try {
str.getInputStream().close();
} catch (IOException unused4) {
}
str.disconnect();
return false;
}
return r1;
} catch (Throwable th3) {
th = th3;
outputStream2 = outputStream;
if (outputStream2 != null) {
try {
outputStream2.close();
} catch (Exception unused5) {
}
}
if (str != 0) {
try {
str.getInputStream().close();
} catch (IOException unused6) {
}
str.disconnect();
}
throw th;
}
} catch (SSLHandshakeException e3) {
e = e3;
str = 0;
} catch (Throwable th4) {
th = th4;
str = 0;
}
}
return r1;
}
public boolean b(byte[] r8, java.lang.String r9) {
throw new UnsupportedOperationException("Method not decompiled: uAgent.commonsdk.stateless.e.b(byte[], java.lang.String):boolean");
}
}