正在查看: moonshot.企业版 v5.53.33 应用的 C5660.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v5.53.33 应用的 C5660.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package jnksI9k6J1HFuFo5YzBf.DdEnhsMlZWtEOFIm1zd3.UBVL9U3WwxbAPwDW6rA5.jnksI9k6J1HFuFo5YzBf;
import android.content.Context;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import jnksI9k6J1HFuFo5YzBf.DdEnhsMlZWtEOFIm1zd3.UBVL9U3WwxbAPwDW6rA5.C5718;
import jnksI9k6J1HFuFo5YzBf.DdEnhsMlZWtEOFIm1zd3.UBVL9U3WwxbAPwDW6rA5.jnksI9k6J1HFuFo5YzBf.C5609.C5610;
public final class C5660 {
public static List<AbstractC5581> f22938 = new ArrayList();
private static C5670 f22939 = null;
public static boolean f22940 = false;
public static boolean f22941 = true;
private static boolean f22942;
public static synchronized void m25872(Context context, C5718 c5718) {
synchronized (C5660.class) {
if (f22942) {
C5612.m25716("[init] initial Multi-times, ignore this.", new Object[0]);
return;
}
if (context == null) {
String str = C5612.f22851;
return;
}
C5569 m25537 = C5569.m25537(context);
if (m25876(m25537)) {
f22941 = false;
return;
}
String m25549 = m25537.m25549();
if (m25549 == null) {
String str2 = C5612.f22851;
} else {
m25874(context, m25549, m25537.f22585, c5718);
}
}
}
public static synchronized void m25873(AbstractC5581 abstractC5581) {
synchronized (C5660.class) {
if (!f22938.contains(abstractC5581)) {
f22938.add(abstractC5581);
}
}
}
public static synchronized void m25874(Context context, String str, boolean z, C5718 c5718) {
byte[] bArr;
synchronized (C5660.class) {
if (f22942) {
C5612.m25716("[init] initial Multi-times, ignore this.", new Object[0]);
return;
}
if (context == null) {
String str2 = C5612.f22851;
return;
}
if (str == null) {
String str3 = C5612.f22851;
return;
}
f22942 = true;
if (z) {
f22940 = true;
C5612.f22852 = true;
C5612.m25716("Bugly debug模式开启,请在发布时把isDebug关闭。 -- Running in debug model for 'isDebug' is enabled. Please disable it when you release.", new Object[0]);
C5612.m25710("--------------------------------------------------------------------------------------------", new Object[0]);
C5612.m25716("Bugly debug模式将有以下行为特性 -- The following list shows the behaviour of debug model: ", new Object[0]);
C5612.m25716("[1] 输出详细的Bugly SDK的Log -- More detailed log of Bugly SDK will be output to logcat;", new Object[0]);
C5612.m25716("[2] 每一条Crash都会被立即上报 -- Every crash caught by Bugly will be uploaded immediately.", new Object[0]);
C5612.m25716("[3] 自定义日志将会在Logcat中输出 -- Custom log will be output to logcat.", new Object[0]);
C5612.m25710("--------------------------------------------------------------------------------------------", new Object[0]);
C5612.m25709("[init] Open debug mode of Bugly.", new Object[0]);
}
C5612.m25712(" crash report start initializing...", new Object[0]);
C5612.m25709("[init] Bugly start initializing...", new Object[0]);
C5612.m25712("[init] Bugly complete version: v%s", "4.1.9.3");
Context m25859 = C5658.m25859(context);
C5569 m25537 = C5569.m25537(m25859);
m25537.m25566();
C5565.m25526(m25859);
f22939 = C5670.m25913(m25859, f22938);
C5571.m25587(m25859);
C5609.m25698(m25859, f22938);
C5676 m25936 = C5676.m25936(m25859);
if (m25876(m25537)) {
f22941 = false;
return;
}
m25537.f22625 = str;
m25537.m25543("APP_ID", str);
C5612.m25712("[param] Set APP ID:%s", str);
if (c5718 != null) {
String m26167 = c5718.m26167();
if (!TextUtils.isEmpty(m26167)) {
if (m26167.length() > 100) {
String substring = m26167.substring(0, 100);
C5612.m25716("appVersion %s length is over limit %d substring to %s", m26167, 100, substring);
m26167 = substring;
}
m25537.f22612 = m26167;
C5612.m25712("[param] Set App version: %s", c5718.m26167());
}
try {
if (c5718.m26175()) {
String m26183 = c5718.m26183();
if (!TextUtils.isEmpty(m26183)) {
if (m26183.length() > 100) {
String substring2 = m26183.substring(0, 100);
C5612.m25716("appChannel %s length is over limit %d substring to %s", m26183, 100, substring2);
m26183 = substring2;
}
f22939.m25930(556, "app_channel", m26183.getBytes(), false);
m25537.f22603 = m26183;
}
} else {
Map<String, byte[]> m25931 = f22939.m25931(556, null);
if (m25931 != null && (bArr = m25931.get("app_channel")) != null) {
m25537.f22603 = new String(bArr);
}
}
C5612.m25712("[param] Set App channel: %s", m25537.f22603);
} catch (Exception e) {
if (f22940) {
e.printStackTrace();
}
}
String m26157 = c5718.m26157();
if (!TextUtils.isEmpty(m26157)) {
if (m26157.length() > 100) {
String substring3 = m26157.substring(0, 100);
C5612.m25716("appPackageName %s length is over limit %d substring to %s", m26157, 100, substring3);
m26157 = substring3;
}
m25537.f22630 = m26157;
C5612.m25712("[param] Set App package: %s", c5718.m26157());
}
String m26170 = c5718.m26170();
if (m26170 != null) {
if (m26170.length() > 100) {
String substring4 = m26170.substring(0, 100);
C5612.m25716("deviceId %s length is over limit %d substring to %s", m26170, 100, substring4);
m26170 = substring4;
}
m25537.m25544(m26170);
C5612.m25712("[param] Set device ID: %s", m26170);
}
String m26190 = c5718.m26190();
if (m26190 != null) {
m25537.m25570(m26190);
C5612.m25712("[param] Set device model: %s", m26190);
}
m25537.f22584 = c5718.m26159();
C5565.f22536 = c5718.m26174();
}
for (int i = 0; i < f22938.size(); i++) {
try {
if (m25936.m25949(f22938.get(i).f22731)) {
f22938.get(i).mo25619(m25859, z, c5718);
}
} catch (Throwable th) {
if (!C5612.m25717(th)) {
th.printStackTrace();
}
}
}
C5695.m26025(m25859, c5718);
long m26176 = c5718 != null ? c5718.m26176() : 0L;
C5609 m25702 = C5609.m25702();
m25702.f22819.m25762(m25702.new C5610(), m26176);
C5612.m25709("[init] Bugly initialization finished.", new Object[0]);
}
}
public static synchronized void m25875(Context context) {
synchronized (C5660.class) {
m25872(context, null);
}
}
private static boolean m25876(C5569 c5569) {
List<String> list = c5569.f22568;
c5569.getClass();
return list != null && list.contains("bugly");
}
}