笔 趣 阁 破 解 版2023 v4.18.00版本的 MD5 值为:35c48a89f5572ff5a659afd7c5a81cad
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.anythink.expressad.foundation.g.f.g;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Proxy;
import com.anythink.expressad.foundation.h.n;
import com.efs.sdk.base.core.util.NetworkUtil;
import java.util.Locale;
public class b {
public static final String f5265a = "b";
public static volatile b f5266b;
public static ConnectivityManager f5267c;
public static com.anythink.expressad.foundation.g.f.c.a f5268d;
public static b a(Context context) {
NetworkInfo activeNetworkInfo;
String lowerCase;
if (f5266b == null) {
synchronized (b.class) {
if (f5266b == null) {
f5266b = new b();
if (context != null) {
f5267c = (ConnectivityManager) context.getSystemService("connectivity");
}
f5268d = new com.anythink.expressad.foundation.g.f.c.a();
try {
if (f5267c != null && (activeNetworkInfo = f5267c.getActiveNetworkInfo()) != null) {
if (NetworkUtil.NETWORK_TYPE_WIFI.equals(activeNetworkInfo.getTypeName().toLowerCase(Locale.US))) {
f5268d.e = NetworkUtil.NETWORK_TYPE_WIFI;
f5268d.f5196d = 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")) {
f5268d.f5196d = true;
f5268d.f5193a = lowerCase;
f5268d.f5194b = "10.0.0.200";
f5268d.f5195c = "80";
} else if (lowerCase.startsWith("cmnet") || lowerCase.startsWith("uninet") || lowerCase.startsWith("ctnet") || lowerCase.startsWith("3gnet")) {
f5268d.f5196d = false;
f5268d.f5193a = lowerCase;
}
com.anythink.expressad.foundation.g.f.c.a aVar = f5268d;
aVar.e = aVar.f5193a;
}
f5268d.f5196d = true;
f5268d.f5193a = lowerCase;
f5268d.f5194b = "10.0.0.172";
f5268d.f5195c = "80";
com.anythink.expressad.foundation.g.f.c.a aVar2 = f5268d;
aVar2.e = aVar2.f5193a;
}
String defaultHost = Proxy.getDefaultHost();
int defaultPort = Proxy.getDefaultPort();
if (defaultHost != null && defaultHost.length() > 0) {
f5268d.f5194b = defaultHost;
if ("10.0.0.172".equals(f5268d.f5194b.trim())) {
f5268d.f5196d = true;
f5268d.f5195c = "80";
} else if ("10.0.0.200".equals(f5268d.f5194b.trim())) {
f5268d.f5196d = true;
f5268d.f5195c = "80";
} else {
f5268d.f5196d = false;
f5268d.f5195c = Integer.toString(defaultPort);
}
} else {
f5268d.f5196d = false;
}
com.anythink.expressad.foundation.g.f.c.a aVar22 = f5268d;
aVar22.e = aVar22.f5193a;
}
}
} catch (Exception e) {
n.d(f5265a, e.getMessage());
}
}
}
}
return f5266b;
}
public static com.anythink.expressad.foundation.g.f.c.a b() {
return f5268d;
}
public static void a() {
NetworkInfo activeNetworkInfo;
String lowerCase;
try {
if (f5267c == null || (activeNetworkInfo = f5267c.getActiveNetworkInfo()) == null) {
return;
}
if (NetworkUtil.NETWORK_TYPE_WIFI.equals(activeNetworkInfo.getTypeName().toLowerCase(Locale.US))) {
f5268d.e = NetworkUtil.NETWORK_TYPE_WIFI;
f5268d.f5196d = 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")) {
f5268d.f5196d = true;
f5268d.f5193a = lowerCase;
f5268d.f5194b = "10.0.0.200";
f5268d.f5195c = "80";
} else if (lowerCase.startsWith("cmnet") || lowerCase.startsWith("uninet") || lowerCase.startsWith("ctnet") || lowerCase.startsWith("3gnet")) {
f5268d.f5196d = false;
f5268d.f5193a = lowerCase;
}
com.anythink.expressad.foundation.g.f.c.a aVar = f5268d;
aVar.e = aVar.f5193a;
}
f5268d.f5196d = true;
f5268d.f5193a = lowerCase;
f5268d.f5194b = "10.0.0.172";
f5268d.f5195c = "80";
com.anythink.expressad.foundation.g.f.c.a aVar2 = f5268d;
aVar2.e = aVar2.f5193a;
}
String defaultHost = Proxy.getDefaultHost();
int defaultPort = Proxy.getDefaultPort();
if (defaultHost != null && defaultHost.length() > 0) {
f5268d.f5194b = defaultHost;
if ("10.0.0.172".equals(f5268d.f5194b.trim())) {
f5268d.f5196d = true;
f5268d.f5195c = "80";
} else if ("10.0.0.200".equals(f5268d.f5194b.trim())) {
f5268d.f5196d = true;
f5268d.f5195c = "80";
} else {
f5268d.f5196d = false;
f5268d.f5195c = Integer.toString(defaultPort);
}
} else {
f5268d.f5196d = false;
}
com.anythink.expressad.foundation.g.f.c.a aVar22 = f5268d;
aVar22.e = aVar22.f5193a;
} catch (Exception e) {
n.d(f5265a, 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.g.f.c.a aVar = f5268d;
aVar.f5196d = true;
aVar.f5193a = lowerCase;
aVar.f5194b = "10.0.0.200";
aVar.f5195c = "80";
return;
} else if (lowerCase.startsWith("cmnet") || lowerCase.startsWith("uninet") || lowerCase.startsWith("ctnet") || lowerCase.startsWith("3gnet")) {
com.anythink.expressad.foundation.g.f.c.a aVar2 = f5268d;
aVar2.f5196d = false;
aVar2.f5193a = lowerCase;
return;
}
} else {
com.anythink.expressad.foundation.g.f.c.a aVar3 = f5268d;
aVar3.f5196d = true;
aVar3.f5193a = lowerCase;
aVar3.f5194b = "10.0.0.172";
aVar3.f5195c = "80";
return;
}
}
String defaultHost = Proxy.getDefaultHost();
int defaultPort = Proxy.getDefaultPort();
if (defaultHost != null && defaultHost.length() > 0) {
f5268d.f5194b = defaultHost;
if ("10.0.0.172".equals(defaultHost.trim())) {
com.anythink.expressad.foundation.g.f.c.a aVar4 = f5268d;
aVar4.f5196d = true;
aVar4.f5195c = "80";
return;
} else if ("10.0.0.200".equals(f5268d.f5194b.trim())) {
com.anythink.expressad.foundation.g.f.c.a aVar5 = f5268d;
aVar5.f5196d = true;
aVar5.f5195c = "80";
return;
} else {
com.anythink.expressad.foundation.g.f.c.a aVar6 = f5268d;
aVar6.f5196d = false;
aVar6.f5195c = Integer.toString(defaultPort);
return;
}
}
f5268d.f5196d = false;
}
}