安全中心 v4.9.2版本的 MD5 值为:d64c0ec7920c532fa6e6d9bb001cf9bf
以下内容为反编译后的 on.java 源代码,内容仅作参考
package tcs;
import android.os.HandlerThread;
import android.text.TextUtils;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
import meri.service.aresengine.model.SmsEntity;
import tmsdk.common.module.bumblebee.Bumblebee;
import tmsdk.common.tcc.SmsCheckInput;
import tmsdk.common.tcc.SmsCheckResult;
public class on {
public static final String TAG = "BumbleBeeUtil";
private static HandlerThread cDY = null;
public static final long ccP = 3500;
public static final int cdd = 1;
public static final int cdx = 2;
public static boolean ccL = true;
public static boolean ccM = false;
public static SmsCheckResult ccN = null;
public static long bSu = 0;
public static SmsCheckInput ccO = null;
public static int ccQ = 0;
public static int ccR = 0;
private static ahf cDr = tmsdk.common.l.dH("bumblebee");
private static String ccS = "fstsw";
private static String ccT = "fpost";
public static boolean cec = false;
public static boolean ceJ = false;
public static SmsCheckResult a(SmsCheckInput smsCheckInput) {
SmsCheckResult smsCheckResult = new SmsCheckResult();
if (ccL && tz.Qj() && !tz.Qr()) {
SmsCheckResult b = Bumblebee.nl().b(smsCheckInput);
ccQ++;
if (b == null) {
SmsCheckResult smsCheckResult2 = new SmsCheckResult();
Bumblebee.nl().a(smsCheckInput, smsCheckResult2);
ccR++;
return smsCheckResult2;
}
b.sIsCloudResult = true;
return b;
}
Bumblebee.nl().a(smsCheckInput, smsCheckResult);
return smsCheckResult;
}
public static int[] a(SmsEntity smsEntity, int[] iArr) {
if (smsEntity == null) {
return null;
}
if (smsEntity.bVg < 0 || smsEntity.bVg > 2) {
smsEntity.bVg = 0;
}
return Bumblebee.nl().a(new SmsCheckInput(smsEntity.Zg, smsEntity.bhs, 0, 0, 0, 0), iArr);
}
public static SmsCheckResult a(SmsCheckInput smsCheckInput, SmsEntity smsEntity) {
SmsCheckResult smsCheckResult;
if (ccN != null && ccO != null && a(ccO, smsCheckInput)) {
return ccN;
}
SmsCheckResult smsCheckResult2 = new SmsCheckResult();
if (smsCheckInput != null) {
if (ccL && tz.Qj() && !tz.Qr()) {
String str = null;
if (!TextUtils.isEmpty(smsCheckInput.sms)) {
str = Bumblebee.nl().r(smsCheckInput.sender, smsCheckInput.sms);
}
if (!TextUtils.isEmpty(str)) {
SmsCheckInput copy = smsCheckInput.copy();
copy.sms = str;
smsCheckResult = Bumblebee.nl().b(copy);
if (smsCheckResult == null) {
smsCheckResult = new SmsCheckResult();
Bumblebee.nl().a(smsCheckInput, smsCheckResult);
}
if (smsCheckResult == null) {
smsCheckResult = new SmsCheckResult();
}
ccO = smsCheckInput;
bSu = System.currentTimeMillis();
ccN = smsCheckResult;
return smsCheckResult;
}
Bumblebee.nl().a(smsCheckInput, smsCheckResult2);
} else {
Bumblebee.nl().a(smsCheckInput, smsCheckResult2);
}
smsCheckResult = smsCheckResult2;
if (smsCheckResult == null) {
}
ccO = smsCheckInput;
bSu = System.currentTimeMillis();
ccN = smsCheckResult;
return smsCheckResult;
}
return smsCheckResult2;
}
public static SmsCheckResult b(final SmsCheckInput smsCheckInput, final SmsEntity smsEntity) {
SmsCheckResult smsCheckResult;
if (ccN != null && ccO != null && a(ccO, smsCheckInput)) {
return ccN;
}
SmsCheckResult smsCheckResult2 = new SmsCheckResult();
if (smsCheckInput != null) {
final meri.service.aresengine.k uz = ((ou) nr.f(com.meri.service.bg.ares.a.class)).Bj().uz();
if (uz == null) {
smsCheckResult = a(smsCheckInput);
} else {
final CountDownLatch countDownLatch = new CountDownLatch(2);
final AtomicReference atomicReference = new AtomicReference();
final AtomicInteger atomicInteger = new AtomicInteger(-1);
aig aigVar = (aig) bgm.nL(4);
aigVar.c(new Runnable() {
@Override
public void run() {
atomicReference.set(on.a(smsCheckInput));
countDownLatch.countDown();
}
}, "checkSms");
aigVar.c(new Runnable() {
@Override
public void run() {
atomicInteger.set(uz.i(smsEntity));
countDownLatch.countDown();
if (atomicInteger.get() == 3) {
countDownLatch.countDown();
}
}
}, "checkFakePZ");
try {
} catch (InterruptedException e) {
e.printStackTrace();
}
if (countDownLatch.await(ccP, TimeUnit.MILLISECONDS)) {
if (atomicInteger.get() == 3) {
smsCheckResult2.uiContentType = 326;
smsCheckResult2.uiFinalAction = 2;
if (Bb()) {
smsCheckResult2.uiShowRiskName = 326;
smsCheckResult2.sRiskClassify = "涉嫌伪基站诈骗";
smsCheckResult2.sRiskUrl = Bc();
smsCheckResult2.sRiskName = "诈骗详情";
smsCheckResult = smsCheckResult2;
}
} else if (atomicReference.get() != null) {
smsCheckResult = (SmsCheckResult) atomicReference.get();
}
}
smsCheckResult = smsCheckResult2;
}
if (smsCheckResult == null) {
smsCheckResult = new SmsCheckResult();
}
ccO = smsCheckInput;
bSu = System.currentTimeMillis();
ccN = smsCheckResult;
return smsCheckResult;
}
return smsCheckResult2;
}
private static boolean a(SmsCheckInput smsCheckInput, SmsCheckInput smsCheckInput2) {
if (smsCheckInput != null && !TextUtils.isEmpty(smsCheckInput.sms) && !TextUtils.isEmpty(smsCheckInput.sender) && smsCheckInput2 != null && !TextUtils.isEmpty(smsCheckInput2.sms) && !TextUtils.isEmpty(smsCheckInput2.sender) && smsCheckInput.sms.equals(smsCheckInput2.sms) && tmsdk.common.internal.utils.u.iM(smsCheckInput.sender) == tmsdk.common.internal.utils.u.iM(smsCheckInput2.sender)) {
long currentTimeMillis = System.currentTimeMillis();
if (currentTimeMillis > bSu && currentTimeMillis - bSu < 20000) {
return true;
}
}
return false;
}
public static void d(boolean z) {
Bumblebee.nl().d(z);
}
public static SmsCheckResult s(String str, String str2) {
return Bumblebee.nl().s(str, str2);
}
public static int bh(int i) {
return Bumblebee.nl().bh(i);
}
public static String r(String str, String str2) {
return Bumblebee.nl().r(str, str2);
}
public static int w(String str, String str2) {
return Bumblebee.nl().w(str, str2);
}
public static HandlerThread xL() {
if (cDY == null) {
synchronized (on.class) {
if (cDY == null) {
cDY = ((aig) bgm.nL(4)).er(Bumblebee.TAG);
}
cDY.start();
}
}
return cDY;
}
public static boolean Bb() {
return cDr.getBoolean(ccS, true);
}
public static void aN(boolean z) {
cDr.r(ccS, z);
}
public static String Bc() {
return cDr.getString(ccT, "http://m.qq.com/wap/scam/");
}
public static void hf(String str) {
if (!TextUtils.isEmpty(str)) {
cDr.V(ccT, str);
}
}
}