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

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


package com.dianxinos.optimizer.module.toolbox;

import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import cn.opda.a.phonoalbumshoushou.R;
import dxoptimizer.aei;
import dxoptimizer.aky;
import dxoptimizer.axm;
import dxoptimizer.ayi;
import dxoptimizer.ayj;
import dxoptimizer.gtr;
import dxoptimizer.gts;
import dxoptimizer.gvg;
import dxoptimizer.hkn;
import dxoptimizer.hpf;
import dxoptimizer.hpg;
import dxoptimizer.hqf;
import dxoptimizer.hrf;
import dxoptimizer.hsg;
import dxoptimizer.htm;
import dxoptimizer.hts;

public class BaiduAssistGuideActivity extends axm implements aei, ayj {
    private static final String e = hpg.l;
    private boolean f = false;
    private boolean g = false;
    private Handler h;
    private gts j;
    private String k;
    private String l;
    private int m;

    @Override
    public void handleMessage(Message message) {
        super.handleMessage(message);
        switch (message.what) {
            case 50:
                this.j = (gts) message.obj;
                if (this.j != null) {
                    A();
                    return;
                } else {
                    z();
                    return;
                }
            default:
                return;
        }
    }

    private void v() {
        Intent launchIntentForPackage;
        PackageManager a = hsg.a(this);
        if (a != null && (launchIntentForPackage = a.getLaunchIntentForPackage(this.j.b)) != null && hqf.a(this, launchIntentForPackage)) {
            b(launchIntentForPackage);
            hts.a(this);
            hts.a("am", "am_ss_launch", (Number) 1);
        }
        finish();
    }

    @Override
    public void onCreate(Bundle bundle) {
        Intent intent = getIntent();
        if (intent != null) {
            this.m = htm.a(intent, "extra.from", 0);
            if (this.m == 24) {
                this.f = true;
            } else if (this.m == 30) {
                this.f = false;
            } else if (this.m == 31) {
                this.f = false;
            }
        }
        super.onCreate(bundle);
        if (hpf.a(this, "filter_assist", false)) {
            b(new Intent(this, (Class<?>) SafeToolBoxNewActivity.class));
            finish();
        } else {
            w();
        }
    }

    private void w() {
        this.h = new ayi(this);
        b(true);
        x();
    }

    private void x() {
        hkn.a().b(new gtr(this));
    }

    private void y() {
        if (!this.g) {
            if (!this.f) {
                Intent intent = new Intent(this, (Class<?>) SafeToolBoxNewActivity.class);
                intent.putExtra("extra.from", 29);
                intent.putExtra("tb_tab_mode", "toolbox_recommend");
                b(intent);
                this.g = true;
            }
            finish();
        }
    }

    @Override
    public void onBackPressed() {
        if (this.f) {
            finish();
        } else {
            z();
        }
    }

    private void z() {
        y();
        gvg.c((Context) this, true);
        finish();
    }

    @Override
    public aky b() {
        aky akyVar = new aky();
        akyVar.a = "bstore";
        akyVar.j = e;
        akyVar.b = "com.baidu.appsearch";
        akyVar.c = getString(R.string.jadx_deobf_0x00002184);
        akyVar.g = "https://sjwssu.baidu.com/bd/yhds_download-appsearch";
        akyVar.h = "https://sjwssu.baidu.com/bd/appsearch_android/icon";
        return akyVar;
    }

    private void A() {
        if (hrf.g(this, this.j.b) && hrf.h(this, this.j.b)) {
            if (this.m == 31) {
                v();
            } else {
                y();
            }
            finish();
            return;
        }
        if (a((Context) this)) {
            this.b = B();
            this.k = this.j.d;
            this.l = this.j.e;
            t();
            b(getString(R.string.jadx_deobf_0x00001f49));
            b(false);
            C();
            return;
        }
        y();
        finish();
    }

    private aky B() {
        aky akyVar = new aky();
        akyVar.a = "bstore";
        akyVar.j = e;
        akyVar.b = this.j.b;
        akyVar.c = this.j.a;
        akyVar.g = this.j.c;
        akyVar.e = this.j.g;
        akyVar.d = this.j.h;
        akyVar.f = this.j.f;
        return akyVar;
    }

    @Override
    public int m() {
        return R.drawable.jadx_deobf_0x00000251;
    }

    @Override
    public String n() {
        return this.k;
    }

    @Override
    public String o() {
        return this.l;
    }

    @Override
    public String q() {
        return getString(R.string.jadx_deobf_0x00001f49);
    }

    @Override
    public String p() {
        return getString(R.string.jadx_deobf_0x00001f4c);
    }

    @Override
    public void r() {
        hrf.m(this, this.j.b);
    }

    public static boolean a(Context context) {
        return !gvg.a(context);
    }

    @Override
    public void l_() {
        super.l_();
        z();
    }

    private void C() {
        if (this.m == 30) {
            hts.a(this);
            hts.a("toolbox", "toolbox_bd_gd", (Number) 1);
        } else if (this.m == 31) {
            hts.a(this);
            hts.a("am", "am_ss_guide", (Number) 1);
        }
    }

    @Override
    public void s() {
        hts.a(this);
        hts.a("st_bda_pn", this.b.b, (Number) 1);
    }
}