百度手机卫士 v8.6.2版本的 MD5 值为:fa60cb367e40201705a2d9f9ce2cbfdf

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


package dxoptimizer;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.IntentFilter;
import android.os.AsyncTask;
import android.text.TextUtils;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

class fow extends AsyncTask<Void, Void, Void> {
    final fop a;

    private fow(fop fopVar) {
        this.a = fopVar;
    }

    public fow(fop fopVar, foq foqVar) {
        this(fopVar);
    }

    @Override
    protected void onPreExecute() {
        this.a.ad.setVisibility(0);
        super.onPreExecute();
    }

    @Override
    public Void doInBackground(Void... voidArr) {
        Activity activity;
        Activity activity2;
        Activity activity3;
        Map map;
        List<hlf> list;
        Map map2;
        Map map3;
        boolean b;
        Map map4;
        Activity activity4;
        boolean z;
        String str;
        String str2;
        activity = this.a.aa;
        List<String> a = fro.a(activity);
        activity2 = this.a.aa;
        int b2 = fro.b(activity2);
        fop fopVar = this.a;
        activity3 = this.a.aa;
        fopVar.aC = fvm.g(activity3);
        if (a != null && !a.isEmpty()) {
            this.a.aw = false;
            this.a.av = a.get(0);
            fop fopVar2 = this.a;
            str2 = this.a.av;
            list = fopVar2.a(str2);
        } else if (b2 == 1) {
            this.a.aw = false;
            this.a.av = "com.baidu.searchbox";
            activity4 = this.a.aa;
            fro.d(activity4);
            list = null;
        } else {
            this.a.aw = true;
            if (b2 == 0) {
                this.a.av = "com.baidu.searchbox";
                this.a.ax = "https://downpack.baidu.com/baidusearch_AndroidPhone_1009349m.apk";
                this.a.ay = true;
                list = null;
            } else {
                map = this.a.aC;
                if (map != null) {
                    map2 = this.a.aC;
                    if (!map2.isEmpty()) {
                        map3 = this.a.aC;
                        for (String str3 : map3.keySet()) {
                            b = this.a.b(str3);
                            if (b) {
                                this.a.av = str3;
                                fop fopVar3 = this.a;
                                map4 = this.a.aC;
                                fopVar3.ax = (String) map4.get(str3);
                                this.a.ay = true;
                                list = null;
                                break;
                            }
                        }
                    }
                }
                list = null;
            }
        }
        z = this.a.aw;
        if (z) {
            str = this.a.av;
            if (TextUtils.isEmpty(str)) {
                this.a.av = "com.baidu.searchbox";
                this.a.ax = "https://downpack.baidu.com/baidusearch_AndroidPhone_1009349m.apk";
            }
        }
        if (list != null) {
            this.a.ag = new ArrayList<>(list);
            this.a.Q();
            this.a.T();
        }
        return null;
    }

    @Override
    public void onPostExecute(Void r5) {
        boolean z;
        Activity activity;
        BroadcastReceiver broadcastReceiver;
        Activity activity2;
        Activity activity3;
        LinearLayout linearLayout;
        RelativeLayout relativeLayout;
        Activity activity4;
        this.a.ad.setVisibility(8);
        z = this.a.aw;
        if (z) {
            linearLayout = this.a.au;
            linearLayout.setVisibility(8);
            relativeLayout = this.a.at;
            relativeLayout.setVisibility(0);
            activity4 = this.a.aa;
            hzc.a(activity4);
            hzc.a("ps", "bsrs", (Number) 1);
            this.a.ae.setVisibility(8);
            this.a.af.setVisibility(8);
            this.a.V();
        } else {
            this.a.ae.setVisibility(0);
            this.a.af.setVisibility(8);
            this.a.ai.a(this.a.ah);
            if (this.a.ai.isEmpty()) {
                this.a.ae.setVisibility(0);
                this.a.af.setVisibility(8);
            } else {
                if (this.a.af.getAdapter() == null) {
                    this.a.af.setAdapter(this.a.ai);
                    this.a.af.setOnHeaderUpdateListener(this.a.ai);
                }
                this.a.ae.setVisibility(8);
                this.a.af.setVisibility(0);
            }
            activity = this.a.aa;
            broadcastReceiver = this.a.ao;
            hyv.a(activity, broadcastReceiver, new IntentFilter("com.dianxinos.optimizer.action.SAFEURL_NOTIFY_DATA"));
            activity2 = this.a.aa;
            fro.e(activity2);
            activity3 = this.a.aa;
            fro.d(activity3);
        }
        super.onPostExecute(r5);
    }
}