正在查看: moonshot.企业版 v8.14.46 应用的 C1440.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v8.14.46 应用的 C1440.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 C1440 {
public static long f4996 = 259200000;
public static int f4997 = 1000;
private static C1440 f4998;
private static String f4999;
private final StrategyBean f5000;
private final List<AbstractC1468> f5001;
private StrategyBean f5002 = null;
public final C1456 f5003;
private Context f5004;
public class C1441 extends Thread {
public C1441() {
}
@Override
public final void run() {
try {
Map<String, byte[]> m7638 = C1480.m7618().m7638(C1440.f4997, null);
if (m7638 != null) {
byte[] bArr = m7638.get("device");
byte[] bArr2 = m7638.get("gateway");
if (bArr != null) {
C1450.m7382(C1440.this.f5004).m7414(new String(bArr));
}
if (bArr2 != null) {
C1450.m7382(C1440.this.f5004).m7409(new String(bArr2));
}
}
C1440.this.f5002 = C1440.m7348();
if (C1440.this.f5002 != null) {
if (C1471.m7544(C1440.f4999) || !C1471.m7555(C1440.f4999)) {
C1440.this.f5002.f846 = StrategyBean.f826;
C1440.this.f5002.f829 = StrategyBean.f827;
} else {
C1440.this.f5002.f846 = C1440.f4999;
C1440.this.f5002.f829 = C1440.f4999;
}
}
} catch (Throwable th) {
if (!C1476.m7590(th)) {
th.printStackTrace();
}
}
C1440 c1440 = C1440.this;
c1440.m7355(c1440.f5002, false);
}
}
private C1440(Context context, List<AbstractC1468> list) {
this.f5004 = context;
if (C1450.m7382(context) != null) {
String str = C1450.m7382(context).f5026;
if ("oversea".equals(str)) {
StrategyBean.f826 = "https://astat.bugly.qcloud.com/rqd/async";
StrategyBean.f827 = "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.f827 = "https://astat.bugly.cros.wr.pvp.net/:8180/rqd/async";
}
}
this.f5000 = new StrategyBean();
this.f5001 = list;
this.f5003 = C1456.m7454();
}
public static synchronized C1440 m7346() {
C1440 c1440;
synchronized (C1440.class) {
c1440 = f4998;
}
return c1440;
}
public static StrategyBean m7348() {
byte[] bArr;
List<C1436> m7645 = C1480.m7618().m7645(2);
if (m7645 == null || m7645.size() <= 0 || (bArr = m7645.get(0).f4980) == null) {
return null;
}
return (StrategyBean) C1471.m7553(bArr, StrategyBean.CREATOR);
}
public static synchronized C1440 m7349(Context context, List<AbstractC1468> list) {
C1440 c1440;
synchronized (C1440.class) {
if (f4998 == null) {
f4998 = new C1440(context, list);
}
c1440 = f4998;
}
return c1440;
}
public static void m7350(String str) {
if (C1471.m7544(str) || !C1471.m7555(str)) {
C1476.m7591("URL user set is invalid.", new Object[0]);
} else {
f4999 = str;
}
}
public final StrategyBean m7353() {
StrategyBean strategyBean = this.f5002;
if (strategyBean != null) {
if (!C1471.m7555(strategyBean.f846)) {
this.f5002.f846 = StrategyBean.f826;
}
if (!C1471.m7555(this.f5002.f829)) {
this.f5002.f829 = StrategyBean.f827;
}
return this.f5002;
}
if (!C1471.m7544(f4999) && C1471.m7555(f4999)) {
StrategyBean strategyBean2 = this.f5000;
String str = f4999;
strategyBean2.f846 = str;
strategyBean2.f829 = str;
}
return this.f5000;
}
public final void m7354(C1350 c1350) {
Map<String, String> map;
if (c1350 == null) {
return;
}
StrategyBean strategyBean = this.f5002;
if (strategyBean == null || c1350.f4698 != strategyBean.f840) {
StrategyBean strategyBean2 = new StrategyBean();
strategyBean2.f833 = c1350.f4696;
strategyBean2.f834 = c1350.f4690;
strategyBean2.f836 = c1350.f4699;
if (C1471.m7544(f4999) || !C1471.m7555(f4999)) {
if (C1471.m7555(c1350.f4693)) {
C1476.m7583("[Strategy] Upload url changes to %s", c1350.f4693);
strategyBean2.f846 = c1350.f4693;
}
if (C1471.m7555(c1350.f4691)) {
C1476.m7583("[Strategy] Exception upload url changes to %s", c1350.f4691);
strategyBean2.f829 = c1350.f4691;
}
}
C1381 c1381 = c1350.f4688;
if (c1381 != null && !C1471.m7544(c1381.f4766)) {
strategyBean2.f837 = c1350.f4688.f4766;
}
long j = c1350.f4698;
if (j != 0) {
strategyBean2.f840 = j;
}
if (c1350 != null && (map = c1350.f4692) != null && map.size() > 0) {
Map<String, String> map2 = c1350.f4692;
strategyBean2.f844 = map2;
String str = map2.get("B11");
strategyBean2.f831 = str != null && str.equals("1");
String str2 = c1350.f4692.get("B3");
if (str2 != null) {
strategyBean2.f841 = Long.parseLong(str2);
}
int i = c1350.f4695;
strategyBean2.f830 = i;
strategyBean2.f839 = i;
String str3 = c1350.f4692.get("B27");
if (str3 != null && str3.length() > 0) {
try {
int parseInt = Integer.parseInt(str3);
if (parseInt > 0) {
strategyBean2.f847 = parseInt;
}
} catch (Exception e) {
if (!C1476.m7590(e)) {
e.printStackTrace();
}
}
}
String str4 = c1350.f4692.get("B25");
strategyBean2.f845 = str4 != null && str4.equals("1");
}
C1476.m7587("[Strategy] enableCrashReport:%b, enableQuery:%b, enableUserInfo:%b, enableAnr:%b, enableBlock:%b, enableSession:%b, enableSessionTimer:%b, sessionOverTime:%d, enableCocos:%b, strategyLastUpdateTime:%d", Boolean.valueOf(strategyBean2.f833), Boolean.valueOf(strategyBean2.f834), Boolean.valueOf(strategyBean2.f836), Boolean.valueOf(strategyBean2.f831), Boolean.valueOf(strategyBean2.f835), Boolean.valueOf(strategyBean2.f838), Boolean.valueOf(strategyBean2.f843), Long.valueOf(strategyBean2.f830), Boolean.valueOf(strategyBean2.f845), Long.valueOf(strategyBean2.f840));
this.f5002 = strategyBean2;
if (!C1471.m7555(c1350.f4693)) {
C1476.m7583("[Strategy] download url is null", new Object[0]);
this.f5002.f846 = "";
}
if (!C1471.m7555(c1350.f4691)) {
C1476.m7583("[Strategy] download crashurl is null", new Object[0]);
this.f5002.f829 = "";
}
C1480.m7618().m7639(2);
C1436 c1436 = new C1436();
c1436.f4981 = 2;
c1436.f4977 = strategyBean2.f842;
c1436.f4982 = strategyBean2.f848;
c1436.f4980 = C1471.m7526(strategyBean2);
C1480.m7618().m7636(c1436);
m7355(strategyBean2, true);
}
}
public final void m7355(StrategyBean strategyBean, boolean z) {
C1476.m7583("[Strategy] Notify %s", C1451.class.getName());
C1451.m7432(strategyBean, z);
for (AbstractC1468 abstractC1468 : this.f5001) {
try {
C1476.m7583("[Strategy] Notify %s", abstractC1468.getClass().getName());
abstractC1468.mo7515(strategyBean);
} catch (Throwable th) {
if (!C1476.m7590(th)) {
th.printStackTrace();
}
}
}
}
public final synchronized boolean m7356() {
return this.f5002 != null;
}
}