恐 怖 老 奶 奶1破 解 版 中 文 版 无 敌 版 v4.15.00版本的 MD5 值为:2c4218ea002b12a6cce81f33a9f0144d

以下内容为反编译后的 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.o;
import java.util.Locale;
public class b {
    public static final String f6251a = "b";
    public static volatile b f6252b;
    public static ConnectivityManager f6253c;
    public static com.anythink.expressad.foundation.g.f.c.a f6254d;

    public static b a(Context context) {
        NetworkInfo activeNetworkInfo;
        String lowerCase;
        if (f6252b == null) {
            synchronized (b.class) {
                if (f6252b == null) {
                    f6252b = new b();
                    if (context != null) {
                        f6253c = (ConnectivityManager) context.getSystemService("connectivity");
                    }
                    f6254d = new com.anythink.expressad.foundation.g.f.c.a();
                    try {
                        if (f6253c != null && (activeNetworkInfo = f6253c.getActiveNetworkInfo()) != null) {
                            if ("wifi".equals(activeNetworkInfo.getTypeName().toLowerCase(Locale.US))) {
                                f6254d.f6165e = "wifi";
                                f6254d.f6164d = 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")) {
                                            f6254d.f6164d = true;
                                            f6254d.f6161a = lowerCase;
                                            f6254d.f6162b = "10.0.0.200";
                                            f6254d.f6163c = "80";
                                        } else if (lowerCase.startsWith("cmnet") || lowerCase.startsWith("uninet") || lowerCase.startsWith("ctnet") || lowerCase.startsWith("3gnet")) {
                                            f6254d.f6164d = false;
                                            f6254d.f6161a = lowerCase;
                                        }
                                        com.anythink.expressad.foundation.g.f.c.a aVar = f6254d;
                                        aVar.f6165e = aVar.f6161a;
                                    }
                                    f6254d.f6164d = true;
                                    f6254d.f6161a = lowerCase;
                                    f6254d.f6162b = "10.0.0.172";
                                    f6254d.f6163c = "80";
                                    com.anythink.expressad.foundation.g.f.c.a aVar2 = f6254d;
                                    aVar2.f6165e = aVar2.f6161a;
                                }
                                String defaultHost = Proxy.getDefaultHost();
                                int defaultPort = Proxy.getDefaultPort();
                                if (defaultHost != null && defaultHost.length() > 0) {
                                    f6254d.f6162b = defaultHost;
                                    if ("10.0.0.172".equals(f6254d.f6162b.trim())) {
                                        f6254d.f6164d = true;
                                        f6254d.f6163c = "80";
                                    } else if ("10.0.0.200".equals(f6254d.f6162b.trim())) {
                                        f6254d.f6164d = true;
                                        f6254d.f6163c = "80";
                                    } else {
                                        f6254d.f6164d = false;
                                        f6254d.f6163c = Integer.toString(defaultPort);
                                    }
                                } else {
                                    f6254d.f6164d = false;
                                }
                                com.anythink.expressad.foundation.g.f.c.a aVar22 = f6254d;
                                aVar22.f6165e = aVar22.f6161a;
                            }
                        }
                    } catch (Exception e2) {
                        o.d(f6251a, e2.getMessage());
                    }
                }
            }
        }
        return f6252b;
    }

    public static com.anythink.expressad.foundation.g.f.c.a b() {
        return f6254d;
    }

    public static void a() {
        NetworkInfo activeNetworkInfo;
        String lowerCase;
        try {
            if (f6253c == null || (activeNetworkInfo = f6253c.getActiveNetworkInfo()) == null) {
                return;
            }
            if ("wifi".equals(activeNetworkInfo.getTypeName().toLowerCase(Locale.US))) {
                f6254d.f6165e = "wifi";
                f6254d.f6164d = 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")) {
                        f6254d.f6164d = true;
                        f6254d.f6161a = lowerCase;
                        f6254d.f6162b = "10.0.0.200";
                        f6254d.f6163c = "80";
                    } else if (lowerCase.startsWith("cmnet") || lowerCase.startsWith("uninet") || lowerCase.startsWith("ctnet") || lowerCase.startsWith("3gnet")) {
                        f6254d.f6164d = false;
                        f6254d.f6161a = lowerCase;
                    }
                    com.anythink.expressad.foundation.g.f.c.a aVar = f6254d;
                    aVar.f6165e = aVar.f6161a;
                }
                f6254d.f6164d = true;
                f6254d.f6161a = lowerCase;
                f6254d.f6162b = "10.0.0.172";
                f6254d.f6163c = "80";
                com.anythink.expressad.foundation.g.f.c.a aVar2 = f6254d;
                aVar2.f6165e = aVar2.f6161a;
            }
            String defaultHost = Proxy.getDefaultHost();
            int defaultPort = Proxy.getDefaultPort();
            if (defaultHost != null && defaultHost.length() > 0) {
                f6254d.f6162b = defaultHost;
                if ("10.0.0.172".equals(f6254d.f6162b.trim())) {
                    f6254d.f6164d = true;
                    f6254d.f6163c = "80";
                } else if ("10.0.0.200".equals(f6254d.f6162b.trim())) {
                    f6254d.f6164d = true;
                    f6254d.f6163c = "80";
                } else {
                    f6254d.f6164d = false;
                    f6254d.f6163c = Integer.toString(defaultPort);
                }
            } else {
                f6254d.f6164d = false;
            }
            com.anythink.expressad.foundation.g.f.c.a aVar22 = f6254d;
            aVar22.f6165e = aVar22.f6161a;
        } catch (Exception e2) {
            o.d(f6251a, e2.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 = f6254d;
                    aVar.f6164d = true;
                    aVar.f6161a = lowerCase;
                    aVar.f6162b = "10.0.0.200";
                    aVar.f6163c = "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 = f6254d;
                    aVar2.f6164d = false;
                    aVar2.f6161a = lowerCase;
                    return;
                }
            } else {
                com.anythink.expressad.foundation.g.f.c.a aVar3 = f6254d;
                aVar3.f6164d = true;
                aVar3.f6161a = lowerCase;
                aVar3.f6162b = "10.0.0.172";
                aVar3.f6163c = "80";
                return;
            }
        }
        String defaultHost = Proxy.getDefaultHost();
        int defaultPort = Proxy.getDefaultPort();
        if (defaultHost != null && defaultHost.length() > 0) {
            f6254d.f6162b = defaultHost;
            if ("10.0.0.172".equals(defaultHost.trim())) {
                com.anythink.expressad.foundation.g.f.c.a aVar4 = f6254d;
                aVar4.f6164d = true;
                aVar4.f6163c = "80";
                return;
            } else if ("10.0.0.200".equals(f6254d.f6162b.trim())) {
                com.anythink.expressad.foundation.g.f.c.a aVar5 = f6254d;
                aVar5.f6164d = true;
                aVar5.f6163c = "80";
                return;
            } else {
                com.anythink.expressad.foundation.g.f.c.a aVar6 = f6254d;
                aVar6.f6164d = false;
                aVar6.f6163c = Integer.toString(defaultPort);
                return;
            }
        }
        f6254d.f6164d = false;
    }
}