安全中心 v4.9.2版本的 MD5 值为:d64c0ec7920c532fa6e6d9bb001cf9bf
以下内容为反编译后的 bjy.java 源代码,内容仅作参考
package tcs;
import android.content.Context;
import android.util.Base64;
import android.util.SparseArray;
import com.tencent.kingkong.database.SQLiteDatabase;
import java.util.Calendar;
import java.util.Date;
import java.util.Map;
import java.util.Set;
public class bjy {
private static bjy fZf = null;
private SparseArray<a> fZs;
private String OT = "http://oth.str.mdt.qq.com:8080/analytics/upload";
private int c = 360;
private int d = 1;
private int e = 100;
private Map<String, String> eFo = null;
private byte fZt = 3;
private byte dfL = 2;
private String eBM = "*^@K#K@!";
private String ahd = SQLiteDatabase.KeyEmpty;
private String l = SQLiteDatabase.KeyEmpty;
private String eBN = SQLiteDatabase.KeyEmpty;
private bjy() {
this.fZs = null;
this.fZs = new SparseArray<>(3);
this.fZs.put(1, new a(1));
this.fZs.put(2, new a(2));
this.fZs.put(3, new a(3));
}
public static bjy ahu() {
if (fZf == null) {
synchronized (bjy.class) {
if (fZf == null) {
fZf = new bjy();
}
}
}
return fZf;
}
public final String b() {
return this.OT;
}
public final void a(String str) {
this.OT = str;
}
public final int c() {
return this.c;
}
public final void a(int i) {
this.c = i;
}
public final Map<String, String> ahv() {
return this.eFo;
}
public final void g(Map<String, String> map) {
this.eFo = map;
}
public final synchronized SparseArray<a> ahw() {
SparseArray<a> sparseArray;
if (this.fZs != null) {
new bks();
sparseArray = bks.e(this.fZs);
} else {
sparseArray = null;
}
return sparseArray;
}
public final synchronized a qq(int i) {
return this.fZs != null ? this.fZs.get(i) : null;
}
public final boolean oZ() {
if (this.eFo != null) {
String str = this.eFo.get("updateQimei");
if (str != null && "n".equalsIgnoreCase(str)) {
return false;
}
if (str != null && "y".equalsIgnoreCase(str)) {
return true;
}
}
return true;
}
public final int ja() {
String str;
if (this.eFo == null || (str = this.eFo.get("maxQIMEIQueryOneDay")) == null || str.trim().equals(SQLiteDatabase.KeyEmpty)) {
return this.d;
}
try {
return Integer.valueOf(str).intValue();
} catch (Exception e) {
return this.d;
}
}
public final int je() {
String str;
if (this.eFo == null || (str = this.eFo.get("maxStrategyQueryOneDay")) == null || str.trim().equals(SQLiteDatabase.KeyEmpty)) {
return this.e;
}
try {
return Integer.valueOf(str).intValue();
} catch (Exception e) {
return this.e;
}
}
public final synchronized boolean ji() {
boolean z;
String str;
if (this.eFo != null && (str = this.eFo.get("zeroPeak")) != null && "y".equalsIgnoreCase(str)) {
z = Calendar.getInstance().get(11) == 0;
}
return z;
}
public final synchronized boolean Lq() {
boolean z;
String str;
if (this.eFo != null && (str = this.eFo.get("qimeiZeroPeak")) != null && "y".equalsIgnoreCase(str)) {
z = Calendar.getInstance().get(11) == 0;
}
return z;
}
public final synchronized byte ahx() {
return this.fZt;
}
public final synchronized byte ahy() {
return this.dfL;
}
public final synchronized String oU() {
return this.eBM;
}
public final synchronized void bi(String str) {
this.eBM = str;
}
public final synchronized String oV() {
return this.ahd;
}
private synchronized void cn(String str) {
this.l = str;
this.ahd = Base64.encodeToString(bjt.D(str, true), 2);
}
public final synchronized String ahz() {
return this.l;
}
private synchronized void co(String str) {
this.eBN = str;
}
public final synchronized String lH() {
return this.eBN;
}
public final synchronized void p(final Context context, final String str, final String str2) {
this.eBN = str;
com.tencent.beacon.b.c.ahD().a(new Runnable(this) {
@Override
public final void run() {
long j;
Object[] objArr = new Object[2];
objArr[0] = str;
try {
j = bjt.oq(str2).getTime() / 1000;
} catch (Exception e) {
j = 0;
}
if (j == 0) {
j = (new Date().getTime() / 1000) + 86400;
}
objArr[1] = Long.valueOf(j);
bjt.a(context, "sid", objArr);
}
});
}
public final synchronized void a(Context context) {
long j;
Object[] au = bjt.au(context, "sid");
if (au != null && au.length == 3) {
long time = new Date().getTime() / 1000;
try {
j = ((Long) au[2]).longValue();
} catch (Exception e) {
j = 0;
}
if (j > time) {
co((String) au[1]);
}
}
cn(bjt.C(context));
}
public static class a {
private final int a;
private boolean Zp = false;
private String Rb = "http://oth.eve.mdt.qq.com:8080/analytics/upload";
private String Rc = "http://jrlt.beacon.qq.com/analytics/upload";
private Map<String, String> eFu = null;
private Set<String> fZu = null;
private Set<String> fZv = null;
public a(int i) {
this.a = i;
}
public final boolean a() {
return this.Zp;
}
public final void a(boolean z) {
this.Zp = z;
}
public final String b() {
return bko.Zp ? this.Rc : this.Rb;
}
public final void a(String str) {
this.Rb = str;
}
public final Map<String, String> ahA() {
return this.eFu;
}
public final void g(Map<String, String> map) {
this.eFu = map;
}
public final Set<String> ahB() {
return this.fZu;
}
public final void j(Set<String> set) {
this.fZu = set;
}
public final int lU() {
return this.a;
}
public final Set<String> ahC() {
return this.fZv;
}
public final void k(Set<String> set) {
this.fZv = set;
}
}
}