正在查看: moonshot.企业版 v5.53.33 应用的 C0312.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v5.53.33 应用的 C0312.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.C0370;
import jnksI9k6J1HFuFo5YzBf.DdEnhsMlZWtEOFIm1zd3.UBVL9U3WwxbAPwDW6rA5.jnksI9k6J1HFuFo5YzBf.C0261.C0262;
public final class C0312 {
public static List<AbstractC0233> f2338 = new ArrayList();
private static C0322 f2339 = null;
public static boolean f2340 = false;
public static boolean f2341 = true;
private static boolean f2342;
public static synchronized void m1760(Context context, C0370 c0370) {
synchronized (C0312.class) {
if (f2342) {
C0264.m1604("[init] initial Multi-times, ignore this.", new Object[0]);
return;
}
if (context == null) {
String str = C0264.f2251;
return;
}
C0221 m1425 = C0221.m1425(context);
if (m1764(m1425)) {
f2341 = false;
return;
}
String m1437 = m1425.m1437();
if (m1437 == null) {
String str2 = C0264.f2251;
} else {
m1762(context, m1437, m1425.f1985, c0370);
}
}
}
public static synchronized void m1761(AbstractC0233 abstractC0233) {
synchronized (C0312.class) {
if (!f2338.contains(abstractC0233)) {
f2338.add(abstractC0233);
}
}
}
public static synchronized void m1762(Context context, String str, boolean z, C0370 c0370) {
byte[] bArr;
synchronized (C0312.class) {
if (f2342) {
C0264.m1604("[init] initial Multi-times, ignore this.", new Object[0]);
return;
}
if (context == null) {
String str2 = C0264.f2251;
return;
}
if (str == null) {
String str3 = C0264.f2251;
return;
}
f2342 = true;
if (z) {
f2340 = true;
C0264.f2252 = true;
C0264.m1604("Bugly debug模式开启,请在发布时把isDebug关闭。 -- Running in debug model for 'isDebug' is enabled. Please disable it when you release.", new Object[0]);
C0264.m1598("--------------------------------------------------------------------------------------------", new Object[0]);
C0264.m1604("Bugly debug模式将有以下行为特性 -- The following list shows the behaviour of debug model: ", new Object[0]);
C0264.m1604("[1] 输出详细的Bugly SDK的Log -- More detailed log of Bugly SDK will be output to logcat;", new Object[0]);
C0264.m1604("[2] 每一条Crash都会被立即上报 -- Every crash caught by Bugly will be uploaded immediately.", new Object[0]);
C0264.m1604("[3] 自定义日志将会在Logcat中输出 -- Custom log will be output to logcat.", new Object[0]);
C0264.m1598("--------------------------------------------------------------------------------------------", new Object[0]);
C0264.m1597("[init] Open debug mode of Bugly.", new Object[0]);
}
C0264.m1600(" crash report start initializing...", new Object[0]);
C0264.m1597("[init] Bugly start initializing...", new Object[0]);
C0264.m1600("[init] Bugly complete version: v%s", "4.1.9.3");
Context m1747 = C0310.m1747(context);
C0221 m1425 = C0221.m1425(m1747);
m1425.m1454();
C0217.m1414(m1747);
f2339 = C0322.m1801(m1747, f2338);
C0223.m1475(m1747);
C0261.m1586(m1747, f2338);
C0328 m1824 = C0328.m1824(m1747);
if (m1764(m1425)) {
f2341 = false;
return;
}
m1425.f2025 = str;
m1425.m1431("APP_ID", str);
C0264.m1600("[param] Set APP ID:%s", str);
if (c0370 != null) {
String m2055 = c0370.m2055();
if (!TextUtils.isEmpty(m2055)) {
if (m2055.length() > 100) {
String substring = m2055.substring(0, 100);
C0264.m1604("appVersion %s length is over limit %d substring to %s", m2055, 100, substring);
m2055 = substring;
}
m1425.f2012 = m2055;
C0264.m1600("[param] Set App version: %s", c0370.m2055());
}
try {
if (c0370.m2063()) {
String m2071 = c0370.m2071();
if (!TextUtils.isEmpty(m2071)) {
if (m2071.length() > 100) {
String substring2 = m2071.substring(0, 100);
C0264.m1604("appChannel %s length is over limit %d substring to %s", m2071, 100, substring2);
m2071 = substring2;
}
f2339.m1818(556, "app_channel", m2071.getBytes(), false);
m1425.f2003 = m2071;
}
} else {
Map<String, byte[]> m1819 = f2339.m1819(556, null);
if (m1819 != null && (bArr = m1819.get("app_channel")) != null) {
m1425.f2003 = new String(bArr);
}
}
C0264.m1600("[param] Set App channel: %s", m1425.f2003);
} catch (Exception e) {
if (f2340) {
e.printStackTrace();
}
}
String m2045 = c0370.m2045();
if (!TextUtils.isEmpty(m2045)) {
if (m2045.length() > 100) {
String substring3 = m2045.substring(0, 100);
C0264.m1604("appPackageName %s length is over limit %d substring to %s", m2045, 100, substring3);
m2045 = substring3;
}
m1425.f2030 = m2045;
C0264.m1600("[param] Set App package: %s", c0370.m2045());
}
String m2058 = c0370.m2058();
if (m2058 != null) {
if (m2058.length() > 100) {
String substring4 = m2058.substring(0, 100);
C0264.m1604("deviceId %s length is over limit %d substring to %s", m2058, 100, substring4);
m2058 = substring4;
}
m1425.m1432(m2058);
C0264.m1600("[param] Set device ID: %s", m2058);
}
String m2078 = c0370.m2078();
if (m2078 != null) {
m1425.m1458(m2078);
C0264.m1600("[param] Set device model: %s", m2078);
}
m1425.f1984 = c0370.m2047();
C0217.f1936 = c0370.m2062();
}
for (int i = 0; i < f2338.size(); i++) {
try {
if (m1824.m1837(f2338.get(i).f2131)) {
f2338.get(i).mo1507(m1747, z, c0370);
}
} catch (Throwable th) {
if (!C0264.m1605(th)) {
th.printStackTrace();
}
}
}
C0347.m1913(m1747, c0370);
long m2064 = c0370 != null ? c0370.m2064() : 0L;
C0261 m1590 = C0261.m1590();
m1590.f2219.m1650(m1590.new C0262(), m2064);
C0264.m1597("[init] Bugly initialization finished.", new Object[0]);
}
}
public static synchronized void m1763(Context context) {
synchronized (C0312.class) {
m1760(context, null);
}
}
private static boolean m1764(C0221 c0221) {
List<String> list = c0221.f1968;
c0221.getClass();
return list != null && list.contains("bugly");
}
}