手机管家 v7.2.0版本的 MD5 值为:dd92ba71696e35a4b841cd1b5de53cd3
以下内容为反编译后的 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.c;
import meri.service.aresengine.model.SmsEntity;
import tmsdk.common.TMSDKContext;
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;
private static c.a eRk;
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) bir.pC(4);
aigVar.c(new Runnable() {
@Override
public void run() {
SmsCheckResult a = on.a(SmsCheckInput.this);
atomicReference.set(a);
if (smsEntity != null && a != null && a.sIsCloudResult) {
uz.b(smsEntity, a.uiFinalAction, a.uiContentType);
}
countDownLatch.countDown();
if (countDownLatch.getCount() == 1 && smsEntity != null && on.eRk != null && !on.a(smsEntity, (SmsCheckResult) atomicReference.get())) {
SmsEntity smsEntity2 = new SmsEntity(smsEntity);
smsEntity2.Jv |= SmsEntity.eRj;
on.eRk.a(smsEntity2, 64, 2, null);
}
}
}, "checkSms");
aigVar.c(new Runnable() {
@Override
public void run() {
if (SmsEntity.this != null) {
SmsCheckResult smsCheckResult3 = new SmsCheckResult();
if (on.cDr != null && !on.cDr.getBoolean("DISABLE_WJZ")) {
Bumblebee.nl().a(smsCheckInput, smsCheckResult3);
}
atomicInteger.set(uz.a(SmsEntity.this, smsCheckResult3.uiFinalAction, smsCheckResult3.uiContentType));
}
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;
smsEntity.Jv |= SmsEntity.fbT;
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) bir.pC(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);
}
}
public static void d(c.a aVar) {
eRk = aVar;
}
public static boolean a(SmsEntity smsEntity, SmsCheckResult smsCheckResult) {
if ((smsCheckResult.uiFinalAction == 2 || smsCheckResult.uiFinalAction == 3) && smsCheckResult.uiContentType != 102) {
return true;
}
return (s(smsEntity.getAddress(), smsEntity.getBody()) == null || !com.meri.service.bg.ares.i.bG(TMSDKContext.getApplicaionContext()) || ((ou) nr.f(com.meri.service.bg.ares.a.class)).Bj().ut() == null) ? false : true;
}
}