百度手机卫士 v8.4.5版本的 MD5 值为:c65ef854a40bb6200c4d8c4603c58403

以下内容为反编译后的 CommonAppDownloadGuideActivity.java 源代码,内容仅作参考


package com.dianxinos.optimizer.base;

import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.CheckBox;
import android.widget.TextView;
import cn.opda.a.phonoalbumshoushou.R;
import com.dianxinos.common.ui.view.AutoScaleImageView;
import com.dianxinos.common.ui.view.DxProgressBar;
import dxoptimizer.aky;
import dxoptimizer.alg;
import dxoptimizer.aww;
import dxoptimizer.awz;
import dxoptimizer.axb;
import dxoptimizer.axc;
import dxoptimizer.axi;
import dxoptimizer.aye;
import dxoptimizer.ayf;
import dxoptimizer.ayg;
import dxoptimizer.ayh;
import dxoptimizer.bbb;
import dxoptimizer.bbv;
import dxoptimizer.dzk;
import dxoptimizer.gvg;
import dxoptimizer.het;
import dxoptimizer.hgp;
import dxoptimizer.hiv;
import dxoptimizer.hkn;
import dxoptimizer.hny;
import dxoptimizer.hpf;
import dxoptimizer.hpg;
import dxoptimizer.hqf;
import dxoptimizer.hrf;
import dxoptimizer.hrk;
import dxoptimizer.hsq;
import dxoptimizer.htm;
import dxoptimizer.hts;
import dxoptimizer.mo;
import java.io.File;
import java.util.List;

public class CommonAppDownloadGuideActivity extends axi implements View.OnClickListener, axc {
    private mo A;
    private final alg B = new ayh(this);
    private AutoScaleImageView e;
    private TextView f;
    private TextView g;
    private CheckBox h;
    private DxProgressBar j;
    private aky k;
    private String l;
    private Drawable 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_0x0000081f);
        m();
        a(getIntent());
        super.onCreate(bundle);
        if (!TextUtils.isEmpty(this.n)) {
            this.A = new mo(this, R.drawable.jadx_deobf_0x00000251);
            this.A.a(this.n, this.e);
        }
        if (hpf.a(this, "filter_assist", false) || this.z) {
            this.h.setVisibility(4);
        } else {
            this.h.setVisibility(0);
            hts.a(this);
            hts.a("dd_bda_s", "com.baidu.appsearch", (Number) 1);
        }
        aww.a((Context) this).a((axc) this);
        t();
        if (s()) {
            if (!hrf.h(this, this.b.b)) {
                hny.a(R.string.jadx_deobf_0x000020c1, 0);
            } else {
                r();
                D();
            }
            finish();
            return;
        }
        if (this.y) {
            n();
        }
        x();
        dzk.a(this, 56, 0);
    }

    private void a(Intent intent) {
        String b = htm.b(intent, "pluginPkgName");
        this.l = htm.b(intent, "title");
        int a = htm.a(intent, "banner", -1);
        if (b != null) {
            Resources j = het.a(this).j(b);
            if (j != null) {
                this.m = j.getDrawable(a);
            }
        } else {
            this.m = getResources().getDrawable(a);
        }
        this.o = htm.b(intent, "destop");
        this.p = htm.b(intent, "desbottom");
        this.q = htm.b(intent, "project");
        this.r = htm.b(intent, "pkgName");
        this.s = htm.b(intent, "savePath");
        this.t = htm.b(intent, "appName");
        this.u = htm.b(intent, "apkUrl");
        this.w = htm.a(intent, "minVersionCode", -1);
        this.x = (Intent) htm.c(intent, "launchIntent");
        this.y = htm.a(intent, "isAuto", false);
        this.v = htm.a(intent, "apkSize", 0L);
        this.z = htm.a(intent, "hideStore", false);
        this.n = htm.b(intent, "banner_url");
    }

    private void m() {
        this.e = (AutoScaleImageView) findViewById(R.id.jadx_deobf_0x00001297);
        this.f = (TextView) findViewById(R.id.jadx_deobf_0x00001293);
        this.g = (TextView) findViewById(R.id.jadx_deobf_0x00001294);
        this.h = (CheckBox) findViewById(R.id.jadx_deobf_0x00001295);
        this.j = (DxProgressBar) findViewById(R.id.jadx_deobf_0x00001296);
        this.j.setOnClickListener(this);
    }

    @Override
    public aky b() {
        aky akyVar = new aky();
        akyVar.a = this.q;
        akyVar.j = this.s;
        akyVar.b = this.r;
        akyVar.c = this.t;
        akyVar.g = this.u;
        akyVar.f = this.v;
        return akyVar;
    }

    @Override
    public void c() {
        hsq.a(this, R.id.jadx_deobf_0x00000f95, this.l, this);
        this.e.setImageDrawable(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_0x0000208c));
            return;
        }
        if (!hrf.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_0x000020cf));
        } else {
            this.j.setText(getString(R.string.jadx_deobf_0x000020ac));
        }
    }

    @Override
    public void e() {
        this.h.setVisibility(4);
        this.j.setText(getString(R.string.jadx_deobf_0x0000208c));
        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_0x0000208c));
        this.j.setProgressTextVisible(true);
    }

    @Override
    public void g() {
        this.j.setEnabled(true);
        this.j.setProgressTextVisible(false);
        this.j.setProgress(100);
        if (!hrf.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_0x000020cf));
        } else {
            this.j.setText(getString(R.string.jadx_deobf_0x000020ac));
        }
    }

    @Override
    public void h() {
        this.j.setText(getString(R.string.jadx_deobf_0x00001e74, new Object[]{this.t}));
        this.j.setProgress(100);
        this.j.setEnabled(false);
        this.j.setProgressTextVisible(false);
    }

    @Override
    public void a(boolean z) {
        if (!hrf.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_0x000020cf));
        } else {
            this.j.setText(getString(R.string.jadx_deobf_0x000020ac));
        }
    }

    @Override
    public void a(axb axbVar) {
        if (axbVar instanceof awz) {
            if ((axbVar.c == 2 || axbVar.c == 4) && this.r.equals(((awz) axbVar).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 (!hrf.h(this, this.b.b)) {
                    hny.a(R.string.jadx_deobf_0x000020c1, 0);
                    return;
                } else {
                    r();
                    finish();
                    return;
                }
            }
            n();
        }
    }

    private void n() {
        String a = hgp.a(this, this.r);
        if (!TextUtils.isEmpty(a)) {
            this.j.setText(getString(R.string.jadx_deobf_0x00001e74, new Object[]{this.b.c}));
            this.j.setProgress(100);
            this.j.setEnabled(false);
            this.j.setProgressTextVisible(false);
            hkn.a().a(new aye(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_0x00001e74, new Object[]{this.b.c}));
            this.j.setProgress(100);
            this.j.setEnabled(false);
            this.j.setProgressTextVisible(false);
            hkn.a().a(new ayf(this, a2));
            v();
            C();
            return;
        }
        bbv.a(this, this.b.f, this.c, new ayg(this));
        y();
    }

    private void o() {
        if (this.k == null) {
            this.k = new aky();
            this.k.a = "bstore";
            this.k.j = hpg.l;
            this.k.b = "com.baidu.appsearch";
            this.k.c = getString(R.string.jadx_deobf_0x00002184);
            this.k.g = "https://sjwssu.baidu.com/bd/yhds_download-appsearch";
            this.k.h = "https://sjwssu.baidu.com/bd/appsearch_android/icon";
        }
    }

    public void p() {
        if (!hrf.g(this, "com.baidu.appsearch") && this.h.isChecked()) {
            gvg.b((Context) this, true);
            String a = hgp.a(this, "com.baidu.appsearch");
            if (!TextUtils.isEmpty(a)) {
                if (hrk.b() && hiv.f(this)) {
                    hrk.e(a);
                }
                hts.a(this);
                hts.a("dd_bda_pe", "com.baidu.appsearch", (Number) 1);
                return;
            }
            o();
            String a2 = this.k.a();
            if (bbv.a(this, this.k.a, this.k.b) == 6 && new File(a2).exists()) {
                hts.a(this);
                hts.a("dd_bda_pe", "com.baidu.appsearch", (Number) 1);
                return;
            } else {
                bbb.a(this.a, this.k, (alg) null, hrk.b() && hiv.f(this));
                hts.a(this);
                hts.a("dd_bda_pn", "com.baidu.appsearch", (Number) 1);
            }
        }
        if (!hrf.g(this, "com.baidu.appsearch")) {
            if (this.h.isChecked()) {
                hts.a(this);
                hts.a("dd_bda_cs", "com.baidu.appsearch", (Number) 1);
            } else {
                hts.a(this);
                hts.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() {
        aww.a((Context) this).b(this);
        super.onDestroy();
    }

    private void r() {
        if (this.x == null) {
            hrf.m(this, this.r);
            return;
        }
        List b = hqf.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 hrf.g(this, this.r) && hrf.b(this, this.r, -1) >= this.w;
    }

    @Override
    public alg l() {
        return this.B;
    }

    private void t() {
        int a = htm.a(getIntent(), "extra.from", -1);
        if ("com.baidu.superroot".equals(this.r) || "com.dianxinos.superuser".equals(this.r)) {
            if (a == 0) {
                hts.a(this);
                hts.a("ehc", "ehc_p_c", (Number) 1);
            } else if (29 == a) {
                hts.a(this);
                hts.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)) {
            hts.a(this);
            hts.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)) {
            hts.a(this);
            hts.a("ehc", "ac_ds_gc_c", (Number) 1);
        }
        if ("home_recommend".equals(this.q)) {
            hts.a(this);
            hts.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)) {
            hts.a(this);
            hts.a("ehc", "ac_ds_gs", (Number) 1);
        }
        if ("home_recommend".equals(this.q)) {
            hts.a(this);
            hts.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)) {
                hts.a(this);
                hts.a("ehc", "se_st", (Number) 1);
            } else if ("acc_prevent_wake".equals(this.q)) {
                hts.a(this);
                hts.a("ehc", "ac_ds_gc_d", (Number) 1);
            }
        }
        if ("home_recommend".equals(this.q)) {
            hts.a(this);
            hts.a("home_c_ds", this.r, (Number) 1);
        }
        if ("com.nuomi".equals(this.r)) {
            hts.a(this);
            hts.a("wmgr", "wmsdnm", (Number) 1);
        }
    }

    public void z() {
        if ("com.baidu.superroot".equals(this.r) || "com.dianxinos.superuser".equals(this.r)) {
            if ("authority".equals(this.q)) {
                hts.a(this);
                hts.a("ehc", "se_su", (Number) 1);
            } else if ("acc_prevent_wake".equals(this.q)) {
                hts.a(this);
                hts.a("ehc", "ac_ds_ds", (Number) 1);
            }
        }
        if ("com.nuomi".equals(this.r)) {
            hts.a(this);
            hts.a("wmgr", "wmnmds", (Number) 1);
        }
    }

    private void A() {
        if ("com.baidu.superroot".equals(this.r) || "com.dianxinos.superuser".equals(this.r)) {
            if ("authority".equals(this.q)) {
                hts.a(this);
                hts.a("ehc", "se_in", (Number) 1);
            } else if ("acc_prevent_wake".equals(this.q)) {
                hts.a(this);
                hts.a("ehc", "ac_ds_is", (Number) 1);
            }
        }
        if ("home_recommend".equals(this.q)) {
            hts.a(this);
            hts.a("home_c_is", this.r, (Number) 1);
        }
        if ("com.nuomi".equals(this.r)) {
            hts.a(this);
            hts.a("wmgr", "wmnmis", (Number) 1);
        }
    }

    private void B() {
        if ("home_recommend".equals(this.q)) {
            hts.a(this);
            hts.a("home_c_ip", this.r, (Number) 1);
        }
    }

    private void C() {
        if ("home_recommend".equals(this.q)) {
            hts.a(this);
            hts.a("home_c_ie", this.r, (Number) 1);
        }
    }

    private void D() {
        if ("home_recommend".equals(this.q)) {
            hts.a(this);
            hts.a("home_c_la", this.r, (Number) 1);
        }
    }
}