导航菜单

页面标题

页面副标题

moonshot.企业版 v5.53.33 - C5609.java 源代码

正在查看: moonshot.企业版 v5.53.33 应用的 C5609.java JAVA 源代码文件

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


package jnksI9k6J1HFuFo5YzBf.DdEnhsMlZWtEOFIm1zd3.UBVL9U3WwxbAPwDW6rA5.jnksI9k6J1HFuFo5YzBf;

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

public final class C5609 {

    public static int f22815 = 1000;

    private static C5609 f22816 = null;

    public static long f22817 = 259200000;

    private static String f22818;

    public final C5623 f22819;

    private StrategyBean f22820 = null;

    private final StrategyBean f22821;

    private final List<AbstractC5581> f22822;

    private Context f22823;

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

        @Override
        public final void run() {
            try {
                Map<String, byte[]> m25931 = C5670.m25907().m25931(C5609.f22815, null);
                if (m25931 != null) {
                    byte[] bArr = m25931.get("device");
                    byte[] bArr2 = m25931.get("gateway");
                    if (bArr != null) {
                        C5569.m25537(C5609.this.f22823).m25545(new String(bArr));
                    }
                    if (bArr2 != null) {
                        C5569.m25537(C5609.this.f22823).m25569(new String(bArr2));
                    }
                }
                C5609.this.f22820 = C5609.m25700();
                if (C5609.this.f22820 != null) {
                    if (C5658.m25857(C5609.f22818) || !C5658.m25835(C5609.f22818)) {
                        C5609.this.f22820.f21257 = StrategyBean.f21241;
                        C5609.this.f22820.f21262 = StrategyBean.f21243;
                    } else {
                        C5609.this.f22820.f21257 = C5609.f22818;
                        C5609.this.f22820.f21262 = C5609.f22818;
                    }
                }
            } catch (Throwable th) {
                if (!C5612.m25717(th)) {
                    th.printStackTrace();
                }
            }
            C5609 c5609 = C5609.this;
            c5609.m25707(c5609.f22820, false);
        }
    }

    private C5609(Context context, List<AbstractC5581> list) {
        this.f22823 = context;
        if (C5569.m25537(context) != null) {
            String str = C5569.m25537(context).f22621;
            if ("oversea".equals(str)) {
                StrategyBean.f21241 = "https://astat.bugly.qcloud.com/rqd/async";
                StrategyBean.f21243 = "https://astat.bugly.qcloud.com/rqd/async";
            } else if ("na_https".equals(str)) {
                StrategyBean.f21241 = "https://astat.bugly.cros.wr.pvp.net/:8180/rqd/async";
                StrategyBean.f21243 = "https://astat.bugly.cros.wr.pvp.net/:8180/rqd/async";
            }
        }
        this.f22821 = new StrategyBean();
        this.f22822 = list;
        this.f22819 = C5623.m25759();
    }

    public static void m25697(String str) {
        if (C5658.m25857(str) || !C5658.m25835(str)) {
            C5612.m25716("URL user set is invalid.", new Object[0]);
        } else {
            f22818 = str;
        }
    }

    public static synchronized C5609 m25698(Context context, List<AbstractC5581> list) {
        C5609 c5609;
        synchronized (C5609.class) {
            if (f22816 == null) {
                f22816 = new C5609(context, list);
            }
            c5609 = f22816;
        }
        return c5609;
    }

    public static StrategyBean m25700() {
        byte[] bArr;
        List<C5608> m25927 = C5670.m25907().m25927(2);
        if (m25927 == null || m25927.size() <= 0 || (bArr = m25927.get(0).f22810) == null) {
            return null;
        }
        return (StrategyBean) C5658.m25871(bArr, StrategyBean.CREATOR);
    }

    public static synchronized C5609 m25702() {
        C5609 c5609;
        synchronized (C5609.class) {
            c5609 = f22816;
        }
        return c5609;
    }

    public final void m25704(C5688 c5688) {
        Map<String, String> map;
        if (c5688 == null) {
            return;
        }
        StrategyBean strategyBean = this.f22820;
        if (strategyBean == null || c5688.f23049 != strategyBean.f21256) {
            StrategyBean strategyBean2 = new StrategyBean();
            strategyBean2.f21251 = c5688.f23041;
            strategyBean2.f21259 = c5688.f23045;
            strategyBean2.f21246 = c5688.f23047;
            if (C5658.m25857(f22818) || !C5658.m25835(f22818)) {
                if (C5658.m25835(c5688.f23042)) {
                    C5612.m25713("[Strategy] Upload url changes to %s", c5688.f23042);
                    strategyBean2.f21257 = c5688.f23042;
                }
                if (C5658.m25835(c5688.f23050)) {
                    C5612.m25713("[Strategy] Exception upload url changes to %s", c5688.f23050);
                    strategyBean2.f21262 = c5688.f23050;
                }
            }
            C5682 c5682 = c5688.f23051;
            if (c5682 != null && !C5658.m25857(c5682.f23020)) {
                strategyBean2.f21247 = c5688.f23051.f23020;
            }
            long j = c5688.f23049;
            if (j != 0) {
                strategyBean2.f21256 = j;
            }
            if (c5688 != null && (map = c5688.f23040) != null && map.size() > 0) {
                Map<String, String> map2 = c5688.f23040;
                strategyBean2.f21263 = map2;
                String str = map2.get("B11");
                strategyBean2.f21261 = str != null && str.equals("1");
                String str2 = c5688.f23040.get("B3");
                if (str2 != null) {
                    strategyBean2.f21249 = Long.parseLong(str2);
                }
                int i = c5688.f23048;
                strategyBean2.f21260 = i;
                strategyBean2.f21254 = i;
                String str3 = c5688.f23040.get("B27");
                if (str3 != null && str3.length() > 0) {
                    try {
                        int parseInt = Integer.parseInt(str3);
                        if (parseInt > 0) {
                            strategyBean2.f21255 = parseInt;
                        }
                    } catch (Exception e) {
                        if (!C5612.m25717(e)) {
                            e.printStackTrace();
                        }
                    }
                }
                String str4 = c5688.f23040.get("B25");
                strategyBean2.f21258 = str4 != null && str4.equals("1");
            }
            C5612.m25712("[Strategy] enableCrashReport:%b, enableQuery:%b, enableUserInfo:%b, enableAnr:%b, enableBlock:%b, enableSession:%b, enableSessionTimer:%b, sessionOverTime:%d, enableCocos:%b, strategyLastUpdateTime:%d", Boolean.valueOf(strategyBean2.f21251), Boolean.valueOf(strategyBean2.f21259), Boolean.valueOf(strategyBean2.f21246), Boolean.valueOf(strategyBean2.f21261), Boolean.valueOf(strategyBean2.f21244), Boolean.valueOf(strategyBean2.f21248), Boolean.valueOf(strategyBean2.f21252), Long.valueOf(strategyBean2.f21260), Boolean.valueOf(strategyBean2.f21258), Long.valueOf(strategyBean2.f21256));
            this.f22820 = strategyBean2;
            if (!C5658.m25835(c5688.f23042)) {
                C5612.m25713("[Strategy] download url is null", new Object[0]);
                this.f22820.f21257 = "";
            }
            if (!C5658.m25835(c5688.f23050)) {
                C5612.m25713("[Strategy] download crashurl is null", new Object[0]);
                this.f22820.f21262 = "";
            }
            C5670.m25907().m25932(2);
            C5608 c5608 = new C5608();
            c5608.f22808 = 2;
            c5608.f22813 = strategyBean2.f21245;
            c5608.f22814 = strategyBean2.f21253;
            c5608.f22810 = C5658.m25849(strategyBean2);
            C5670.m25907().m25929(c5608);
            m25707(strategyBean2, true);
        }
    }

    public final StrategyBean m25705() {
        StrategyBean strategyBean = this.f22820;
        if (strategyBean != null) {
            if (!C5658.m25835(strategyBean.f21257)) {
                this.f22820.f21257 = StrategyBean.f21241;
            }
            if (!C5658.m25835(this.f22820.f21262)) {
                this.f22820.f21262 = StrategyBean.f21243;
            }
            return this.f22820;
        }
        if (!C5658.m25857(f22818) && C5658.m25835(f22818)) {
            StrategyBean strategyBean2 = this.f22821;
            String str = f22818;
            strategyBean2.f21257 = str;
            strategyBean2.f21262 = str;
        }
        return this.f22821;
    }

    public final synchronized boolean m25706() {
        return this.f22820 != null;
    }

    public final void m25707(StrategyBean strategyBean, boolean z) {
        C5612.m25713("[Strategy] Notify %s", C5695.class.getName());
        C5695.m26007(strategyBean, z);
        for (AbstractC5581 abstractC5581 : this.f22822) {
            try {
                C5612.m25713("[Strategy] Notify %s", abstractC5581.getClass().getName());
                abstractC5581.mo25620(strategyBean);
            } catch (Throwable th) {
                if (!C5612.m25717(th)) {
                    th.printStackTrace();
                }
            }
        }
    }
}