导航菜单

页面标题

页面副标题

moonshot.企业版 v8.14.46 - C1475.java 源代码

正在查看: moonshot.企业版 v8.14.46 应用的 C1475.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package kp1AiJpjqJHu1Tcnj96z.saktfaQObACC6AiCgP8Y.zSFvmU2XOpXZrEfUxlHp.kp1AiJpjqJHu1Tcnj96z;

import android.content.Context;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import kp1AiJpjqJHu1Tcnj96z.saktfaQObACC6AiCgP8Y.zSFvmU2XOpXZrEfUxlHp.C1483;
import kp1AiJpjqJHu1Tcnj96z.saktfaQObACC6AiCgP8Y.zSFvmU2XOpXZrEfUxlHp.kp1AiJpjqJHu1Tcnj96z.C1440.C1441;

public final class C1475 {

    public static boolean f5196 = false;

    public static boolean f5197 = true;

    private static C1480 f5198;

    public static List<AbstractC1468> f5199 = new ArrayList();

    private static boolean f5200;

    public static synchronized void m7577(Context context, String str, boolean z, C1483 c1483) {
        byte[] bArr;
        synchronized (C1475.class) {
            if (f5200) {
                C1476.m7591("[init] initial Multi-times, ignore this.", new Object[0]);
                return;
            }
            if (context == null) {
                String str2 = C1476.f5203;
                return;
            }
            if (str == null) {
                String str3 = C1476.f5203;
                return;
            }
            f5200 = true;
            if (z) {
                f5196 = true;
                C1476.f5201 = true;
                C1476.m7591("Bugly debug模式开启,请在发布时把isDebug关闭。 -- Running in debug model for 'isDebug' is enabled. Please disable it when you release.", new Object[0]);
                C1476.m7582("--------------------------------------------------------------------------------------------", new Object[0]);
                C1476.m7591("Bugly debug模式将有以下行为特性 -- The following list shows the behaviour of debug model: ", new Object[0]);
                C1476.m7591("[1] 输出详细的Bugly SDK的Log -- More detailed log of Bugly SDK will be output to logcat;", new Object[0]);
                C1476.m7591("[2] 每一条Crash都会被立即上报 -- Every crash caught by Bugly will be uploaded immediately.", new Object[0]);
                C1476.m7591("[3] 自定义日志将会在Logcat中输出 -- Custom log will be output to logcat.", new Object[0]);
                C1476.m7582("--------------------------------------------------------------------------------------------", new Object[0]);
                C1476.m7586("[init] Open debug mode of Bugly.", new Object[0]);
            }
            C1476.m7587(" crash report start initializing...", new Object[0]);
            C1476.m7586("[init] Bugly start initializing...", new Object[0]);
            C1476.m7587("[init] Bugly complete version: v%s", "4.1.9.3");
            Context m7528 = C1471.m7528(context);
            C1450 m7382 = C1450.m7382(m7528);
            m7382.m7413();
            C1402.m7247(m7528);
            f5198 = C1480.m7628(m7528, f5199);
            C1347.m7135(m7528);
            C1440.m7349(m7528, f5199);
            C1462 m7473 = C1462.m7473(m7528);
            if (m7581(m7382)) {
                f5197 = false;
                return;
            }
            m7382.f5060 = str;
            m7382.m7406("APP_ID", str);
            C1476.m7587("[param] Set APP ID:%s", str);
            if (c1483 != null) {
                String m7674 = c1483.m7674();
                if (!TextUtils.isEmpty(m7674)) {
                    if (m7674.length() > 100) {
                        String substring = m7674.substring(0, 100);
                        C1476.m7591("appVersion %s length is over limit %d substring to %s", m7674, 100, substring);
                        m7674 = substring;
                    }
                    m7382.f5057 = m7674;
                    C1476.m7587("[param] Set App version: %s", c1483.m7674());
                }
                try {
                    if (c1483.m7672()) {
                        String m7656 = c1483.m7656();
                        if (!TextUtils.isEmpty(m7656)) {
                            if (m7656.length() > 100) {
                                String substring2 = m7656.substring(0, 100);
                                C1476.m7591("appChannel %s length is over limit %d substring to %s", m7656, 100, substring2);
                                m7656 = substring2;
                            }
                            f5198.m7641(556, "app_channel", m7656.getBytes(), false);
                            m7382.f5064 = m7656;
                        }
                    } else {
                        Map<String, byte[]> m7638 = f5198.m7638(556, null);
                        if (m7638 != null && (bArr = m7638.get("app_channel")) != null) {
                            m7382.f5064 = new String(bArr);
                        }
                    }
                    C1476.m7587("[param] Set App channel: %s", m7382.f5064);
                } catch (Exception e) {
                    if (f5196) {
                        e.printStackTrace();
                    }
                }
                String m7675 = c1483.m7675();
                if (!TextUtils.isEmpty(m7675)) {
                    if (m7675.length() > 100) {
                        String substring3 = m7675.substring(0, 100);
                        C1476.m7591("appPackageName %s length is over limit %d substring to %s", m7675, 100, substring3);
                        m7675 = substring3;
                    }
                    m7382.f5081 = m7675;
                    C1476.m7587("[param] Set App package: %s", c1483.m7675());
                }
                String m7649 = c1483.m7649();
                if (m7649 != null) {
                    if (m7649.length() > 100) {
                        String substring4 = m7649.substring(0, 100);
                        C1476.m7591("deviceId %s length is over limit %d substring to %s", m7649, 100, substring4);
                        m7649 = substring4;
                    }
                    m7382.m7392(m7649);
                    C1476.m7587("[param] Set device ID: %s", m7649);
                }
                String m7677 = c1483.m7677();
                if (m7677 != null) {
                    m7382.m7396(m7677);
                    C1476.m7587("[param] Set device model: %s", m7677);
                }
                m7382.f5031 = c1483.m7671();
                C1402.f4841 = c1483.m7676();
            }
            for (int i = 0; i < f5199.size(); i++) {
                try {
                    if (m7473.m7477(f5199.get(i).f5178)) {
                        f5199.get(i).mo7517(m7528, z, c1483);
                    }
                } catch (Throwable th) {
                    if (!C1476.m7590(th)) {
                        th.printStackTrace();
                    }
                }
            }
            C1451.m7444(m7528, c1483);
            long m7654 = c1483 != null ? c1483.m7654() : 0L;
            C1440 m7346 = C1440.m7346();
            m7346.f5003.m7456(m7346.new C1441(), m7654);
            C1476.m7586("[init] Bugly initialization finished.", new Object[0]);
        }
    }

    public static synchronized void m7578(Context context) {
        synchronized (C1475.class) {
            m7580(context, null);
        }
    }

    public static synchronized void m7579(AbstractC1468 abstractC1468) {
        synchronized (C1475.class) {
            if (!f5199.contains(abstractC1468)) {
                f5199.add(abstractC1468);
            }
        }
    }

    public static synchronized void m7580(Context context, C1483 c1483) {
        synchronized (C1475.class) {
            if (f5200) {
                C1476.m7591("[init] initial Multi-times, ignore this.", new Object[0]);
                return;
            }
            if (context == null) {
                String str = C1476.f5203;
                return;
            }
            C1450 m7382 = C1450.m7382(context);
            if (m7581(m7382)) {
                f5197 = false;
                return;
            }
            String m7405 = m7382.m7405();
            if (m7405 == null) {
                String str2 = C1476.f5203;
            } else {
                m7577(context, m7405, m7382.f5085, c1483);
            }
        }
    }

    private static boolean m7581(C1450 c1450) {
        List<String> list = c1450.f5091;
        c1450.getClass();
        return list != null && list.contains("bugly");
    }
}