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

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


package dxoptimizer;

import android.content.Context;
import com.dianxinos.optimizer.utils.HttpUtils;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class daz {
    private static final String a = System.getProperty("line.separator");
    private Context b;

    public daz(Context context) {
        this.b = context.getApplicationContext();
    }

    public String a(def defVar) {
        try {
        } catch (JSONException e) {
            hvq.a("ReleaseNotesFetcher", "failed to prepare/parse release notes", e);
        } catch (HttpUtils.HttpStatusException e2) {
            hvq.a("ReleaseNotesFetcher", "failed to pull release notes", e2);
        } catch (IOException e3) {
            hvq.a("ReleaseNotesFetcher", "failed to pull release notes2", e3);
        } finally {
            hxu.a();
        }
        if (!hvy.c(this.b)) {
            return null;
        }
        ArrayList arrayList = new ArrayList();
        arrayList.add(defVar);
        String a2 = dba.a(this.b, arrayList);
        if (a2 == null) {
            return null;
        }
        hxu.a(4098);
        String a3 = HttpUtils.a(this.b, "https://mobsec-aip.baidu.com/aip/relnote", a2);
        hvb hvbVar = new hvb();
        JSONArray b = hvbVar.b(a3);
        if (!hvbVar.a()) {
            return null;
        }
        List<dap> a4 = a(b);
        if (a4.isEmpty()) {
            return null;
        }
        new daq(this.b, dah.a(this.b)).c(a4);
        return a4.get(0).f;
    }

    private List<dap> a(JSONArray jSONArray) {
        ArrayList arrayList = new ArrayList();
        int length = jSONArray.length();
        for (int i = 0; i < length; i++) {
            JSONObject jSONObject = jSONArray.getJSONObject(i);
            dap dapVar = new dap();
            dapVar.a = jSONObject.getString("pkg");
            dapVar.b = jSONObject.getInt("tover");
            dapVar.f = jSONObject.optString("relnote", "").replaceAll("(<br>)+", a).trim();
            arrayList.add(dapVar);
        }
        return arrayList;
    }
}