新浪彩票 v0.96.37版本的 MD5 值为:0c7ddce345383506e2959f5d75bdceab
以下内容为反编译后的 C4359.java 源代码,内容仅作参考
package ewUlBWKNoApzb1Mnhgn4.ZB1GY7mGzn6rcZDnMVLb.tuTnrQl15gwcjciRsKuT.ewUlBWKNoApzb1Mnhgn4;
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 C4359 {
public String f15894;
public List<String> f15895;
private String f15905;
public String f15910;
public final String f15911;
public String f15912;
public String f15915;
public final SharedPreferences f15916;
public String f15918;
private String f15921;
public String f15923;
public boolean f15929;
private final Context f15930;
public final SharedPreferences f15937;
public final String f15941;
public int f15946;
private String f15947;
private String f15948;
public String f15951;
public String f15952;
public boolean f15956;
public String f15958;
public String f15961;
private static final Map<String, String> f15893 = new HashMap();
private static C4359 f15892 = null;
public boolean f15968 = true;
public final String f15965 = "com.tencent.bugly";
public String f15954 = "4.1.9.3";
public final String f15898 = "";
@Deprecated
public final String f15939 = "";
public String f15967 = "unknown";
private String f15950 = "unknown";
private String f15908 = "";
public long f15963 = 0;
private String f15903 = null;
private long f15899 = -1;
private long f15896 = -1;
private long f15917 = -1;
private String f15909 = null;
private String f15966 = null;
private Map<String, PlugInBean> f15913 = null;
public boolean f15931 = false;
private String f15932 = null;
private Boolean f15925 = null;
private String f15955 = null;
public String f15926 = null;
public String f15935 = null;
private Map<String, PlugInBean> f15936 = null;
private Map<String, PlugInBean> f15906 = null;
public int f15928 = -1;
public int f15940 = -1;
private final Map<String, String> f15922 = new HashMap();
private final Map<String, String> f15942 = new HashMap();
private final Map<String, String> f15949 = new HashMap();
public String f15924 = "unknown";
public long f15914 = 0;
public long f15904 = 0;
public long f15907 = 0;
public long f15901 = 0;
public boolean f15943 = false;
public HashMap<String, String> f15920 = new HashMap<>();
public List<String> f15927 = new ArrayList();
public boolean f15960 = false;
public InterfaceC4323 f15938 = null;
public boolean f15902 = true;
public boolean f15962 = true;
public boolean f15900 = false;
private final Object f15945 = new Object();
public final Object f15934 = new Object();
private final Object f15919 = new Object();
private final Object f15944 = new Object();
public final Object f15953 = new Object();
public final Object f15933 = new Object();
private final Object f15897 = new Object();
private final List<Integer> f15964 = new ArrayList();
public final long f15959 = System.currentTimeMillis();
public final byte f15957 = 1;
private C4359(Context context) {
this.f15948 = null;
this.f15910 = null;
this.f15894 = null;
this.f15918 = null;
this.f15961 = null;
this.f15895 = null;
this.f15956 = false;
this.f15915 = null;
this.f15952 = null;
this.f15951 = null;
this.f15912 = "";
this.f15929 = false;
this.f15930 = C4362.m20574(context);
PackageInfo m20460 = C4342.m20460(context);
if (m20460 != null) {
try {
String str = m20460.versionName;
this.f15910 = str;
this.f15915 = str;
this.f15952 = Integer.toString(m20460.versionCode);
} catch (Throwable th) {
if (!C4311.m20321(th)) {
th.printStackTrace();
}
}
}
this.f15923 = C4342.m20461(context);
this.f15941 = C4342.m20459(Process.myPid());
this.f15894 = C4342.m20463(context);
this.f15911 = "Android " + C4374.m20649() + ",level " + C4374.m20642();
Map<String, String> m20465 = C4342.m20465(context);
if (m20465 != null) {
try {
this.f15895 = C4342.m20464(m20465);
String str2 = m20465.get("BUGLY_APPID");
if (str2 != null) {
this.f15918 = str2;
m20550("APP_ID", str2);
}
String str3 = m20465.get("BUGLY_APP_VERSION");
if (str3 != null) {
this.f15910 = str3;
}
String str4 = m20465.get("BUGLY_APP_CHANNEL");
if (str4 != null) {
this.f15961 = str4;
}
String str5 = m20465.get("BUGLY_ENABLE_DEBUG");
if (str5 != null) {
this.f15956 = str5.equalsIgnoreCase("true");
}
String str6 = m20465.get("com.tencent.rdm.uuid");
if (str6 != null) {
this.f15951 = str6;
}
String str7 = m20465.get("BUGLY_APP_BUILD_NO");
if (!TextUtils.isEmpty(str7)) {
this.f15946 = Integer.parseInt(str7);
}
String str8 = m20465.get("BUGLY_AREA");
if (str8 != null) {
this.f15912 = str8;
}
} catch (Throwable th2) {
if (!C4311.m20321(th2)) {
th2.printStackTrace();
}
}
}
try {
if (!context.getDatabasePath("bugly_db_").exists()) {
this.f15929 = true;
C4311.m20330("App is first time to be installed on the device.", new Object[0]);
}
} catch (Throwable th3) {
if (C4346.f15852) {
th3.printStackTrace();
}
}
this.f15937 = C4362.m20582("BUGLY_COMMON_VALUES", context);
this.f15916 = C4362.m20582("BUGLY_RESERVED_VALUES", context);
this.f15948 = C4374.m20646(context);
m20508();
C4311.m20330("com info create end", new Object[0]);
}
public static synchronized C4359 m20506() {
C4359 c4359;
synchronized (C4359.class) {
c4359 = f15892;
}
return c4359;
}
@Deprecated
public static String m20507() {
return "";
}
private void m20508() {
try {
for (Map.Entry<String, ?> entry : this.f15916.getAll().entrySet()) {
C4311.m20330("put reserved request data from sp, key:%s value:%s", entry.getKey(), entry.getValue());
m20509(entry.getKey(), entry.getValue().toString(), false);
}
for (Map.Entry<String, String> entry2 : f15893.entrySet()) {
C4311.m20330("put reserved request data from cache, key:%s value:%s", entry2.getKey(), entry2.getValue());
m20509(entry2.getKey(), entry2.getValue(), true);
}
f15893.clear();
} catch (Throwable th) {
C4311.m20327(th);
}
}
private void m20509(String str, String str2, boolean z) {
if (C4362.m20590(str)) {
C4311.m20329("key should not be empty %s", str);
return;
}
C4311.m20330("putExtraRequestData key:%s value:%s save:%s", str, str2, Boolean.valueOf(z));
synchronized (this.f15897) {
if (TextUtils.isEmpty(str2)) {
this.f15942.remove(str);
this.f15916.edit().remove(str).apply();
} else {
this.f15942.put(str, str2);
if (z) {
this.f15916.edit().putString(str, str2).apply();
}
}
}
}
private String m20510() {
if (TextUtils.isEmpty(this.f15903)) {
this.f15903 = C4362.m20555("androidid", null);
}
return this.f15903;
}
public static int m20511() {
return C4374.m20642();
}
@Deprecated
public static boolean m20512() {
C4311.m20326("Detect if the device hook is unavailable", new Object[0]);
return false;
}
private static String m20513() {
String uuid = UUID.randomUUID().toString();
return !C4362.m20590(uuid) ? uuid.replaceAll(Constants.ACCEPT_TIME_SEPARATOR_SERVER, "") : uuid;
}
@Deprecated
public static boolean m20514() {
C4311.m20326("Detect if the emulator is unavailable", new Object[0]);
return false;
}
public static synchronized C4359 m20515(Context context) {
C4359 c4359;
synchronized (C4359.class) {
if (f15892 == null) {
f15892 = new C4359(context);
}
c4359 = f15892;
}
return c4359;
}
public final String m20516() {
if (!TextUtils.isEmpty(this.f15966)) {
C4311.m20330("get cpu type from so:%s", this.f15966);
return this.f15966;
} else if (TextUtils.isEmpty(this.f15948)) {
return "unknown";
} else {
C4311.m20330("get cpu type from lib dir:%s", this.f15948);
return this.f15948;
}
}
public final int m20517() {
int size;
synchronized (this.f15919) {
size = this.f15922.size();
}
return size;
}
public final void m20518(String str) {
if (TextUtils.isEmpty(str)) {
return;
}
this.f15966 = str.trim();
}
public final void m20519(String str, String str2) {
if (C4362.m20590(str) || C4362.m20590(str2)) {
C4311.m20329("key&value should not be empty %s %s", String.valueOf(str), String.valueOf(str2));
return;
}
synchronized (this.f15919) {
this.f15922.put(str, str2);
}
}
public final String m20520() {
if (!C4362.m20590(this.f15958)) {
return this.f15958;
}
return this.f15918;
}
public final synchronized void m20521(String str) {
this.f15908 = String.valueOf(str);
}
public final boolean m20522() {
boolean z = this.f15964.size() > 0;
C4311.m20330("isAppForeground:%s", Boolean.valueOf(z));
return z;
}
public final void m20523() {
synchronized (this.f15919) {
this.f15922.clear();
}
}
public final synchronized void m20524(String str) {
this.f15950 = String.valueOf(str);
}
public final String m20525(String str) {
String remove;
if (C4362.m20590(str)) {
C4311.m20329("key should not be empty %s", String.valueOf(str));
return null;
}
synchronized (this.f15919) {
remove = this.f15922.remove(str);
}
return remove;
}
public final long m20526() {
if (this.f15896 <= 0) {
this.f15896 = C4374.m20644();
}
return this.f15896;
}
public final synchronized String m20527() {
String str = this.f15905;
if (str != null) {
return str;
}
String m20555 = C4362.m20555("deviceModel", null);
this.f15905 = m20555;
if (m20555 != null) {
C4311.m20330("collect device model from sp:%s", m20555);
return this.f15905;
} else if (!this.f15931) {
C4311.m20330("not allow collect device model", new Object[0]);
return "fail";
} else {
String m20643 = C4374.m20643();
this.f15905 = m20643;
C4311.m20330("collect device model:%s", m20643);
C4362.m20577("deviceModel", this.f15905);
return this.f15905;
}
}
public final String m20528() {
String str;
synchronized (this.f15933) {
str = this.f15967;
}
return str;
}
public final void m20529(String str) {
C4311.m20326("change deviceModel,old:%s new:%s", this.f15905, str);
this.f15905 = str;
if (TextUtils.isEmpty(str)) {
return;
}
C4362.m20577("deviceModel", str);
}
public final Map<String, String> m20530() {
synchronized (this.f15944) {
if (this.f15949.size() <= 0) {
return null;
}
return new HashMap(this.f15949);
}
}
public final synchronized Map<String, PlugInBean> m20531() {
Map<String, PlugInBean> map = this.f15913;
if (map != null && map.size() > 0) {
HashMap hashMap = new HashMap(this.f15913.size());
hashMap.putAll(this.f15913);
return hashMap;
}
return null;
}
public final Boolean m20532() {
if (this.f15925 == null) {
this.f15925 = Boolean.valueOf(C4374.m20637());
}
return this.f15925;
}
public final Set<String> m20533() {
Set<String> keySet;
synchronized (this.f15919) {
keySet = this.f15922.keySet();
}
return keySet;
}
public final synchronized Map<String, PlugInBean> m20534() {
Map<String, PlugInBean> map;
map = this.f15936;
Map<String, PlugInBean> map2 = this.f15906;
if (map2 != null) {
map.putAll(map2);
}
return map;
}
public final synchronized String m20535() {
return this.f15908;
}
public final long m20536() {
if (this.f15899 <= 0) {
this.f15899 = C4374.m20655();
}
return this.f15899;
}
public final String m20537() {
if (this.f15955 == null) {
String str = C4374.m20647();
this.f15955 = str;
C4311.m20326("ROM ID: %s", str);
}
return this.f15955;
}
public final Map<String, String> m20538() {
synchronized (this.f15919) {
if (this.f15922.size() <= 0) {
return null;
}
return new HashMap(this.f15922);
}
}
public final Map<String, String> m20539() {
synchronized (this.f15897) {
if (this.f15942.size() <= 0) {
return null;
}
return new HashMap(this.f15942);
}
}
public final int m20540() {
int i;
synchronized (this.f15953) {
i = this.f15928;
}
return i;
}
public final long m20541() {
if (this.f15917 <= 0) {
this.f15917 = C4374.m20640();
}
return this.f15917;
}
public final String m20542(String str) {
String str2;
if (C4362.m20590(str)) {
C4311.m20329("key should not be empty %s", String.valueOf(str));
return null;
}
synchronized (this.f15919) {
str2 = this.f15922.get(str);
}
return str2;
}
public final void m20543() {
synchronized (this.f15945) {
this.f15947 = UUID.randomUUID().toString();
}
}
public final void m20544(String str) {
this.f15921 = str;
if (!TextUtils.isEmpty(str)) {
C4362.m20577("deviceId", str);
}
synchronized (this.f15897) {
this.f15942.put("E8", str);
}
}
public final String m20545() {
if (this.f15932 == null) {
this.f15932 = C4374.m20654();
}
return this.f15932;
}
public final String m20546() {
try {
Map<String, ?> all = this.f15930.getSharedPreferences("BuglySdkInfos", 0).getAll();
if (!all.isEmpty()) {
synchronized (this.f15934) {
for (Map.Entry<String, ?> entry : all.entrySet()) {
this.f15920.put(entry.getKey(), entry.getValue().toString());
}
}
}
} catch (Throwable th) {
C4311.m20321(th);
}
if (!this.f15920.isEmpty()) {
StringBuilder sb = new StringBuilder();
for (Map.Entry<String, String> entry2 : this.f15920.entrySet()) {
sb.append("[");
sb.append(entry2.getKey());
sb.append(",");
sb.append(entry2.getValue());
sb.append("] ");
}
C4311.m20330("SDK_INFO = %s", sb.toString());
m20550("SDK_INFO", sb.toString());
return sb.toString();
}
C4311.m20330("SDK_INFO is empty", new Object[0]);
return null;
}
public final String m20547() {
String str;
synchronized (this.f15945) {
if (this.f15947 == null) {
m20543();
}
str = this.f15947;
}
return str;
}
public final void m20548(int i, boolean z) {
C4311.m20330("setActivityForeState, hash:%s isFore:%s", Integer.valueOf(i), Boolean.valueOf(z));
if (z) {
this.f15964.add(Integer.valueOf(i));
} else {
this.f15964.remove(Integer.valueOf(i));
this.f15964.remove((Object) 0);
}
InterfaceC4323 interfaceC4323 = this.f15938;
if (interfaceC4323 != null) {
interfaceC4323.mo14654(this.f15964.size() > 0);
}
}
public final String m20549() {
String str = this.f15921;
if (str != null) {
return str;
}
String m20555 = C4362.m20555("deviceId", null);
this.f15921 = m20555;
if (m20555 != null) {
return m20555;
}
String m20510 = m20510();
this.f15921 = m20510;
if (TextUtils.isEmpty(m20510)) {
this.f15921 = m20513();
}
String str2 = this.f15921;
if (str2 != null) {
C4362.m20577("deviceId", str2);
return this.f15921;
}
return "";
}
public final void m20550(String str, String str2) {
if (C4362.m20590(str) || C4362.m20590(str2)) {
C4311.m20329("server key&value should not be empty %s %s", String.valueOf(str), String.valueOf(str2));
return;
}
synchronized (this.f15944) {
this.f15949.put(str, str2);
}
}
}