九游游戏中心HD v4.6.8.1版本的 MD5 值为:78c397802cc5ffdcc7f5502ede90502e
以下内容为反编译后的 eo.java 源代码,内容仅作参考
package com.b;
import android.content.Context;
import android.net.Proxy;
import android.os.Build;
import java.net.Proxy;
import java.net.ProxySelector;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;
public final class eo {
private static String a() {
String str;
try {
str = Proxy.getDefaultHost();
} catch (Throwable th) {
d.a(th, "ProxyUtil", "getDefHost");
str = null;
}
return str == null ? "null" : str;
}
public static java.net.Proxy a(Context context) {
java.net.Proxy proxy = null;
try {
proxy = Build.VERSION.SDK_INT >= 11 ? a(context, new URI("http://restapi.amap.com")) : b(context);
} catch (URISyntaxException e) {
d.a(e, "ProxyUtil", "getProxy");
} catch (Throwable th) {
d.a(th, "ProxyUtil", "getProxy");
}
return proxy;
}
private static java.net.Proxy a(Context context, URI uri) {
if (el.j(context) == 0) {
try {
List<java.net.Proxy> select = ProxySelector.getDefault().select(uri);
if (select == null || select.isEmpty()) {
return null;
}
java.net.Proxy proxy = select.get(0);
if (proxy != null) {
if (proxy.type() != Proxy.Type.DIRECT) {
return proxy;
}
}
return null;
} catch (Throwable th) {
d.a(th, "ProxyUtil", "getProxySelectorCfg");
}
}
return null;
}
private static int b() {
try {
return android.net.Proxy.getDefaultPort();
} catch (Throwable th) {
d.a(th, "ProxyUtil", "getDefPort");
return -1;
}
}
private static java.net.Proxy b(android.content.Context r12) {
throw new UnsupportedOperationException("Method not decompiled: com.b.eo.b(android.content.Context):java.net.Proxy");
}
}