正在查看: moonshot.企业版 v8.14.46 应用的 C9612.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v8.14.46 应用的 C9612.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package kp1AiJpjqJHu1Tcnj96z.saktfaQObACC6AiCgP8Y.zSFvmU2XOpXZrEfUxlHp.kp1AiJpjqJHu1Tcnj96z;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.os.Process;
import android.text.TextUtils;
import com.tencent.bugly.crashreport.common.info.PlugInBean;
import com.xiaomi.mipush.sdk.Constants;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
public final class C9612 {
private static final Map<String, String> f33384 = new HashMap();
private static C9612 f33385 = null;
public String f33386;
public String f33387;
public int f33394;
private String f33396;
private final Context f33402;
public final String f33403;
public final String f33408;
public String f33417;
public String f33420;
public String f33424;
public String f33433;
private String f33435;
public String f33437;
public String f33441;
public boolean f33445;
public boolean f33446;
public List<String> f33451;
public String f33452;
public String f33453;
public final SharedPreferences f33454;
private String f33455;
private String f33456;
public final SharedPreferences f33457;
public boolean f33391 = true;
public final String f33442 = "com.tencent.bugly";
public String f33388 = "4.1.9.3";
public final String f33422 = "";
@Deprecated
public final String f33439 = "";
public String f33415 = "unknown";
private String f33450 = "unknown";
private String f33419 = "";
public long f33426 = 0;
private String f33425 = null;
private long f33414 = -1;
private long f33390 = -1;
private long f33397 = -1;
private String f33413 = null;
private String f33406 = null;
private Map<String, PlugInBean> f33407 = null;
public boolean f33440 = false;
private String f33418 = null;
private Boolean f33449 = null;
private String f33423 = null;
public String f33421 = null;
public String f33392 = null;
private Map<String, PlugInBean> f33412 = null;
private Map<String, PlugInBean> f33430 = null;
public int f33443 = -1;
public int f33460 = -1;
private final Map<String, String> f33400 = new HashMap();
private final Map<String, String> f33410 = new HashMap();
private final Map<String, String> f33401 = new HashMap();
public String f33389 = "unknown";
public long f33409 = 0;
public long f33448 = 0;
public long f33398 = 0;
public long f33429 = 0;
public boolean f33411 = false;
public HashMap<String, String> f33458 = new HashMap<>();
public List<String> f33432 = new ArrayList();
public boolean f33438 = false;
public InterfaceC9640 f33447 = null;
public boolean f33434 = true;
public boolean f33436 = true;
public boolean f33428 = false;
private final Object f33444 = new Object();
public final Object f33393 = new Object();
private final Object f33459 = new Object();
private final Object f33405 = new Object();
public final Object f33427 = new Object();
public final Object f33395 = new Object();
private final Object f33416 = new Object();
private final List<Integer> f33404 = new ArrayList();
public final long f33399 = System.currentTimeMillis();
public final byte f33431 = 1;
private C9612(Context context) {
this.f33456 = null;
this.f33417 = null;
this.f33453 = null;
this.f33420 = null;
this.f33424 = null;
this.f33451 = null;
this.f33445 = false;
this.f33437 = null;
this.f33387 = null;
this.f33452 = null;
this.f33386 = "";
this.f33446 = false;
this.f33402 = C9633.m37830(context);
PackageInfo m37475 = C9522.m37475(context);
if (m37475 != null) {
try {
String str = m37475.versionName;
this.f33417 = str;
this.f33437 = str;
this.f33387 = Integer.toString(m37475.versionCode);
} catch (Throwable th) {
if (!C9638.m37892(th)) {
th.printStackTrace();
}
}
}
this.f33441 = C9522.m37478(context);
this.f33403 = C9522.m37474(Process.myPid());
this.f33453 = C9522.m37477(context);
this.f33408 = "Android " + C9526.m37499() + ",level " + C9526.m37503();
Map<String, String> m37472 = C9522.m37472(context);
if (m37472 != null) {
try {
this.f33451 = C9522.m37473(m37472);
String str2 = m37472.get("BUGLY_APPID");
if (str2 != null) {
this.f33420 = str2;
m37708("APP_ID", str2);
}
String str3 = m37472.get("BUGLY_APP_VERSION");
if (str3 != null) {
this.f33417 = str3;
}
String str4 = m37472.get("BUGLY_APP_CHANNEL");
if (str4 != null) {
this.f33424 = str4;
}
String str5 = m37472.get("BUGLY_ENABLE_DEBUG");
if (str5 != null) {
this.f33445 = str5.equalsIgnoreCase("true");
}
String str6 = m37472.get("com.tencent.rdm.uuid");
if (str6 != null) {
this.f33452 = str6;
}
String str7 = m37472.get("BUGLY_APP_BUILD_NO");
if (!TextUtils.isEmpty(str7)) {
this.f33394 = Integer.parseInt(str7);
}
String str8 = m37472.get("BUGLY_AREA");
if (str8 != null) {
this.f33386 = str8;
}
} catch (Throwable th2) {
if (!C9638.m37892(th2)) {
th2.printStackTrace();
}
}
}
try {
if (!context.getDatabasePath("bugly_db_").exists()) {
this.f33446 = true;
C9638.m37885("App is first time to be installed on the device.", new Object[0]);
}
} catch (Throwable th3) {
if (C9637.f33556) {
th3.printStackTrace();
}
}
this.f33454 = C9633.m37852("BUGLY_COMMON_VALUES", context);
this.f33457 = C9633.m37852("BUGLY_RESERVED_VALUES", context);
this.f33456 = C9526.m37501(context);
m37693();
C9638.m37885("com info create end", new Object[0]);
}
public static synchronized C9612 m37684(Context context) {
C9612 c9612;
synchronized (C9612.class) {
if (f33385 == null) {
f33385 = new C9612(context);
}
c9612 = f33385;
}
return c9612;
}
@Deprecated
public static boolean m37685() {
C9638.m37889("Detect if the emulator is unavailable", new Object[0]);
return false;
}
private String m37686() {
if (TextUtils.isEmpty(this.f33425)) {
this.f33425 = C9633.m37860("androidid", null);
}
return this.f33425;
}
public static synchronized C9612 m37687() {
C9612 c9612;
synchronized (C9612.class) {
c9612 = f33385;
}
return c9612;
}
@Deprecated
public static String m37688() {
return "";
}
@Deprecated
public static boolean m37689() {
C9638.m37889("Detect if the device hook is unavailable", new Object[0]);
return false;
}
private static String m37690() {
String uuid = UUID.randomUUID().toString();
return !C9633.m37846(uuid) ? uuid.replaceAll(Constants.ACCEPT_TIME_SEPARATOR_SERVER, "") : uuid;
}
public static int m37691() {
return C9526.m37503();
}
private void m37692(String str, String str2, boolean z) {
if (C9633.m37846(str)) {
C9638.m37893("key should not be empty %s", str);
return;
}
C9638.m37885("putExtraRequestData key:%s value:%s save:%s", str, str2, Boolean.valueOf(z));
synchronized (this.f33416) {
if (TextUtils.isEmpty(str2)) {
this.f33410.remove(str);
this.f33457.edit().remove(str).apply();
} else {
this.f33410.put(str, str2);
if (z) {
this.f33457.edit().putString(str, str2).apply();
}
}
}
}
private void m37693() {
try {
for (Map.Entry<String, ?> entry : this.f33457.getAll().entrySet()) {
C9638.m37885("put reserved request data from sp, key:%s value:%s", entry.getKey(), entry.getValue());
m37692(entry.getKey(), entry.getValue().toString(), false);
}
for (Map.Entry<String, String> entry2 : f33384.entrySet()) {
C9638.m37885("put reserved request data from cache, key:%s value:%s", entry2.getKey(), entry2.getValue());
m37692(entry2.getKey(), entry2.getValue(), true);
}
f33384.clear();
} catch (Throwable th) {
C9638.m37890(th);
}
}
public final void m37694(String str) {
this.f33396 = str;
if (!TextUtils.isEmpty(str)) {
C9633.m37825("deviceId", str);
}
synchronized (this.f33416) {
this.f33410.put("E8", str);
}
}
public final void m37695(String str) {
if (TextUtils.isEmpty(str)) {
return;
}
this.f33406 = str.trim();
}
public final String m37696() {
if (this.f33423 == null) {
String str = C9526.m37505();
this.f33423 = str;
C9638.m37889("ROM ID: %s", str);
}
return this.f33423;
}
public final long m37697() {
if (this.f33397 <= 0) {
this.f33397 = C9526.m37492();
}
return this.f33397;
}
public final void m37698(String str) {
C9638.m37889("change deviceModel,old:%s new:%s", this.f33455, str);
this.f33455 = str;
if (TextUtils.isEmpty(str)) {
return;
}
C9633.m37825("deviceModel", str);
}
public final String m37699() {
String str;
synchronized (this.f33395) {
str = this.f33415;
}
return str;
}
public final Map<String, String> m37700() {
synchronized (this.f33405) {
if (this.f33401.size() <= 0) {
return null;
}
return new HashMap(this.f33401);
}
}
public final synchronized Map<String, PlugInBean> m37701() {
Map<String, PlugInBean> map;
map = this.f33412;
Map<String, PlugInBean> map2 = this.f33430;
if (map2 != null) {
map.putAll(map2);
}
return map;
}
public final String m37702() {
String str = this.f33396;
if (str != null) {
return str;
}
String m37860 = C9633.m37860("deviceId", null);
this.f33396 = m37860;
if (m37860 != null) {
return m37860;
}
String m37686 = m37686();
this.f33396 = m37686;
if (TextUtils.isEmpty(m37686)) {
this.f33396 = m37690();
}
String str2 = this.f33396;
if (str2 == null) {
return "";
}
C9633.m37825("deviceId", str2);
return this.f33396;
}
public final synchronized String m37703() {
String str = this.f33455;
if (str != null) {
return str;
}
String m37860 = C9633.m37860("deviceModel", null);
this.f33455 = m37860;
if (m37860 != null) {
C9638.m37885("collect device model from sp:%s", m37860);
return this.f33455;
}
if (!this.f33440) {
C9638.m37885("not allow collect device model", new Object[0]);
return "fail";
}
String m37490 = C9526.m37490();
this.f33455 = m37490;
C9638.m37885("collect device model:%s", m37490);
C9633.m37825("deviceModel", this.f33455);
return this.f33455;
}
public final int m37704() {
int i;
synchronized (this.f33427) {
i = this.f33443;
}
return i;
}
public final Map<String, String> m37705() {
synchronized (this.f33459) {
if (this.f33400.size() <= 0) {
return null;
}
return new HashMap(this.f33400);
}
}
public final String m37706(String str) {
String remove;
if (C9633.m37846(str)) {
C9638.m37893("key should not be empty %s", String.valueOf(str));
return null;
}
synchronized (this.f33459) {
remove = this.f33400.remove(str);
}
return remove;
}
public final String m37707() {
return !C9633.m37846(this.f33433) ? this.f33433 : this.f33420;
}
public final void m37708(String str, String str2) {
if (C9633.m37846(str) || C9633.m37846(str2)) {
C9638.m37893("server key&value should not be empty %s %s", String.valueOf(str), String.valueOf(str2));
return;
}
synchronized (this.f33405) {
this.f33401.put(str, str2);
}
}
public final long m37709() {
if (this.f33390 <= 0) {
this.f33390 = C9526.m37502();
}
return this.f33390;
}
public final long m37710() {
if (this.f33414 <= 0) {
this.f33414 = C9526.m37487();
}
return this.f33414;
}
public final synchronized void m37711(String str) {
this.f33450 = String.valueOf(str);
}
public final Boolean m37712() {
if (this.f33449 == null) {
this.f33449 = Boolean.valueOf(C9526.m37497());
}
return this.f33449;
}
public final void m37713(String str, String str2) {
if (C9633.m37846(str) || C9633.m37846(str2)) {
C9638.m37893("key&value should not be empty %s %s", String.valueOf(str), String.valueOf(str2));
return;
}
synchronized (this.f33459) {
this.f33400.put(str, str2);
}
}
public final String m37714() {
if (this.f33418 == null) {
this.f33418 = C9526.m37494();
}
return this.f33418;
}
public final String m37715() {
try {
Map<String, ?> all = this.f33402.getSharedPreferences("BuglySdkInfos", 0).getAll();
if (!all.isEmpty()) {
synchronized (this.f33393) {
for (Map.Entry<String, ?> entry : all.entrySet()) {
try {
this.f33458.put(entry.getKey(), entry.getValue().toString());
} catch (Throwable th) {
C9638.m37892(th);
}
}
}
}
} catch (Throwable th2) {
C9638.m37892(th2);
}
if (this.f33458.isEmpty()) {
C9638.m37885("SDK_INFO is empty", new Object[0]);
return null;
}
StringBuilder sb = new StringBuilder();
for (Map.Entry<String, String> entry2 : this.f33458.entrySet()) {
sb.append("[");
sb.append(entry2.getKey());
sb.append(",");
sb.append(entry2.getValue());
sb.append("] ");
}
C9638.m37885("SDK_INFO = %s", sb.toString());
m37708("SDK_INFO", sb.toString());
return sb.toString();
}
public final synchronized void m37716(String str) {
this.f33419 = String.valueOf(str);
}
public final String m37717() {
String str;
synchronized (this.f33444) {
if (this.f33435 == null) {
m37723();
}
str = this.f33435;
}
return str;
}
public final void m37718() {
synchronized (this.f33459) {
this.f33400.clear();
}
}
public final synchronized String m37719() {
return this.f33419;
}
public final void m37720(int i, boolean z) {
C9638.m37885("setActivityForeState, hash:%s isFore:%s", Integer.valueOf(i), Boolean.valueOf(z));
if (z) {
this.f33404.add(Integer.valueOf(i));
} else {
this.f33404.remove(Integer.valueOf(i));
this.f33404.remove((Object) 0);
}
InterfaceC9640 interfaceC9640 = this.f33447;
if (interfaceC9640 != null) {
interfaceC9640.mo24743(this.f33404.size() > 0);
}
}
public final Set<String> m37721() {
Set<String> keySet;
synchronized (this.f33459) {
keySet = this.f33400.keySet();
}
return keySet;
}
public final synchronized Map<String, PlugInBean> m37722() {
Map<String, PlugInBean> map = this.f33407;
if (map != null && map.size() > 0) {
HashMap hashMap = new HashMap(this.f33407.size());
hashMap.putAll(this.f33407);
return hashMap;
}
return null;
}
public final void m37723() {
synchronized (this.f33444) {
this.f33435 = UUID.randomUUID().toString();
}
}
public final int m37724() {
int size;
synchronized (this.f33459) {
size = this.f33400.size();
}
return size;
}
public final String m37725() {
if (!TextUtils.isEmpty(this.f33406)) {
C9638.m37885("get cpu type from so:%s", this.f33406);
return this.f33406;
}
if (TextUtils.isEmpty(this.f33456)) {
return "unknown";
}
C9638.m37885("get cpu type from lib dir:%s", this.f33456);
return this.f33456;
}
public final boolean m37726() {
boolean z = this.f33404.size() > 0;
C9638.m37885("isAppForeground:%s", Boolean.valueOf(z));
return z;
}
public final String m37727(String str) {
String str2;
if (C9633.m37846(str)) {
C9638.m37893("key should not be empty %s", String.valueOf(str));
return null;
}
synchronized (this.f33459) {
str2 = this.f33400.get(str);
}
return str2;
}
public final Map<String, String> m37728() {
synchronized (this.f33416) {
if (this.f33410.size() <= 0) {
return null;
}
return new HashMap(this.f33410);
}
}
}