百度手机卫士 v8.4.5版本的 MD5 值为:c65ef854a40bb6200c4d8c4603c58403
以下内容为反编译后的 fjx.java 源代码,内容仅作参考
package dxoptimizer;
import android.content.BroadcastReceiver;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Message;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import cn.opda.a.phonoalbumshoushou.R;
import com.baidu.hao123.internal.config.Config;
import com.dianxinos.common.ui.view.DxProgressBar;
import com.dianxinos.optimizer.module.paysecurity.ClaimsApplyActivity;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public class fjx extends fju implements View.OnClickListener, axc, flu {
private fls aB;
private Map aC;
private ala aq;
private fke ar;
private DxProgressBar as;
private RelativeLayout at;
private LinearLayout au;
private String av;
private String ax;
private BroadcastReceiver ao = new fjy(this);
private int ap = 2;
private boolean aw = false;
private boolean ay = false;
private boolean az = false;
private int aA = 0;
@Override
public View a(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
this.ai = new fkf(this, this.aa);
htl.a(this.aa, this.ao, new IntentFilter("com.dianxinos.optimizer.action.SAFEURL_NOTIFY_DATA"));
this.ac = layoutInflater.inflate(R.layout.jadx_deobf_0x0000097a, viewGroup, false);
this.aq = bbb.a(this.aa);
this.as = (DxProgressBar) this.ac.findViewById(R.id.jadx_deobf_0x0000181c);
this.as.setOnClickListener(this);
aww.a(this.aa).a(this);
this.at = (RelativeLayout) c(R.id.jadx_deobf_0x0000181a);
this.au = (LinearLayout) c(R.id.jadx_deobf_0x0000181d);
R();
S();
return this.ac;
}
@Override
public void onClick(View view) {
if (view == this.as) {
if (this.aw) {
if (hqo.c(this.aa)) {
W();
} else {
htt.b(this.aa, R.string.jadx_deobf_0x000020c4, 0);
}
}
hts.a(this.aa);
hts.a("ps", "bsdc", (Number) 1);
}
}
@Override
public void P() {
if ("com.baidu.searchbox".equals(this.al)) {
fmw.e(this.aa);
fmw.d(this.aa);
} else {
this.ar = new fke(this, null);
this.ar.execute(new Void[0]);
}
}
@Override
public void handleMessage(Message message) {
super.handleMessage(message);
if (!this.aa.isFinishing() && !f()) {
switch (message.what) {
case 2:
this.ad.setVisibility(8);
this.ae.setVisibility(0);
this.af.setVisibility(8);
if (this.ao != null) {
this.aa.unregisterReceiver(this.ao);
this.ao = null;
return;
}
return;
case 3:
b(this.aA);
return;
case 4:
this.at.setVisibility(8);
this.au.setVisibility(0);
return;
case 5:
aa();
Z();
return;
case 6:
this.ap = 2;
if (this.aB.n == 6 && new File(this.aB.a()).exists()) {
aa();
return;
} else {
ac();
return;
}
default:
return;
}
}
}
public void Q() {
this.aj.removeMessages(2);
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy年MM月dd日HH");
List<fot> f = foe.a(this.aa).f();
HashMap hashMap = new HashMap();
for (fot fotVar : f) {
hashMap.put(fotVar.a + fotVar.b + simpleDateFormat.format(Long.valueOf(fotVar.c)), fotVar);
}
Iterator it = this.ag.iterator();
while (it.hasNext()) {
hgl hglVar = (hgl) it.next();
if (hashMap.containsKey(hglVar.b + this.al + simpleDateFormat.format(Long.valueOf(hglVar.c)))) {
it.remove();
}
}
}
public void a(frd frdVar) {
if (azd.a(this.aa).f()) {
Intent intent = new Intent(this.aa, (Class<?>) ClaimsApplyActivity.class);
intent.putExtra("claims_type", 2);
intent.putExtra("net_address_log", frdVar.a);
intent.putExtra(Config.KPI_CUID, this.am);
intent.putExtra("pkgName", this.al);
intent.putParcelableArrayListExtra("alllogs", this.ag);
b(intent);
} else {
hny.a(this.aa.getString(R.string.jadx_deobf_0x00002619), 0);
azd.b(this.aa, 3, 12);
this.an = 2;
}
hts.a(this.aa);
hts.a("ps", "npfic", (Number) 1);
}
@Override
public void n() {
super.n();
aww.a(this.aa).b(this);
if (this.ar != null && this.ar.getStatus() == AsyncTask.Status.RUNNING) {
this.ar.cancel(false);
}
if (this.ao != null) {
this.aa.unregisterReceiver(this.ao);
this.ao = null;
}
}
public void V() {
this.aB = new fls();
this.aB.a(this);
akz c = this.aq.c("paysecurity", this.av);
if (c != null) {
this.aB.a = c.a;
this.aB.b = c.b;
this.aB.g = c.g;
this.aB.f = c.f;
this.aB.j = c.j;
this.aB.c = c.c;
this.aB.n = c.n;
this.aB.o = c.o;
this.aB.h = c.h;
} else {
this.aB.a = "paysecurity";
this.aB.b = this.av;
this.aB.g = this.ax;
this.aB.j = hpg.l;
this.aB.c = c().getString(R.string.jadx_deobf_0x00002060);
this.aB.h = "https://sjwsdl.baidu.com/apks/icon/bdsearch_7272.jpg";
}
if (this.aB.n == 6 && new File(this.aB.a()).exists()) {
aa();
} else {
ac();
}
}
private void W() {
if (this.aB == null) {
V();
}
if (this.aB.n == 6 && new File(this.aB.a()).exists()) {
if (!this.az) {
Z();
}
} else {
if (this.ap == 2) {
if (hqo.a(this.aa) != 1) {
ae();
return;
} else {
X();
this.ap = 1;
return;
}
}
if (this.ap == 1) {
Y();
this.ap = 2;
}
}
}
public void X() {
b(this.aA);
bbb.a(this.aq, (aky) this.aB, this.aB.c(), true);
}
private void Y() {
if (this.ay) {
ab();
} else {
ac();
}
this.aq.b("paysecurity", this.av);
}
private void Z() {
this.az = true;
if (hrk.b() && hiv.f(this.aa)) {
ad();
}
hkn.a().a(new fka(this));
}
private void aa() {
this.as.setText(a(R.string.jadx_deobf_0x0000206b));
this.as.setProgress(100);
this.as.setProgressTextVisible(false);
}
private void b(int i) {
this.as.setText(a(R.string.jadx_deobf_0x0000207a));
this.as.setProgress(i);
this.as.setProgressTextVisible(true);
}
private void ab() {
this.as.setText(a(R.string.jadx_deobf_0x00002081));
this.as.setProgressTextVisible(false);
}
private void ac() {
this.as.setText(a(R.string.jadx_deobf_0x00002061));
this.as.setProgress(100);
this.as.setProgressTextVisible(false);
}
private void ad() {
this.as.setText(a(R.string.jadx_deobf_0x00002033));
this.as.setProgress(100);
this.as.setProgressTextVisible(false);
}
public boolean b(String str) {
return aww.a(this.aa).a(str, true) != null;
}
private void ae() {
hll hllVar = new hll(this.aa);
hllVar.d(R.layout.jadx_deobf_0x00000977);
hllVar.a(R.string.jadx_deobf_0x00002751, new fkb(this, hllVar));
hllVar.c(R.string.jadx_deobf_0x00002750, new fkc(this, hllVar));
hllVar.show();
}
@Override
public void a(aky akyVar, String str, long j, long j2, int i) {
}
@Override
public void a(aky akyVar, String str, boolean z, int i, String str2, int i2) {
if (i == 6) {
this.aj.sendEmptyMessage(5);
hts.a(this.aa);
hts.a("ps", "pbdc", (Number) 1);
}
if (!z) {
this.aj.sendEmptyMessage(6);
}
}
@Override
public void a(aky akyVar, long j, long j2, int i) {
this.aA = (int) ((((float) j) / ((float) j2)) * 100.0f);
this.aj.sendEmptyMessage(3);
}
@Override
public void a(aky akyVar, int i) {
}
@Override
public void a(axb axbVar) {
if (axbVar.c == 2 || axbVar.c == 3 || axbVar.c == 4) {
awz awzVar = (awz) axbVar;
if ("com.baidu.searchbox".equals(awzVar.a) || (this.aC != null && this.aC.containsKey(awzVar.a))) {
hts.a(this.aa);
hts.a("ps", "pbic", (Number) 1);
this.aw = false;
this.aj.sendEmptyMessage(4);
this.aa.runOnUiThread(new fkd(this));
}
}
}
}