百度手机卫士 v8.1.5版本的 MD5 值为:15af71eae74e2f2b5b9f845fe77a4804
以下内容为反编译后的 CommonAppDownloadGuideActivity.java 源代码,内容仅作参考
package com.dianxinos.optimizer.base;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.CheckBox;
import android.widget.TextView;
import com.baidu.sapi2.c.R;
import com.dianxinos.common.ui.view.AutoScaleImageView;
import com.dianxinos.common.ui.view.DxProgressBar;
import dxoptimizer.akm;
import dxoptimizer.aku;
import dxoptimizer.ayo;
import dxoptimizer.ayr;
import dxoptimizer.ayt;
import dxoptimizer.ayu;
import dxoptimizer.aza;
import dxoptimizer.azx;
import dxoptimizer.azy;
import dxoptimizer.azz;
import dxoptimizer.baa;
import dxoptimizer.bcm;
import dxoptimizer.bdg;
import dxoptimizer.dux;
import dxoptimizer.gqk;
import dxoptimizer.haj;
import dxoptimizer.hcr;
import dxoptimizer.heg;
import dxoptimizer.hhs;
import dxoptimizer.hiy;
import dxoptimizer.hiz;
import dxoptimizer.hjz;
import dxoptimizer.hky;
import dxoptimizer.hld;
import dxoptimizer.hmh;
import dxoptimizer.hnd;
import dxoptimizer.hnj;
import dxoptimizer.mc;
import java.io.File;
import java.util.List;
public class CommonAppDownloadGuideActivity extends aza implements View.OnClickListener, ayu {
private mc A;
private final aku B = new baa(this);
private AutoScaleImageView e;
private TextView f;
private TextView g;
private CheckBox h;
private DxProgressBar j;
private akm k;
private String l;
private int m;
private String n;
private String o;
private String p;
private String q;
private String r;
private String s;
private String t;
private String u;
private long v;
private int w;
private Intent x;
private boolean y;
private boolean z;
@Override
public void onCreate(Bundle bundle) {
setContentView(R.layout.jadx_deobf_0x000007a9);
m();
a(getIntent());
super.onCreate(bundle);
if (!TextUtils.isEmpty(this.n)) {
this.A = new mc(this, this.m);
this.A.a(this.n, this.e);
}
if (hiy.a(this, "filter_assist", false) || this.z) {
this.h.setVisibility(4);
} else {
this.h.setVisibility(0);
hnj.a(this).a("dd_bda_s", "com.baidu.appsearch", (Number) 1);
}
ayo.a((Context) this).a((ayu) this);
t();
if (s()) {
if (!hky.h(this, this.b.b)) {
hhs.a(R.string.jadx_deobf_0x00001f2b, 0);
} else {
r();
D();
}
finish();
return;
}
if (this.y) {
n();
}
x();
dux.a(this, 56, 0);
}
private void a(Intent intent) {
this.l = hnd.b(intent, "title");
this.m = hnd.a(intent, "banner", -1);
this.o = hnd.b(intent, "destop");
this.p = hnd.b(intent, "desbottom");
this.q = hnd.b(intent, "project");
this.r = hnd.b(intent, "pkgName");
this.s = hnd.b(intent, "savePath");
this.t = hnd.b(intent, "appName");
this.u = hnd.b(intent, "apkUrl");
this.w = hnd.a(intent, "minVersionCode", -1);
this.x = (Intent) hnd.c(intent, "launchIntent");
this.y = hnd.a(intent, "isAuto", false);
this.v = hnd.a(intent, "apkSize", 0L);
this.z = hnd.a(intent, "hideStore", false);
this.n = hnd.b(intent, "banner_url");
}
private void m() {
this.e = (AutoScaleImageView) findViewById(R.id.jadx_deobf_0x0000117f);
this.f = (TextView) findViewById(R.id.jadx_deobf_0x0000117b);
this.g = (TextView) findViewById(R.id.jadx_deobf_0x0000117c);
this.h = (CheckBox) findViewById(R.id.jadx_deobf_0x0000117d);
this.j = (DxProgressBar) findViewById(R.id.jadx_deobf_0x0000117e);
this.j.setOnClickListener(this);
}
@Override
public akm b() {
akm akmVar = new akm();
akmVar.a = this.q;
akmVar.j = this.s;
akmVar.b = this.r;
akmVar.c = this.t;
akmVar.g = this.u;
akmVar.f = this.v;
return akmVar;
}
@Override
public void c() {
hmh.a(this, R.id.jadx_deobf_0x00000e86, this.l, this);
this.e.setImageResource(this.m);
this.f.setText(this.o);
this.g.setText(this.p);
}
@Override
public void d() {
this.j.setEnabled(true);
this.j.setProgressTextVisible(false);
this.j.setProgress(100);
if (this.c == 1 || this.c == 2 || this.c == 7) {
this.h.setVisibility(4);
this.j.setText(getString(R.string.jadx_deobf_0x00001ef6));
return;
}
if (!hky.g(this, "com.baidu.appsearch") && !this.z) {
this.h.setVisibility(0);
} else {
this.h.setVisibility(4);
}
if (s()) {
this.j.setText(getString(R.string.jadx_deobf_0x00001f39));
} else {
this.j.setText(getString(R.string.jadx_deobf_0x00001f16));
}
}
@Override
public void e() {
this.h.setVisibility(4);
this.j.setText(getString(R.string.jadx_deobf_0x00001ef6));
this.j.setProgressTextVisible(false);
this.j.setEnabled(true);
}
@Override
public void f() {
this.j.setProgress(this.d);
this.j.setText(getString(R.string.jadx_deobf_0x00001ef6));
this.j.setProgressTextVisible(true);
}
@Override
public void g() {
this.j.setEnabled(true);
this.j.setProgressTextVisible(false);
this.j.setProgress(100);
if (!hky.g(this, "com.baidu.appsearch") && !this.z) {
this.h.setVisibility(0);
} else {
this.h.setVisibility(4);
}
if (s()) {
this.j.setText(getString(R.string.jadx_deobf_0x00001f39));
} else {
this.j.setText(getString(R.string.jadx_deobf_0x00001f16));
}
}
@Override
public void h() {
this.j.setText(getString(R.string.jadx_deobf_0x00001cfb, new Object[]{this.t}));
this.j.setProgress(100);
this.j.setEnabled(false);
this.j.setProgressTextVisible(false);
}
@Override
public void a(boolean z) {
if (!hky.g(this, "com.baidu.appsearch") && !this.z) {
this.h.setVisibility(0);
} else {
this.h.setVisibility(4);
}
this.j.setEnabled(true);
this.j.setProgress(100);
this.j.setProgressTextVisible(false);
if (s()) {
this.j.setText(getString(R.string.jadx_deobf_0x00001f39));
} else {
this.j.setText(getString(R.string.jadx_deobf_0x00001f16));
}
}
@Override
public void a(ayt aytVar) {
if (aytVar instanceof ayr) {
if ((aytVar.c == 2 || aytVar.c == 4) && this.r.equals(((ayr) aytVar).a)) {
r();
A();
finish();
}
}
}
@Override
public void onClick(View view) {
if (this.c == 1 || this.c == 7 || this.c == 2) {
q();
w();
} else {
if (s()) {
if (!hky.h(this, this.b.b)) {
hhs.a(R.string.jadx_deobf_0x00001f2b, 0);
return;
} else {
r();
finish();
return;
}
}
n();
}
}
private void n() {
String a = haj.a(this, this.r);
if (!TextUtils.isEmpty(a)) {
heg.a().a(new azx(this, a));
B();
return;
}
String a2 = this.b.a();
if (this.c == 6 && new File(a2).exists() && this.u.equals(this.b.g)) {
this.j.setText(getString(R.string.jadx_deobf_0x00001cfb, new Object[]{this.b.c}));
this.j.setProgress(100);
this.j.setEnabled(false);
this.j.setProgressTextVisible(false);
heg.a().a(new azy(this, a2));
v();
C();
return;
}
bdg.a(this, this.b.f, this.c, new azz(this));
y();
}
private void o() {
if (this.k == null) {
this.k = new akm();
this.k.a = "bstore";
this.k.j = hiz.l;
this.k.b = "com.baidu.appsearch";
this.k.c = getString(R.string.jadx_deobf_0x00001ff1);
this.k.g = "http://dxurl.cn/bd/yhds_download-appsearch";
this.k.h = "http://dxurl.cn/bd/appsearch_android/icon";
}
}
public void p() {
if (!hky.g(this, "com.baidu.appsearch") && this.h.isChecked()) {
gqk.b((Context) this, true);
String a = haj.a(this, "com.baidu.appsearch");
if (!TextUtils.isEmpty(a)) {
if (hld.b() && hcr.f(this)) {
hld.e(a);
}
hnj.a(this).a("dd_bda_pe", "com.baidu.appsearch", (Number) 1);
return;
}
o();
String a2 = this.k.a();
if (bdg.a(this, this.k.a, this.k.b) == 6 && new File(a2).exists()) {
hnj.a(this).a("dd_bda_pe", "com.baidu.appsearch", (Number) 1);
return;
} else {
bcm.a(this.a, this.k, (aku) null, hld.b() && hcr.f(this));
hnj.a(this).a("dd_bda_pn", "com.baidu.appsearch", (Number) 1);
}
}
if (!hky.g(this, "com.baidu.appsearch")) {
if (this.h.isChecked()) {
hnj.a(this).a("dd_bda_cs", "com.baidu.appsearch", (Number) 1);
} else {
hnj.a(this).a("dd_bda_cus", "com.baidu.appsearch", (Number) 1);
}
}
}
private void q() {
this.a.a(this.b);
this.j.setEnabled(false);
}
@Override
public void onDestroy() {
ayo.a((Context) this).b(this);
super.onDestroy();
}
private void r() {
if (this.x == null) {
hky.m(this, this.r);
return;
}
List b = hjz.b(this, this.x);
if (b != null && b.size() > 0) {
this.x.setClassName(((ResolveInfo) b.get(0)).activityInfo.packageName, ((ResolveInfo) b.get(0)).activityInfo.name);
b(this.x);
}
}
private boolean s() {
return hky.g(this, this.r) && hky.b(this, this.r, -1) >= this.w;
}
@Override
public aku l() {
return this.B;
}
private void t() {
int a = hnd.a(getIntent(), "extra.from", -1);
if ("com.baidu.superroot".equals(this.r) || "com.dianxinos.superuser".equals(this.r)) {
if (a == 0) {
hnj.a(this).a("ehc", "ehc_p_c", (Number) 1);
} else if (29 == a) {
hnj.a(this).a("ehc", "ehc_pe_d", (Number) 1);
}
}
}
private void v() {
if (("com.baidu.superroot".equals(this.r) || "com.dianxinos.superuser".equals(this.r)) && "acc_prevent_wake".equals(this.q)) {
hnj.a(this).a("ehc", "ac_ds_gc_i", (Number) 1);
}
}
private void w() {
if (("com.baidu.superroot".equals(this.r) || "com.dianxinos.superuser".equals(this.r)) && "acc_prevent_wake".equals(this.q)) {
hnj.a(this).a("ehc", "ac_ds_gc_c", (Number) 1);
}
if ("home_recommend".equals(this.q)) {
hnj.a(this).a("home_c_cl", this.r, (Number) 1);
}
}
private void x() {
if (("com.baidu.superroot".equals(this.r) || "com.dianxinos.superuser".equals(this.r)) && "acc_prevent_wake".equals(this.q)) {
hnj.a(this).a("ehc", "ac_ds_gs", (Number) 1);
}
if ("home_recommend".equals(this.q)) {
hnj.a(this).a("home_c_gs", this.r, (Number) 1);
}
}
private void y() {
if ("com.baidu.superroot".equals(this.r) || "com.dianxinos.superuser".equals(this.r)) {
if ("authority".equals(this.q)) {
hnj.a(this).a("ehc", "se_st", (Number) 1);
} else if ("acc_prevent_wake".equals(this.q)) {
hnj.a(this).a("ehc", "ac_ds_gc_d", (Number) 1);
}
}
if ("home_recommend".equals(this.q)) {
hnj.a(this).a("home_c_ds", this.r, (Number) 1);
}
}
public void z() {
if ("com.baidu.superroot".equals(this.r) || "com.dianxinos.superuser".equals(this.r)) {
if ("authority".equals(this.q)) {
hnj.a(this).a("ehc", "se_su", (Number) 1);
} else if ("acc_prevent_wake".equals(this.q)) {
hnj.a(this).a("ehc", "ac_ds_ds", (Number) 1);
}
}
}
private void A() {
if ("com.baidu.superroot".equals(this.r) || "com.dianxinos.superuser".equals(this.r)) {
if ("authority".equals(this.q)) {
hnj.a(this).a("ehc", "se_in", (Number) 1);
} else if ("acc_prevent_wake".equals(this.q)) {
hnj.a(this).a("ehc", "ac_ds_is", (Number) 1);
}
}
if ("home_recommend".equals(this.q)) {
hnj.a(this).a("home_c_is", this.r, (Number) 1);
}
}
private void B() {
if ("home_recommend".equals(this.q)) {
hnj.a(this).a("home_c_ip", this.r, (Number) 1);
}
}
private void C() {
if ("home_recommend".equals(this.q)) {
hnj.a(this).a("home_c_ie", this.r, (Number) 1);
}
}
private void D() {
if ("home_recommend".equals(this.q)) {
hnj.a(this).a("home_c_la", this.r, (Number) 1);
}
}
}