导航菜单

页面标题

页面副标题

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

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

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


package kp1AiJpjqJHu1Tcnj96z.saktfaQObACC6AiCgP8Y.zSFvmU2XOpXZrEfUxlHp.kp1AiJpjqJHu1Tcnj96z;

import android.content.Context;
import com.tencent.bugly.crashreport.common.strategy.StrategyBean;
import java.util.List;
import java.util.Map;

public final class C9602 {

    public static long f33356 = 259200000;

    public static int f33357 = 1000;

    private static C9602 f33358;

    private static String f33359;

    private final StrategyBean f33360;

    private final List<AbstractC9630> f33361;

    private StrategyBean f33362 = null;

    public final C9618 f33363;

    private Context f33364;

    public class C9603 extends Thread {
        public C9603() {
        }

        @Override
        public final void run() {
            try {
                Map<String, byte[]> m37940 = C9642.m37920().m37940(C9602.f33357, null);
                if (m37940 != null) {
                    byte[] bArr = m37940.get("device");
                    byte[] bArr2 = m37940.get("gateway");
                    if (bArr != null) {
                        C9612.m37684(C9602.this.f33364).m37716(new String(bArr));
                    }
                    if (bArr2 != null) {
                        C9612.m37684(C9602.this.f33364).m37711(new String(bArr2));
                    }
                }
                C9602.this.f33362 = C9602.m37650();
                if (C9602.this.f33362 != null) {
                    if (C9633.m37846(C9602.f33359) || !C9633.m37857(C9602.f33359)) {
                        C9602.this.f33362.f21316 = StrategyBean.f21296;
                        C9602.this.f33362.f21299 = StrategyBean.f21297;
                    } else {
                        C9602.this.f33362.f21316 = C9602.f33359;
                        C9602.this.f33362.f21299 = C9602.f33359;
                    }
                }
            } catch (Throwable th) {
                if (!C9638.m37892(th)) {
                    th.printStackTrace();
                }
            }
            C9602 c9602 = C9602.this;
            c9602.m37657(c9602.f33362, false);
        }
    }

    private C9602(Context context, List<AbstractC9630> list) {
        this.f33364 = context;
        if (C9612.m37684(context) != null) {
            String str = C9612.m37684(context).f33386;
            if ("oversea".equals(str)) {
                StrategyBean.f21296 = "https://astat.bugly.qcloud.com/rqd/async";
                StrategyBean.f21297 = "https://astat.bugly.qcloud.com/rqd/async";
            } else if ("na_https".equals(str)) {
                StrategyBean.f21296 = "https://astat.bugly.cros.wr.pvp.net/:8180/rqd/async";
                StrategyBean.f21297 = "https://astat.bugly.cros.wr.pvp.net/:8180/rqd/async";
            }
        }
        this.f33360 = new StrategyBean();
        this.f33361 = list;
        this.f33363 = C9618.m37756();
    }

    public static synchronized C9602 m37648() {
        C9602 c9602;
        synchronized (C9602.class) {
            c9602 = f33358;
        }
        return c9602;
    }

    public static StrategyBean m37650() {
        byte[] bArr;
        List<C9598> m37947 = C9642.m37920().m37947(2);
        if (m37947 == null || m37947.size() <= 0 || (bArr = m37947.get(0).f33340) == null) {
            return null;
        }
        return (StrategyBean) C9633.m37855(bArr, StrategyBean.CREATOR);
    }

    public static synchronized C9602 m37651(Context context, List<AbstractC9630> list) {
        C9602 c9602;
        synchronized (C9602.class) {
            if (f33358 == null) {
                f33358 = new C9602(context, list);
            }
            c9602 = f33358;
        }
        return c9602;
    }

    public static void m37652(String str) {
        if (C9633.m37846(str) || !C9633.m37857(str)) {
            C9638.m37893("URL user set is invalid.", new Object[0]);
        } else {
            f33359 = str;
        }
    }

    public final StrategyBean m37655() {
        StrategyBean strategyBean = this.f33362;
        if (strategyBean != null) {
            if (!C9633.m37857(strategyBean.f21316)) {
                this.f33362.f21316 = StrategyBean.f21296;
            }
            if (!C9633.m37857(this.f33362.f21299)) {
                this.f33362.f21299 = StrategyBean.f21297;
            }
            return this.f33362;
        }
        if (!C9633.m37846(f33359) && C9633.m37857(f33359)) {
            StrategyBean strategyBean2 = this.f33360;
            String str = f33359;
            strategyBean2.f21316 = str;
            strategyBean2.f21299 = str;
        }
        return this.f33360;
    }

    public final void m37656(C9512 c9512) {
        Map<String, String> map;
        if (c9512 == null) {
            return;
        }
        StrategyBean strategyBean = this.f33362;
        if (strategyBean == null || c9512.f33058 != strategyBean.f21310) {
            StrategyBean strategyBean2 = new StrategyBean();
            strategyBean2.f21303 = c9512.f33056;
            strategyBean2.f21304 = c9512.f33050;
            strategyBean2.f21306 = c9512.f33059;
            if (C9633.m37846(f33359) || !C9633.m37857(f33359)) {
                if (C9633.m37857(c9512.f33053)) {
                    C9638.m37885("[Strategy] Upload url changes to %s", c9512.f33053);
                    strategyBean2.f21316 = c9512.f33053;
                }
                if (C9633.m37857(c9512.f33051)) {
                    C9638.m37885("[Strategy] Exception upload url changes to %s", c9512.f33051);
                    strategyBean2.f21299 = c9512.f33051;
                }
            }
            C9543 c9543 = c9512.f33048;
            if (c9543 != null && !C9633.m37846(c9543.f33126)) {
                strategyBean2.f21307 = c9512.f33048.f33126;
            }
            long j = c9512.f33058;
            if (j != 0) {
                strategyBean2.f21310 = j;
            }
            if (c9512 != null && (map = c9512.f33052) != null && map.size() > 0) {
                Map<String, String> map2 = c9512.f33052;
                strategyBean2.f21314 = map2;
                String str = map2.get("B11");
                strategyBean2.f21301 = str != null && str.equals("1");
                String str2 = c9512.f33052.get("B3");
                if (str2 != null) {
                    strategyBean2.f21311 = Long.parseLong(str2);
                }
                int i = c9512.f33055;
                strategyBean2.f21300 = i;
                strategyBean2.f21309 = i;
                String str3 = c9512.f33052.get("B27");
                if (str3 != null && str3.length() > 0) {
                    try {
                        int parseInt = Integer.parseInt(str3);
                        if (parseInt > 0) {
                            strategyBean2.f21317 = parseInt;
                        }
                    } catch (Exception e) {
                        if (!C9638.m37892(e)) {
                            e.printStackTrace();
                        }
                    }
                }
                String str4 = c9512.f33052.get("B25");
                strategyBean2.f21315 = str4 != null && str4.equals("1");
            }
            C9638.m37889("[Strategy] enableCrashReport:%b, enableQuery:%b, enableUserInfo:%b, enableAnr:%b, enableBlock:%b, enableSession:%b, enableSessionTimer:%b, sessionOverTime:%d, enableCocos:%b, strategyLastUpdateTime:%d", Boolean.valueOf(strategyBean2.f21303), Boolean.valueOf(strategyBean2.f21304), Boolean.valueOf(strategyBean2.f21306), Boolean.valueOf(strategyBean2.f21301), Boolean.valueOf(strategyBean2.f21305), Boolean.valueOf(strategyBean2.f21308), Boolean.valueOf(strategyBean2.f21313), Long.valueOf(strategyBean2.f21300), Boolean.valueOf(strategyBean2.f21315), Long.valueOf(strategyBean2.f21310));
            this.f33362 = strategyBean2;
            if (!C9633.m37857(c9512.f33053)) {
                C9638.m37885("[Strategy] download url is null", new Object[0]);
                this.f33362.f21316 = "";
            }
            if (!C9633.m37857(c9512.f33051)) {
                C9638.m37885("[Strategy] download crashurl is null", new Object[0]);
                this.f33362.f21299 = "";
            }
            C9642.m37920().m37941(2);
            C9598 c9598 = new C9598();
            c9598.f33341 = 2;
            c9598.f33337 = strategyBean2.f21312;
            c9598.f33342 = strategyBean2.f21318;
            c9598.f33340 = C9633.m37828(strategyBean2);
            C9642.m37920().m37938(c9598);
            m37657(strategyBean2, true);
        }
    }

    public final void m37657(StrategyBean strategyBean, boolean z) {
        C9638.m37885("[Strategy] Notify %s", C9613.class.getName());
        C9613.m37734(strategyBean, z);
        for (AbstractC9630 abstractC9630 : this.f33361) {
            try {
                C9638.m37885("[Strategy] Notify %s", abstractC9630.getClass().getName());
                abstractC9630.mo37817(strategyBean);
            } catch (Throwable th) {
                if (!C9638.m37892(th)) {
                    th.printStackTrace();
                }
            }
        }
    }

    public final synchronized boolean m37658() {
        return this.f33362 != null;
    }
}