酷狗概念版 v2.5.5版本的 MD5 值为:782d327088fca4e58310f35a56f41319
以下内容为反编译后的 la.java 源代码,内容仅作参考
package kcsdkint;
import android.content.Context;
import android.net.NetworkInfo;
import android.net.Proxy;
import android.support.v4.os.EnvironmentCompat;
import android.telephony.TelephonyManager;
public class la {
public static int f72348a = 4;
public static String f72349b = null;
public static int f72350c = 80;
public static byte f72351d = 0;
public static boolean f72352e = false;
public static boolean f = false;
public static byte g = 4;
public static String h = "unknown";
public static byte i = 9;
public static int j = 22;
private static int a(Context context, NetworkInfo networkInfo) {
TelephonyManager telephonyManager;
if (networkInfo == null) {
return 0;
}
try {
if (1 == networkInfo.getType()) {
return 1;
}
if (networkInfo.getType() != 0 || (telephonyManager = (TelephonyManager) context.getSystemService("phone")) == null) {
return 0;
}
switch (telephonyManager.getNetworkType()) {
case 1:
return 2;
case 2:
return 3;
case 3:
return 4;
case 4:
return 8;
case 5:
return 9;
case 6:
return 10;
case 7:
return 11;
case 8:
return 5;
case 9:
return 6;
case 10:
return 7;
case 11:
return 12;
case 12:
return 13;
case 13:
return 14;
case 14:
return 15;
case 15:
return 16;
case 16:
return 17;
case 17:
return 18;
case 18:
return 19;
case 19:
return 20;
case 20:
return 21;
default:
return 22;
}
} catch (Exception e2) {
e2.printStackTrace();
return 0;
}
}
public static void a(Context context) {
NetworkInfo networkInfo;
int i2;
boolean z;
synchronized (la.class) {
if (f) {
return;
}
String str = null;
try {
networkInfo = lc.c();
} catch (NullPointerException unused) {
networkInfo = null;
}
int i3 = -1;
try {
f72348a = 0;
g = (byte) 4;
if (networkInfo != null) {
i3 = networkInfo.getType();
str = networkInfo.getExtraInfo();
if (str == null) {
f72348a = 0;
} else {
str = str.trim().toLowerCase();
}
}
if (i3 == 1) {
f72348a = 4;
f72352e = false;
g = (byte) 3;
h = EnvironmentCompat.MEDIA_UNKNOWN;
i = (byte) 9;
} else {
if (str != null) {
if (str.contains("cmwap")) {
h = "cmwap";
i = (byte) 0;
} else if (str.contains("cmnet")) {
h = "cmnet";
i = (byte) 1;
} else if (str.contains("3gwap")) {
h = "3gwap";
i = (byte) 2;
} else if (str.contains("3gnet")) {
h = "3gnet";
i = (byte) 3;
} else if (str.contains("uniwap")) {
h = "uniwap";
i = (byte) 4;
} else if (str.contains("uninet")) {
h = "uninet";
i = (byte) 5;
} else if (str.contains("ctwap")) {
h = "ctwap";
i = (byte) 6;
} else if (str.contains("ctnet")) {
h = "ctnet";
i = (byte) 7;
} else if (str.contains("#777")) {
h = "#777";
i = (byte) 8;
}
}
if (str != null) {
if (!str.contains("cmwap") && !str.contains("uniwap") && !str.contains("3gwap") && !str.contains("ctwap")) {
if (!str.contains("cmnet") && !str.contains("uninet") && !str.contains("3gnet") && !str.contains("ctnet")) {
if (str.contains("#777")) {
g = (byte) 2;
}
}
g = (byte) 1;
if (str.contains("3gnet") || str.contains("ctnet")) {
g = (byte) 2;
}
f72348a = 1;
f72352e = false;
i2 = f72348a;
if (i2 != 2 && i2 != 0) {
z = false;
if (z) {
f72349b = Proxy.getDefaultHost();
f72350c = Proxy.getDefaultPort();
if (f72349b != null) {
f72349b = f72349b.trim();
}
if (f72349b == null || "".equals(f72349b)) {
f72352e = false;
f72348a = 1;
} else {
f72352e = true;
f72348a = 2;
if ("10.0.0.200".equals(f72349b)) {
f72351d = (byte) 1;
} else {
f72351d = (byte) 0;
}
}
}
}
z = true;
if (z) {
}
}
g = (byte) 1;
if (str.contains("3gwap")) {
g = (byte) 2;
}
f72348a = 2;
f72352e = false;
i2 = f72348a;
if (i2 != 2) {
z = false;
if (z) {
}
}
z = true;
if (z) {
}
}
f72348a = 0;
f72352e = false;
i2 = f72348a;
if (i2 != 2) {
}
z = true;
if (z) {
}
}
} catch (Exception e2) {
e2.printStackTrace();
}
j = a(context, networkInfo);
f = true;
}
}
}