正在查看: moonshot.企业版 v8.14.46 应用的 C9637.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v8.14.46 应用的 C9637.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package kp1AiJpjqJHu1Tcnj96z.saktfaQObACC6AiCgP8Y.zSFvmU2XOpXZrEfUxlHp.kp1AiJpjqJHu1Tcnj96z;
import android.content.Context;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import kp1AiJpjqJHu1Tcnj96z.saktfaQObACC6AiCgP8Y.zSFvmU2XOpXZrEfUxlHp.C9645;
import kp1AiJpjqJHu1Tcnj96z.saktfaQObACC6AiCgP8Y.zSFvmU2XOpXZrEfUxlHp.kp1AiJpjqJHu1Tcnj96z.C9602.C9603;
public final class C9637 {
public static boolean f33556 = false;
public static boolean f33557 = true;
private static C9642 f33558;
public static List<AbstractC9630> f33559 = new ArrayList();
private static boolean f33560;
public static synchronized void m37879(Context context, String str, boolean z, C9645 c9645) {
byte[] bArr;
synchronized (C9637.class) {
if (f33560) {
C9638.m37893("[init] initial Multi-times, ignore this.", new Object[0]);
return;
}
if (context == null) {
String str2 = C9638.f33563;
return;
}
if (str == null) {
String str3 = C9638.f33563;
return;
}
f33560 = true;
if (z) {
f33556 = true;
C9638.f33561 = true;
C9638.m37893("Bugly debug模式开启,请在发布时把isDebug关闭。 -- Running in debug model for 'isDebug' is enabled. Please disable it when you release.", new Object[0]);
C9638.m37884("--------------------------------------------------------------------------------------------", new Object[0]);
C9638.m37893("Bugly debug模式将有以下行为特性 -- The following list shows the behaviour of debug model: ", new Object[0]);
C9638.m37893("[1] 输出详细的Bugly SDK的Log -- More detailed log of Bugly SDK will be output to logcat;", new Object[0]);
C9638.m37893("[2] 每一条Crash都会被立即上报 -- Every crash caught by Bugly will be uploaded immediately.", new Object[0]);
C9638.m37893("[3] 自定义日志将会在Logcat中输出 -- Custom log will be output to logcat.", new Object[0]);
C9638.m37884("--------------------------------------------------------------------------------------------", new Object[0]);
C9638.m37888("[init] Open debug mode of Bugly.", new Object[0]);
}
C9638.m37889(" crash report start initializing...", new Object[0]);
C9638.m37888("[init] Bugly start initializing...", new Object[0]);
C9638.m37889("[init] Bugly complete version: v%s", "4.1.9.3");
Context m37830 = C9633.m37830(context);
C9612 m37684 = C9612.m37684(m37830);
m37684.m37715();
C9564.m37549(m37830);
f33558 = C9642.m37930(m37830, f33559);
C9509.m37437(m37830);
C9602.m37651(m37830, f33559);
C9624 m37775 = C9624.m37775(m37830);
if (m37883(m37684)) {
f33557 = false;
return;
}
m37684.f33420 = str;
m37684.m37708("APP_ID", str);
C9638.m37889("[param] Set APP ID:%s", str);
if (c9645 != null) {
String m37976 = c9645.m37976();
if (!TextUtils.isEmpty(m37976)) {
if (m37976.length() > 100) {
String substring = m37976.substring(0, 100);
C9638.m37893("appVersion %s length is over limit %d substring to %s", m37976, 100, substring);
m37976 = substring;
}
m37684.f33417 = m37976;
C9638.m37889("[param] Set App version: %s", c9645.m37976());
}
try {
if (c9645.m37974()) {
String m37958 = c9645.m37958();
if (!TextUtils.isEmpty(m37958)) {
if (m37958.length() > 100) {
String substring2 = m37958.substring(0, 100);
C9638.m37893("appChannel %s length is over limit %d substring to %s", m37958, 100, substring2);
m37958 = substring2;
}
f33558.m37943(556, "app_channel", m37958.getBytes(), false);
m37684.f33424 = m37958;
}
} else {
Map<String, byte[]> m37940 = f33558.m37940(556, null);
if (m37940 != null && (bArr = m37940.get("app_channel")) != null) {
m37684.f33424 = new String(bArr);
}
}
C9638.m37889("[param] Set App channel: %s", m37684.f33424);
} catch (Exception e) {
if (f33556) {
e.printStackTrace();
}
}
String m37977 = c9645.m37977();
if (!TextUtils.isEmpty(m37977)) {
if (m37977.length() > 100) {
String substring3 = m37977.substring(0, 100);
C9638.m37893("appPackageName %s length is over limit %d substring to %s", m37977, 100, substring3);
m37977 = substring3;
}
m37684.f33441 = m37977;
C9638.m37889("[param] Set App package: %s", c9645.m37977());
}
String m37951 = c9645.m37951();
if (m37951 != null) {
if (m37951.length() > 100) {
String substring4 = m37951.substring(0, 100);
C9638.m37893("deviceId %s length is over limit %d substring to %s", m37951, 100, substring4);
m37951 = substring4;
}
m37684.m37694(m37951);
C9638.m37889("[param] Set device ID: %s", m37951);
}
String m37979 = c9645.m37979();
if (m37979 != null) {
m37684.m37698(m37979);
C9638.m37889("[param] Set device model: %s", m37979);
}
m37684.f33391 = c9645.m37973();
C9564.f33201 = c9645.m37978();
}
for (int i = 0; i < f33559.size(); i++) {
try {
if (m37775.m37779(f33559.get(i).f33538)) {
f33559.get(i).mo37819(m37830, z, c9645);
}
} catch (Throwable th) {
if (!C9638.m37892(th)) {
th.printStackTrace();
}
}
}
C9613.m37746(m37830, c9645);
long m37956 = c9645 != null ? c9645.m37956() : 0L;
C9602 m37648 = C9602.m37648();
m37648.f33363.m37758(m37648.new C9603(), m37956);
C9638.m37888("[init] Bugly initialization finished.", new Object[0]);
}
}
public static synchronized void m37880(Context context) {
synchronized (C9637.class) {
m37882(context, null);
}
}
public static synchronized void m37881(AbstractC9630 abstractC9630) {
synchronized (C9637.class) {
if (!f33559.contains(abstractC9630)) {
f33559.add(abstractC9630);
}
}
}
public static synchronized void m37882(Context context, C9645 c9645) {
synchronized (C9637.class) {
if (f33560) {
C9638.m37893("[init] initial Multi-times, ignore this.", new Object[0]);
return;
}
if (context == null) {
String str = C9638.f33563;
return;
}
C9612 m37684 = C9612.m37684(context);
if (m37883(m37684)) {
f33557 = false;
return;
}
String m37707 = m37684.m37707();
if (m37707 == null) {
String str2 = C9638.f33563;
} else {
m37879(context, m37707, m37684.f33445, c9645);
}
}
}
private static boolean m37883(C9612 c9612) {
List<String> list = c9612.f33451;
c9612.getClass();
return list != null && list.contains("bugly");
}
}