高佣联盟 v6.22.57版本的 MD5 值为:0c736d87a62b04809b5a48aa82055f6a

以下内容为反编译后的 C1272.java 源代码,内容仅作参考


package K93XIfXxAzDpKiU1N9o4.cIJt8qGlBPbIGfVt6p2U.sl5ZJT6Tn7Of7Nx9kl5t.K93XIfXxAzDpKiU1N9o4;

import K93XIfXxAzDpKiU1N9o4.cIJt8qGlBPbIGfVt6p2U.sl5ZJT6Tn7Of7Nx9kl5t.C1317;
import K93XIfXxAzDpKiU1N9o4.cIJt8qGlBPbIGfVt6p2U.sl5ZJT6Tn7Of7Nx9kl5t.K93XIfXxAzDpKiU1N9o4.C1201;
import android.content.Context;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public final class C1272 {
    public static List<AbstractC1263> f3357 = new ArrayList();
    private static C1182 f3358 = null;
    public static boolean f3359 = true;
    private static boolean f3360;
    public static boolean f3361;

    public static synchronized void m5273(Context context, C1317 c1317) {
        synchronized (C1272.class) {
            if (f3360) {
                C1248.m5198("[init] initial Multi-times, ignore this.", new Object[0]);
            } else if (context == null) {
                String str = C1248.f3242;
            } else {
                C1172 m4820 = C1172.m4820(context);
                if (m5276(m4820)) {
                    f3359 = false;
                    return;
                }
                String m4852 = m4820.m4852();
                if (m4852 == null) {
                    String str2 = C1248.f3242;
                } else {
                    m5277(context, m4852, m4820.f2873, c1317);
                }
            }
        }
    }

    public static synchronized void m5274(AbstractC1263 abstractC1263) {
        synchronized (C1272.class) {
            if (!f3357.contains(abstractC1263)) {
                f3357.add(abstractC1263);
            }
        }
    }

    public static synchronized void m5275(Context context) {
        synchronized (C1272.class) {
            m5273(context, null);
        }
    }

    private static boolean m5276(C1172 c1172) {
        List<String> list = c1172.f2877;
        c1172.getClass();
        return list != null && list.contains("bugly");
    }

    public static synchronized void m5277(Context context, String str, boolean z, C1317 c1317) {
        byte[] bArr;
        synchronized (C1272.class) {
            if (f3360) {
                C1248.m5198("[init] initial Multi-times, ignore this.", new Object[0]);
            } else if (context == null) {
                String str2 = C1248.f3242;
            } else if (str == null) {
                String str3 = C1248.f3242;
            } else {
                f3360 = true;
                if (z) {
                    f3361 = true;
                    C1248.f3244 = true;
                    C1248.m5198("Bugly debug模式开启,请在发布时把isDebug关闭。 -- Running in debug model for 'isDebug' is enabled. Please disable it when you release.", new Object[0]);
                    C1248.m5200("--------------------------------------------------------------------------------------------", new Object[0]);
                    C1248.m5198("Bugly debug模式将有以下行为特性 -- The following list shows the behaviour of debug model: ", new Object[0]);
                    C1248.m5198("[1] 输出详细的Bugly SDK的Log -- More detailed log of Bugly SDK will be output to logcat;", new Object[0]);
                    C1248.m5198("[2] 每一条Crash都会被立即上报 -- Every crash caught by Bugly will be uploaded immediately.", new Object[0]);
                    C1248.m5198("[3] 自定义日志将会在Logcat中输出 -- Custom log will be output to logcat.", new Object[0]);
                    C1248.m5200("--------------------------------------------------------------------------------------------", new Object[0]);
                    C1248.m5199("[init] Open debug mode of Bugly.", new Object[0]);
                }
                C1248.m5195(" crash report start initializing...", new Object[0]);
                C1248.m5199("[init] Bugly start initializing...", new Object[0]);
                C1248.m5195("[init] Bugly complete version: v%s", "4.1.9.3");
                Context m4890 = C1174.m4890(context);
                C1172 m4820 = C1172.m4820(m4890);
                m4820.m4826();
                C1249.m5216(m4890);
                f3358 = C1182.m4919(m4890, f3357);
                C1280.m5299(m4890);
                C1201.m5014(m4890, f3357);
                C1196 m4992 = C1196.m4992(m4890);
                if (m5276(m4820)) {
                    f3359 = false;
                    return;
                }
                m4820.f2899 = str;
                m4820.m4849("APP_ID", str);
                C1248.m5195("[param] Set APP ID:%s", str);
                if (c1317 != null) {
                    String m5450 = c1317.m5450();
                    if (!TextUtils.isEmpty(m5450)) {
                        if (m5450.length() > 100) {
                            String substring = m5450.substring(0, 100);
                            C1248.m5198("appVersion %s length is over limit %d substring to %s", m5450, 100, substring);
                            m5450 = substring;
                        }
                        m4820.f2908 = m5450;
                        C1248.m5195("[param] Set App version: %s", c1317.m5450());
                    }
                    try {
                        if (c1317.m5459()) {
                            String m5467 = c1317.m5467();
                            if (!TextUtils.isEmpty(m5467)) {
                                if (m5467.length() > 100) {
                                    String substring2 = m5467.substring(0, 100);
                                    C1248.m5198("appChannel %s length is over limit %d substring to %s", m5467, 100, substring2);
                                    m5467 = substring2;
                                }
                                f3358.m4931(556, "app_channel", m5467.getBytes(), false);
                                m4820.f2878 = m5467;
                            }
                        } else {
                            Map<String, byte[]> m4929 = f3358.m4929(556, null);
                            if (m4929 != null && (bArr = m4929.get("app_channel")) != null) {
                                m4820.f2878 = new String(bArr);
                            }
                        }
                        C1248.m5195("[param] Set App channel: %s", m4820.f2878);
                    } catch (Exception e) {
                        if (f3361) {
                            e.printStackTrace();
                        }
                    }
                    String m5439 = c1317.m5439();
                    if (!TextUtils.isEmpty(m5439)) {
                        if (m5439.length() > 100) {
                            String substring3 = m5439.substring(0, 100);
                            C1248.m5198("appPackageName %s length is over limit %d substring to %s", m5439, 100, substring3);
                            m5439 = substring3;
                        }
                        m4820.f2945 = m5439;
                        C1248.m5195("[param] Set App package: %s", c1317.m5439());
                    }
                    String m5454 = c1317.m5454();
                    if (m5454 != null) {
                        if (m5454.length() > 100) {
                            String substring4 = m5454.substring(0, 100);
                            C1248.m5198("deviceId %s length is over limit %d substring to %s", m5454, 100, substring4);
                            m5454 = substring4;
                        }
                        m4820.m4859(m5454);
                        C1248.m5195("[param] Set device ID: %s", m5454);
                    }
                    String m5469 = c1317.m5469();
                    if (m5469 != null) {
                        m4820.m4854(m5469);
                        C1248.m5195("[param] Set device model: %s", m5469);
                    }
                    m4820.f2907 = c1317.m5451();
                    C1249.f3261 = c1317.m5465();
                }
                for (int i = 0; i < f3357.size(); i++) {
                    if (m4992.m5005(f3357.get(i).f3317)) {
                        f3357.get(i).mo5261(m4890, z, c1317);
                    }
                }
                C1256.m5252(m4890, c1317);
                long m5475 = c1317 != null ? c1317.m5475() : 0L;
                C1201 m5019 = C1201.m5019();
                m5019.f3084.m5224(new C1201.C1202(), m5475);
                C1248.m5199("[init] Bugly initialization finished.", new Object[0]);
            }
        }
    }
}