JieJing Cleaner v1.4.2版本的 MD5 值为:a574eea9fb07160f0bbb08ba0adf1c62
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.anythink.expressad.foundation.f.f.g;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Proxy;
import com.anythink.expressad.foundation.g.n;
import java.util.Locale;
public class b {
public static final String a = "b";
public static b b;
public static ConnectivityManager c;
public static com.anythink.expressad.foundation.f.f.c.a d;
public static synchronized b a(Context context) {
b bVar;
NetworkInfo activeNetworkInfo;
String lowerCase;
synchronized (b.class) {
if (b == null) {
b = new b();
if (context != null) {
c = (ConnectivityManager) context.getSystemService("connectivity");
}
d = new com.anythink.expressad.foundation.f.f.c.a();
try {
if (c != null && (activeNetworkInfo = c.getActiveNetworkInfo()) != null) {
if ("wifi".equals(activeNetworkInfo.getTypeName().toLowerCase(Locale.US))) {
d.e = "wifi";
d.d = false;
} else {
if (activeNetworkInfo.getExtraInfo() != null && (lowerCase = activeNetworkInfo.getExtraInfo().toLowerCase(Locale.US)) != null) {
if (!lowerCase.startsWith("cmwap") && !lowerCase.startsWith("uniwap") && !lowerCase.startsWith("3gwap")) {
if (lowerCase.startsWith("ctwap")) {
d.d = true;
d.a = lowerCase;
d.b = "10.0.0.200";
d.c = "80";
} else if (lowerCase.startsWith("cmnet") || lowerCase.startsWith("uninet") || lowerCase.startsWith("ctnet") || lowerCase.startsWith("3gnet")) {
d.d = false;
d.a = lowerCase;
}
com.anythink.expressad.foundation.f.f.c.a aVar = d;
aVar.e = aVar.a;
}
d.d = true;
d.a = lowerCase;
d.b = "10.0.0.172";
d.c = "80";
com.anythink.expressad.foundation.f.f.c.a aVar2 = d;
aVar2.e = aVar2.a;
}
String defaultHost = Proxy.getDefaultHost();
int defaultPort = Proxy.getDefaultPort();
if (defaultHost != null && defaultHost.length() > 0) {
d.b = defaultHost;
if ("10.0.0.172".equals(d.b.trim())) {
d.d = true;
d.c = "80";
} else if ("10.0.0.200".equals(d.b.trim())) {
d.d = true;
d.c = "80";
} else {
d.d = false;
d.c = Integer.toString(defaultPort);
}
} else {
d.d = false;
}
com.anythink.expressad.foundation.f.f.c.a aVar22 = d;
aVar22.e = aVar22.a;
}
}
} catch (Exception e) {
n.c(a, e.getMessage());
}
}
bVar = b;
}
return bVar;
}
public static com.anythink.expressad.foundation.f.f.c.a b() {
return d;
}
public static void a() {
NetworkInfo activeNetworkInfo;
String lowerCase;
try {
if (c == null || (activeNetworkInfo = c.getActiveNetworkInfo()) == null) {
return;
}
if ("wifi".equals(activeNetworkInfo.getTypeName().toLowerCase(Locale.US))) {
d.e = "wifi";
d.d = false;
return;
}
if (activeNetworkInfo.getExtraInfo() != null && (lowerCase = activeNetworkInfo.getExtraInfo().toLowerCase(Locale.US)) != null) {
if (!lowerCase.startsWith("cmwap") && !lowerCase.startsWith("uniwap") && !lowerCase.startsWith("3gwap")) {
if (lowerCase.startsWith("ctwap")) {
d.d = true;
d.a = lowerCase;
d.b = "10.0.0.200";
d.c = "80";
} else if (lowerCase.startsWith("cmnet") || lowerCase.startsWith("uninet") || lowerCase.startsWith("ctnet") || lowerCase.startsWith("3gnet")) {
d.d = false;
d.a = lowerCase;
}
com.anythink.expressad.foundation.f.f.c.a aVar = d;
aVar.e = aVar.a;
}
d.d = true;
d.a = lowerCase;
d.b = "10.0.0.172";
d.c = "80";
com.anythink.expressad.foundation.f.f.c.a aVar2 = d;
aVar2.e = aVar2.a;
}
String defaultHost = Proxy.getDefaultHost();
int defaultPort = Proxy.getDefaultPort();
if (defaultHost != null && defaultHost.length() > 0) {
d.b = defaultHost;
if ("10.0.0.172".equals(d.b.trim())) {
d.d = true;
d.c = "80";
} else if ("10.0.0.200".equals(d.b.trim())) {
d.d = true;
d.c = "80";
} else {
d.d = false;
d.c = Integer.toString(defaultPort);
}
} else {
d.d = false;
}
com.anythink.expressad.foundation.f.f.c.a aVar22 = d;
aVar22.e = aVar22.a;
} catch (Exception e) {
n.c(a, e.getMessage());
}
}
public static void a(NetworkInfo networkInfo) {
String lowerCase;
if (networkInfo.getExtraInfo() != null && (lowerCase = networkInfo.getExtraInfo().toLowerCase(Locale.US)) != null) {
if (!lowerCase.startsWith("cmwap") && !lowerCase.startsWith("uniwap") && !lowerCase.startsWith("3gwap")) {
if (lowerCase.startsWith("ctwap")) {
com.anythink.expressad.foundation.f.f.c.a aVar = d;
aVar.d = true;
aVar.a = lowerCase;
aVar.b = "10.0.0.200";
aVar.c = "80";
return;
} else if (lowerCase.startsWith("cmnet") || lowerCase.startsWith("uninet") || lowerCase.startsWith("ctnet") || lowerCase.startsWith("3gnet")) {
com.anythink.expressad.foundation.f.f.c.a aVar2 = d;
aVar2.d = false;
aVar2.a = lowerCase;
return;
}
} else {
com.anythink.expressad.foundation.f.f.c.a aVar3 = d;
aVar3.d = true;
aVar3.a = lowerCase;
aVar3.b = "10.0.0.172";
aVar3.c = "80";
return;
}
}
String defaultHost = Proxy.getDefaultHost();
int defaultPort = Proxy.getDefaultPort();
if (defaultHost != null && defaultHost.length() > 0) {
d.b = defaultHost;
if ("10.0.0.172".equals(defaultHost.trim())) {
com.anythink.expressad.foundation.f.f.c.a aVar4 = d;
aVar4.d = true;
aVar4.c = "80";
return;
} else if ("10.0.0.200".equals(d.b.trim())) {
com.anythink.expressad.foundation.f.f.c.a aVar5 = d;
aVar5.d = true;
aVar5.c = "80";
return;
} else {
com.anythink.expressad.foundation.f.f.c.a aVar6 = d;
aVar6.d = false;
aVar6.c = Integer.toString(defaultPort);
return;
}
}
d.d = false;
}
}