AI Chat v1.1.8版本的 MD5 值为:1bcdce875f86738c8cfbf1e5f4064353

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

    private b() {
    }

    private static b a(Context context) {
        NetworkInfo activeNetworkInfo;
        String lowerCase;
        if (b == null) {
            synchronized (b.class) {
                if (b == null) {
                    b = new b();
                    if (context != null) {
                        c = (ConnectivityManager) context.getSystemService("connectivity");
                    }
                    f732d = new com.anythink.expressad.foundation.g.f.c.a();
                    try {
                        ConnectivityManager connectivityManager = c;
                        if (connectivityManager != null && (activeNetworkInfo = connectivityManager.getActiveNetworkInfo()) != null) {
                            String typeName = activeNetworkInfo.getTypeName();
                            Locale locale = Locale.US;
                            if ("wifi".equals(typeName.toLowerCase(locale))) {
                                com.anythink.expressad.foundation.g.f.c.a aVar = f732d;
                                aVar.e = "wifi";
                                aVar.f720d = false;
                            } else {
                                if (activeNetworkInfo.getExtraInfo() != null && (lowerCase = activeNetworkInfo.getExtraInfo().toLowerCase(locale)) != null) {
                                    if (!lowerCase.startsWith("cmwap") && !lowerCase.startsWith("uniwap") && !lowerCase.startsWith("3gwap")) {
                                        if (lowerCase.startsWith("ctwap")) {
                                            com.anythink.expressad.foundation.g.f.c.a aVar2 = f732d;
                                            aVar2.f720d = true;
                                            aVar2.a = lowerCase;
                                            aVar2.b = "10.0.0.200";
                                            aVar2.c = "80";
                                        } else if (lowerCase.startsWith("cmnet") || lowerCase.startsWith("uninet") || lowerCase.startsWith("ctnet") || lowerCase.startsWith("3gnet")) {
                                            com.anythink.expressad.foundation.g.f.c.a aVar3 = f732d;
                                            aVar3.f720d = false;
                                            aVar3.a = lowerCase;
                                        }
                                        com.anythink.expressad.foundation.g.f.c.a aVar4 = f732d;
                                        aVar4.e = aVar4.a;
                                    }
                                    com.anythink.expressad.foundation.g.f.c.a aVar5 = f732d;
                                    aVar5.f720d = true;
                                    aVar5.a = lowerCase;
                                    aVar5.b = "10.0.0.172";
                                    aVar5.c = "80";
                                    com.anythink.expressad.foundation.g.f.c.a aVar42 = f732d;
                                    aVar42.e = aVar42.a;
                                }
                                String defaultHost = Proxy.getDefaultHost();
                                int defaultPort = Proxy.getDefaultPort();
                                if (defaultHost != null && defaultHost.length() > 0) {
                                    f732d.b = defaultHost;
                                    if ("10.0.0.172".equals(defaultHost.trim())) {
                                        com.anythink.expressad.foundation.g.f.c.a aVar6 = f732d;
                                        aVar6.f720d = true;
                                        aVar6.c = "80";
                                    } else if ("10.0.0.200".equals(f732d.b.trim())) {
                                        com.anythink.expressad.foundation.g.f.c.a aVar7 = f732d;
                                        aVar7.f720d = true;
                                        aVar7.c = "80";
                                    } else {
                                        com.anythink.expressad.foundation.g.f.c.a aVar8 = f732d;
                                        aVar8.f720d = false;
                                        aVar8.c = Integer.toString(defaultPort);
                                    }
                                } else {
                                    f732d.f720d = false;
                                }
                                com.anythink.expressad.foundation.g.f.c.a aVar422 = f732d;
                                aVar422.e = aVar422.a;
                            }
                        }
                    } catch (Exception e) {
                        e.getMessage();
                    }
                }
            }
        }
        return b;
    }

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

    private static void a() {
        NetworkInfo activeNetworkInfo;
        String lowerCase;
        try {
            ConnectivityManager connectivityManager = c;
            if (connectivityManager == null || (activeNetworkInfo = connectivityManager.getActiveNetworkInfo()) == null) {
                return;
            }
            String typeName = activeNetworkInfo.getTypeName();
            Locale locale = Locale.US;
            if ("wifi".equals(typeName.toLowerCase(locale))) {
                com.anythink.expressad.foundation.g.f.c.a aVar = f732d;
                aVar.e = "wifi";
                aVar.f720d = false;
                return;
            }
            if (activeNetworkInfo.getExtraInfo() != null && (lowerCase = activeNetworkInfo.getExtraInfo().toLowerCase(locale)) != null) {
                if (!lowerCase.startsWith("cmwap") && !lowerCase.startsWith("uniwap") && !lowerCase.startsWith("3gwap")) {
                    if (lowerCase.startsWith("ctwap")) {
                        com.anythink.expressad.foundation.g.f.c.a aVar2 = f732d;
                        aVar2.f720d = true;
                        aVar2.a = lowerCase;
                        aVar2.b = "10.0.0.200";
                        aVar2.c = "80";
                    } else if (lowerCase.startsWith("cmnet") || lowerCase.startsWith("uninet") || lowerCase.startsWith("ctnet") || lowerCase.startsWith("3gnet")) {
                        com.anythink.expressad.foundation.g.f.c.a aVar3 = f732d;
                        aVar3.f720d = false;
                        aVar3.a = lowerCase;
                    }
                    com.anythink.expressad.foundation.g.f.c.a aVar4 = f732d;
                    aVar4.e = aVar4.a;
                }
                com.anythink.expressad.foundation.g.f.c.a aVar5 = f732d;
                aVar5.f720d = true;
                aVar5.a = lowerCase;
                aVar5.b = "10.0.0.172";
                aVar5.c = "80";
                com.anythink.expressad.foundation.g.f.c.a aVar42 = f732d;
                aVar42.e = aVar42.a;
            }
            String defaultHost = Proxy.getDefaultHost();
            int defaultPort = Proxy.getDefaultPort();
            if (defaultHost != null && defaultHost.length() > 0) {
                f732d.b = defaultHost;
                if ("10.0.0.172".equals(defaultHost.trim())) {
                    com.anythink.expressad.foundation.g.f.c.a aVar6 = f732d;
                    aVar6.f720d = true;
                    aVar6.c = "80";
                } else if ("10.0.0.200".equals(f732d.b.trim())) {
                    com.anythink.expressad.foundation.g.f.c.a aVar7 = f732d;
                    aVar7.f720d = true;
                    aVar7.c = "80";
                } else {
                    com.anythink.expressad.foundation.g.f.c.a aVar8 = f732d;
                    aVar8.f720d = false;
                    aVar8.c = Integer.toString(defaultPort);
                }
            } else {
                f732d.f720d = false;
            }
            com.anythink.expressad.foundation.g.f.c.a aVar422 = f732d;
            aVar422.e = aVar422.a;
        } catch (Exception e) {
            e.getMessage();
        }
    }

    private 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 = f732d;
                    aVar.f720d = 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.g.f.c.a aVar2 = f732d;
                    aVar2.f720d = false;
                    aVar2.a = lowerCase;
                    return;
                }
            } else {
                com.anythink.expressad.foundation.g.f.c.a aVar3 = f732d;
                aVar3.f720d = 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) {
            f732d.b = defaultHost;
            if ("10.0.0.172".equals(defaultHost.trim())) {
                com.anythink.expressad.foundation.g.f.c.a aVar4 = f732d;
                aVar4.f720d = true;
                aVar4.c = "80";
                return;
            } else if ("10.0.0.200".equals(f732d.b.trim())) {
                com.anythink.expressad.foundation.g.f.c.a aVar5 = f732d;
                aVar5.f720d = true;
                aVar5.c = "80";
                return;
            } else {
                com.anythink.expressad.foundation.g.f.c.a aVar6 = f732d;
                aVar6.f720d = false;
                aVar6.c = Integer.toString(defaultPort);
                return;
            }
        }
        f732d.f720d = false;
    }
}