百度手机卫士 v8.8.0版本的 MD5 值为:a85894a6923c8a39f0c3a3a686ad7443

以下内容为反编译后的 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 com.dianxinos.optimizer.module.recommend.data.RelationalRecommendConstants;
import dxoptimizer.ajo;
import dxoptimizer.ajw;
import dxoptimizer.avo;
import dxoptimizer.avr;
import dxoptimizer.avt;
import dxoptimizer.avu;
import dxoptimizer.awa;
import dxoptimizer.aws;
import dxoptimizer.awt;
import dxoptimizer.awu;
import dxoptimizer.awv;
import dxoptimizer.azp;
import dxoptimizer.bal;
import dxoptimizer.eee;
import dxoptimizer.hci;
import dxoptimizer.hma;
import dxoptimizer.hnw;
import dxoptimizer.hqt;
import dxoptimizer.hti;
import dxoptimizer.hxa;
import dxoptimizer.hyh;
import dxoptimizer.hyi;
import dxoptimizer.hzh;
import dxoptimizer.iaj;
import dxoptimizer.iao;
import dxoptimizer.ibu;
import dxoptimizer.ico;
import dxoptimizer.icu;
import dxoptimizer.mp;
import java.io.File;
import java.util.List;

public class CommonAppDownloadGuideActivity extends awa implements View.OnClickListener, avu {
    private mp A;
    private final ajw B = new awv(this);
    private AutoScaleImageView e;
    private TextView f;
    private TextView g;
    private CheckBox h;
    private DxProgressBar j;
    private ajo 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_0x000008a3);
        m();
        a(getIntent());
        super.onCreate(bundle);
        if (!TextUtils.isEmpty(this.n)) {
            this.A = new mp(this, R.drawable.jadx_deobf_0x0000027d);
            this.A.a(this.n, this.e);
        }
        if (hyh.a(this, "filter_assist", false) || this.z) {
            this.h.setVisibility(4);
        } else {
            this.h.setVisibility(0);
            icu.a(this);
            icu.a("dd_bda_s", "com.baidu.appsearch", (Number) 1);
        }
        avo.a((Context) this).a((avu) this);
        t();
        if (s()) {
            if (!iaj.h(this, this.b.b)) {
                hxa.a(R.string.jadx_deobf_0x000021f5, 0);
            } else {
                r();
                D();
            }
            finish();
            return;
        }
        if (this.y) {
            n();
        }
        x();
        eee.a(this, 56, 0);
    }

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

    private void m() {
        this.e = (AutoScaleImageView) findViewById(R.id.jadx_deobf_0x0000138b);
        this.f = (TextView) findViewById(R.id.jadx_deobf_0x00001387);
        this.g = (TextView) findViewById(R.id.jadx_deobf_0x00001388);
        this.h = (CheckBox) findViewById(R.id.jadx_deobf_0x00001389);
        this.j = (DxProgressBar) findViewById(R.id.jadx_deobf_0x0000138a);
        this.j.setOnClickListener(this);
    }

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

    @Override
    public void c() {
        ibu.a(this, R.id.jadx_deobf_0x00001078, 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_0x000021c0));
            return;
        }
        if (!iaj.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_0x00002203));
        } else {
            this.j.setText(getString(R.string.jadx_deobf_0x000021e0));
        }
    }

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

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

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

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

    @Override
    public void a(avt avtVar) {
        if (avtVar instanceof avr) {
            if ((avtVar.c == 2 || avtVar.c == 4) && this.r.equals(((avr) avtVar).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 (!iaj.h(this, this.b.b)) {
                    hxa.a(R.string.jadx_deobf_0x000021f5, 0);
                    return;
                } else {
                    r();
                    finish();
                    return;
                }
            }
            n();
        }
    }

    private void n() {
        String a = hnw.a(this, this.r);
        if (!TextUtils.isEmpty(a)) {
            this.j.setText(getString(R.string.jadx_deobf_0x00001fab, new Object[]{this.b.c}));
            this.j.setProgress(100);
            this.j.setEnabled(false);
            this.j.setProgressTextVisible(false);
            hti.a().a(new aws(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_0x00001fab, new Object[]{this.b.c}));
            this.j.setProgress(100);
            this.j.setEnabled(false);
            this.j.setProgressTextVisible(false);
            hti.a().a(new awt(this, a2));
            v();
            C();
            return;
        }
        bal.a(this, this.b.f, this.c, new awu(this));
        y();
    }

    private void o() {
        if (this.k == null) {
            this.k = new ajo();
            this.k.a = "bstore";
            this.k.j = hyi.l;
            this.k.b = "com.baidu.appsearch";
            this.k.c = getString(R.string.jadx_deobf_0x000022bd);
            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 (!iaj.g(this, "com.baidu.appsearch") && this.h.isChecked()) {
            hci.b((Context) this, true);
            String a = hnw.a(this, "com.baidu.appsearch");
            if (!TextUtils.isEmpty(a)) {
                if (iao.b() && hqt.d(this)) {
                    iao.e(a);
                }
                icu.a(this);
                icu.a("dd_bda_pe", "com.baidu.appsearch", (Number) 1);
                return;
            }
            o();
            String a2 = this.k.a();
            if (bal.a(this, this.k.a, this.k.b) == 6 && new File(a2).exists()) {
                icu.a(this);
                icu.a("dd_bda_pe", "com.baidu.appsearch", (Number) 1);
                return;
            } else {
                azp.a(this.a, this.k, (ajw) null, iao.b() && hqt.d(this));
                icu.a(this);
                icu.a("dd_bda_pn", "com.baidu.appsearch", (Number) 1);
            }
        }
        if (!iaj.g(this, "com.baidu.appsearch")) {
            if (this.h.isChecked()) {
                icu.a(this);
                icu.a("dd_bda_cs", "com.baidu.appsearch", (Number) 1);
            } else {
                icu.a(this);
                icu.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() {
        avo.a((Context) this).b(this);
        super.onDestroy();
    }

    private void r() {
        if (this.x == null) {
            iaj.m(this, this.r);
            return;
        }
        List<ResolveInfo> b = hzh.b(this, this.x);
        if (b != null && b.size() > 0) {
            this.x.setClassName(b.get(0).activityInfo.packageName, b.get(0).activityInfo.name);
            b(this.x);
        }
    }

    private boolean s() {
        return iaj.g(this, this.r) && iaj.b(this, this.r, -1) >= this.w;
    }

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

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

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

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

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