导航菜单

页面标题

页面副标题

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

正在查看: moonshot.企业版 v5.53.33 应用的 C0261.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 C0261 {

    public static int f2215 = 1000;

    private static C0261 f2216 = null;

    public static long f2217 = 259200000;

    private static String f2218;

    public final C0275 f2219;

    private StrategyBean f2220 = null;

    private final StrategyBean f2221;

    private final List<AbstractC0233> f2222;

    private Context f2223;

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

        @Override
        public final void run() {
            try {
                Map<String, byte[]> m1819 = C0322.m1795().m1819(C0261.f2215, null);
                if (m1819 != null) {
                    byte[] bArr = m1819.get("device");
                    byte[] bArr2 = m1819.get("gateway");
                    if (bArr != null) {
                        C0221.m1425(C0261.this.f2223).m1433(new String(bArr));
                    }
                    if (bArr2 != null) {
                        C0221.m1425(C0261.this.f2223).m1457(new String(bArr2));
                    }
                }
                C0261.this.f2220 = C0261.m1588();
                if (C0261.this.f2220 != null) {
                    if (C0310.m1745(C0261.f2218) || !C0310.m1723(C0261.f2218)) {
                        C0261.this.f2220.f842 = StrategyBean.f826;
                        C0261.this.f2220.f847 = StrategyBean.f828;
                    } else {
                        C0261.this.f2220.f842 = C0261.f2218;
                        C0261.this.f2220.f847 = C0261.f2218;
                    }
                }
            } catch (Throwable th) {
                if (!C0264.m1605(th)) {
                    th.printStackTrace();
                }
            }
            C0261 c0261 = C0261.this;
            c0261.m1595(c0261.f2220, false);
        }
    }

    private C0261(Context context, List<AbstractC0233> list) {
        this.f2223 = context;
        if (C0221.m1425(context) != null) {
            String str = C0221.m1425(context).f2021;
            if ("oversea".equals(str)) {
                StrategyBean.f826 = "https://astat.bugly.qcloud.com/rqd/async";
                StrategyBean.f828 = "https://astat.bugly.qcloud.com/rqd/async";
            } else if ("na_https".equals(str)) {
                StrategyBean.f826 = "https://astat.bugly.cros.wr.pvp.net/:8180/rqd/async";
                StrategyBean.f828 = "https://astat.bugly.cros.wr.pvp.net/:8180/rqd/async";
            }
        }
        this.f2221 = new StrategyBean();
        this.f2222 = list;
        this.f2219 = C0275.m1647();
    }

    public static void m1585(String str) {
        if (C0310.m1745(str) || !C0310.m1723(str)) {
            C0264.m1604("URL user set is invalid.", new Object[0]);
        } else {
            f2218 = str;
        }
    }

    public static synchronized C0261 m1586(Context context, List<AbstractC0233> list) {
        C0261 c0261;
        synchronized (C0261.class) {
            if (f2216 == null) {
                f2216 = new C0261(context, list);
            }
            c0261 = f2216;
        }
        return c0261;
    }

    public static StrategyBean m1588() {
        byte[] bArr;
        List<C0260> m1815 = C0322.m1795().m1815(2);
        if (m1815 == null || m1815.size() <= 0 || (bArr = m1815.get(0).f2210) == null) {
            return null;
        }
        return (StrategyBean) C0310.m1759(bArr, StrategyBean.CREATOR);
    }

    public static synchronized C0261 m1590() {
        C0261 c0261;
        synchronized (C0261.class) {
            c0261 = f2216;
        }
        return c0261;
    }

    public final void m1592(C0340 c0340) {
        Map<String, String> map;
        if (c0340 == null) {
            return;
        }
        StrategyBean strategyBean = this.f2220;
        if (strategyBean == null || c0340.f2449 != strategyBean.f841) {
            StrategyBean strategyBean2 = new StrategyBean();
            strategyBean2.f836 = c0340.f2441;
            strategyBean2.f844 = c0340.f2445;
            strategyBean2.f831 = c0340.f2447;
            if (C0310.m1745(f2218) || !C0310.m1723(f2218)) {
                if (C0310.m1723(c0340.f2442)) {
                    C0264.m1601("[Strategy] Upload url changes to %s", c0340.f2442);
                    strategyBean2.f842 = c0340.f2442;
                }
                if (C0310.m1723(c0340.f2450)) {
                    C0264.m1601("[Strategy] Exception upload url changes to %s", c0340.f2450);
                    strategyBean2.f847 = c0340.f2450;
                }
            }
            C0334 c0334 = c0340.f2451;
            if (c0334 != null && !C0310.m1745(c0334.f2420)) {
                strategyBean2.f832 = c0340.f2451.f2420;
            }
            long j = c0340.f2449;
            if (j != 0) {
                strategyBean2.f841 = j;
            }
            if (c0340 != null && (map = c0340.f2440) != null && map.size() > 0) {
                Map<String, String> map2 = c0340.f2440;
                strategyBean2.f848 = map2;
                String str = map2.get("B11");
                strategyBean2.f846 = str != null && str.equals("1");
                String str2 = c0340.f2440.get("B3");
                if (str2 != null) {
                    strategyBean2.f834 = Long.parseLong(str2);
                }
                int i = c0340.f2448;
                strategyBean2.f845 = i;
                strategyBean2.f839 = i;
                String str3 = c0340.f2440.get("B27");
                if (str3 != null && str3.length() > 0) {
                    try {
                        int parseInt = Integer.parseInt(str3);
                        if (parseInt > 0) {
                            strategyBean2.f840 = parseInt;
                        }
                    } catch (Exception e) {
                        if (!C0264.m1605(e)) {
                            e.printStackTrace();
                        }
                    }
                }
                String str4 = c0340.f2440.get("B25");
                strategyBean2.f843 = str4 != null && str4.equals("1");
            }
            C0264.m1600("[Strategy] enableCrashReport:%b, enableQuery:%b, enableUserInfo:%b, enableAnr:%b, enableBlock:%b, enableSession:%b, enableSessionTimer:%b, sessionOverTime:%d, enableCocos:%b, strategyLastUpdateTime:%d", Boolean.valueOf(strategyBean2.f836), Boolean.valueOf(strategyBean2.f844), Boolean.valueOf(strategyBean2.f831), Boolean.valueOf(strategyBean2.f846), Boolean.valueOf(strategyBean2.f829), Boolean.valueOf(strategyBean2.f833), Boolean.valueOf(strategyBean2.f837), Long.valueOf(strategyBean2.f845), Boolean.valueOf(strategyBean2.f843), Long.valueOf(strategyBean2.f841));
            this.f2220 = strategyBean2;
            if (!C0310.m1723(c0340.f2442)) {
                C0264.m1601("[Strategy] download url is null", new Object[0]);
                this.f2220.f842 = "";
            }
            if (!C0310.m1723(c0340.f2450)) {
                C0264.m1601("[Strategy] download crashurl is null", new Object[0]);
                this.f2220.f847 = "";
            }
            C0322.m1795().m1820(2);
            C0260 c0260 = new C0260();
            c0260.f2208 = 2;
            c0260.f2213 = strategyBean2.f830;
            c0260.f2214 = strategyBean2.f838;
            c0260.f2210 = C0310.m1737(strategyBean2);
            C0322.m1795().m1817(c0260);
            m1595(strategyBean2, true);
        }
    }

    public final StrategyBean m1593() {
        StrategyBean strategyBean = this.f2220;
        if (strategyBean != null) {
            if (!C0310.m1723(strategyBean.f842)) {
                this.f2220.f842 = StrategyBean.f826;
            }
            if (!C0310.m1723(this.f2220.f847)) {
                this.f2220.f847 = StrategyBean.f828;
            }
            return this.f2220;
        }
        if (!C0310.m1745(f2218) && C0310.m1723(f2218)) {
            StrategyBean strategyBean2 = this.f2221;
            String str = f2218;
            strategyBean2.f842 = str;
            strategyBean2.f847 = str;
        }
        return this.f2221;
    }

    public final synchronized boolean m1594() {
        return this.f2220 != null;
    }

    public final void m1595(StrategyBean strategyBean, boolean z) {
        C0264.m1601("[Strategy] Notify %s", C0347.class.getName());
        C0347.m1895(strategyBean, z);
        for (AbstractC0233 abstractC0233 : this.f2222) {
            try {
                C0264.m1601("[Strategy] Notify %s", abstractC0233.getClass().getName());
                abstractC0233.mo1508(strategyBean);
            } catch (Throwable th) {
                if (!C0264.m1605(th)) {
                    th.printStackTrace();
                }
            }
        }
    }
}