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

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


package dxoptimizer;

import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.text.TextUtils;
import cn.opda.a.phonoalbumshoushou.R;
import java.io.File;
import java.util.List;

public class hom {
    public static void a(Context context, String str) {
        awv b = aww.a(context).b("com.baidu.appsearch");
        if (b != null) {
            if (b.j()) {
                Intent intent = new Intent("com.baidu.appsearch.extinvoker.LAUNCH");
                intent.putExtra("backop", "0");
                intent.putExtra("id", context.getPackageName());
                if (hsf.c(str)) {
                    if (!a(context)) {
                        intent.putExtra("func", "2");
                    } else {
                        return;
                    }
                } else {
                    intent.putExtra("func", "10");
                    intent.putExtra("pkg", str);
                }
                if (hqf.a(context, intent)) {
                    context.startActivity(intent);
                } else {
                    hrf.m(context, "com.baidu.appsearch");
                }
                hts.a(context);
                hts.a("am", "oba", (Number) 1);
                return;
            }
            htt.b(context, R.string.jadx_deobf_0x000020c1, 0);
        }
    }

    public static boolean a(Context context) {
        List<ResolveInfo> queryIntentActivities;
        Intent intent = new Intent("com.baidu.appsearch.exported.MAPPACTION");
        intent.setPackage("com.baidu.appsearch");
        PackageManager a = hsg.a(context);
        if (a == null || (queryIntentActivities = a.queryIntentActivities(intent, 0)) == null || queryIntentActivities.size() <= 0) {
            return false;
        }
        intent.setClassName("com.baidu.appsearch", queryIntentActivities.get(0).activityInfo.name);
        intent.putExtra("invoker", "yhds");
        intent.setFlags(335544320);
        context.startActivity(intent);
        hts.a(context);
        hts.a("am", "oba", (Number) 1);
        return true;
    }

    private static aky b(Context context) {
        aky akyVar = new aky();
        akyVar.a = "bstore";
        akyVar.j = hpg.l;
        akyVar.b = "com.baidu.appsearch";
        akyVar.c = context.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;
    }

    public static void a(Context context, hlr hlrVar, String str) {
        if (!hqo.c(context)) {
            htt.b(context, R.string.jadx_deobf_0x000020c4, 1);
            return;
        }
        if (!hrz.g()) {
            htt.b(context, R.string.jadx_deobf_0x00002a00, 1);
            return;
        }
        ala a = bbb.a(context);
        aky b = b(context);
        hlrVar.setOnDismissListener(new hon(a, b));
        hlrVar.show();
        if (hrf.g(context, b.b)) {
            if (hlrVar != null && hlrVar.isShowing()) {
                hlrVar.dismiss();
            }
            a(context, str);
            return;
        }
        String a2 = hgp.a(context, b.b);
        if (!TextUtils.isEmpty(a2)) {
            c(context, hlrVar, a2);
            hts.a(context);
            hts.a("sf_bda_pe", "com.baidu.appsearch", (Number) 1);
            return;
        }
        akz c = a.c(b.a, b.b);
        if (c != null && c.n == 6 && new File(c.a()).exists()) {
            c(context, hlrVar, c.a());
            hts.a(context);
            hts.a("sf_bda_pe", "com.baidu.appsearch", (Number) 1);
        } else {
            bbb.b(a, b, new hop(context, hlrVar, b));
            hts.a(context);
            hts.a("sf_bda_pn", "com.baidu.appsearch", (Number) 1);
        }
    }

    public static void c(Context context, hlr hlrVar, String str) {
        hkn.a().a(new hoq(context, str, hlrVar), 4);
    }
}