百度手机卫士 v8.1.5版本的 MD5 值为:15af71eae74e2f2b5b9f845fe77a4804
以下内容为反编译后的 fgo.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 com.baidu.sapi2.c.R;
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 fgo extends fgl implements View.OnClickListener, ayu, fil {
private fij aB;
private Map aC;
private ako aq;
private fgv ar;
private DxProgressBar as;
private RelativeLayout at;
private LinearLayout au;
private String av;
private String ax;
private BroadcastReceiver ao = new fgp(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 fgw(this, this.aa);
hnc.a(this.aa, this.ao, new IntentFilter("com.dianxinos.optimizer.action.SAFEURL_NOTIFY_DATA"));
this.ac = layoutInflater.inflate(R.layout.jadx_deobf_0x000008e8, viewGroup, false);
this.aq = bcm.a(this.aa);
this.as = (DxProgressBar) this.ac.findViewById(R.id.jadx_deobf_0x0000167b);
this.as.setOnClickListener(this);
ayo.a(this.aa).a(this);
this.at = (RelativeLayout) b(R.id.jadx_deobf_0x00001679);
this.au = (LinearLayout) b(R.id.jadx_deobf_0x0000167c);
R();
S();
return this.ac;
}
@Override
public void onClick(View view) {
if (view == this.as) {
if (this.aw) {
if (hki.c(this.aa)) {
W();
} else {
hnk.b(this.aa, R.string.jadx_deobf_0x00001f2e, 0);
}
}
hnj.a(this.aa).a("ps", "bsdc", (Number) 1);
}
}
@Override
public void P() {
if ("com.baidu.searchbox".equals(this.al)) {
fjn.e(this.aa);
fjn.d(this.aa);
} else {
this.ar = new fgv(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:
c(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<flk> f = fkv.a(this.aa).f();
HashMap hashMap = new HashMap();
for (flk flkVar : f) {
hashMap.put(flkVar.a + flkVar.b + simpleDateFormat.format(Long.valueOf(flkVar.c)), flkVar);
}
Iterator it = this.ag.iterator();
while (it.hasNext()) {
haf hafVar = (haf) it.next();
if (hashMap.containsKey(hafVar.b + this.al + simpleDateFormat.format(Long.valueOf(hafVar.c)))) {
it.remove();
}
}
}
public void a(fnu fnuVar) {
if (bax.a(this.aa).f()) {
Intent intent = new Intent(this.aa, (Class<?>) ClaimsApplyActivity.class);
intent.putExtra("claims_type", 2);
intent.putExtra("net_address_log", fnuVar.a);
intent.putExtra("cuid", this.am);
intent.putExtra("pkgName", this.al);
intent.putParcelableArrayListExtra("alllogs", this.ag);
b(intent);
} else {
hhs.a(this.aa.getString(R.string.jadx_deobf_0x000023d9), 0);
bax.b(this.aa, 3, 12);
this.an = 2;
}
hnj.a(this.aa).a("ps", "npfic", (Number) 1);
}
@Override
public void n() {
super.n();
ayo.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 fij();
this.aB.a(this);
akn 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 = hiz.l;
this.aB.c = c().getString(R.string.jadx_deobf_0x00001eca);
this.aB.h = "http://dl.cdn.dianxinos.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 (hki.a(this.aa) != 1) {
ae();
return;
} else {
X();
this.ap = 1;
return;
}
}
if (this.ap == 1) {
Y();
this.ap = 2;
}
}
}
public void X() {
c(this.aA);
bcm.a(this.aq, (akm) 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 (hld.b() && hcr.f(this.aa)) {
ad();
}
heg.a().a(new fgr(this));
}
private void aa() {
this.as.setText(a(R.string.jadx_deobf_0x00001ed5));
this.as.setProgress(100);
this.as.setProgressTextVisible(false);
}
private void c(int i) {
this.as.setText(a(R.string.jadx_deobf_0x00001ee4));
this.as.setProgress(i);
this.as.setProgressTextVisible(true);
}
private void ab() {
this.as.setText(a(R.string.jadx_deobf_0x00001eeb));
this.as.setProgressTextVisible(false);
}
private void ac() {
this.as.setText(a(R.string.jadx_deobf_0x00001ecb));
this.as.setProgress(100);
this.as.setProgressTextVisible(false);
}
private void ad() {
this.as.setText(a(R.string.jadx_deobf_0x00001e9d));
this.as.setProgress(100);
this.as.setProgressTextVisible(false);
}
public boolean b(String str) {
return ayo.a(this.aa).a(str, true) != null;
}
private void ae() {
hfe hfeVar = new hfe(this.aa);
hfeVar.d(R.layout.jadx_deobf_0x000008e5);
hfeVar.a(R.string.jadx_deobf_0x000024f8, new fgs(this, hfeVar));
hfeVar.c(R.string.jadx_deobf_0x000024f7, new fgt(this, hfeVar));
hfeVar.show();
}
@Override
public void a(akm akmVar, String str, long j, long j2, int i) {
}
@Override
public void a(akm akmVar, String str, boolean z, int i, String str2, int i2) {
if (i == 6) {
this.aj.sendEmptyMessage(5);
hnj.a(this.aa).a("ps", "pbdc", (Number) 1);
}
if (!z) {
this.aj.sendEmptyMessage(6);
}
}
@Override
public void a(akm akmVar, long j, long j2, int i) {
this.aA = (int) ((((float) j) / ((float) j2)) * 100.0f);
this.aj.sendEmptyMessage(3);
}
@Override
public void a(akm akmVar, int i) {
}
@Override
public void a(ayt aytVar) {
if (aytVar.c == 2 || aytVar.c == 3 || aytVar.c == 4) {
ayr ayrVar = (ayr) aytVar;
if ("com.baidu.searchbox".equals(ayrVar.a) || (this.aC != null && this.aC.containsKey(ayrVar.a))) {
hnj.a(this.aa).a("ps", "pbic", (Number) 1);
this.aw = false;
this.aj.sendEmptyMessage(4);
this.aa.runOnUiThread(new fgu(this));
}
}
}
}