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

以下内容为反编译后的 czj.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 czj {
    private static final String a = System.getProperty("line.separator");
    private Context b;

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

    public String a(dco dcoVar) {
        try {
        } catch (JSONException e) {
            hqg.a("ReleaseNotesFetcher", "failed to prepare/parse release notes", e);
        } catch (HttpUtils.HttpStatusException e2) {
            hqg.a("ReleaseNotesFetcher", "failed to pull release notes", e2);
        } catch (IOException e3) {
            hqg.a("ReleaseNotesFetcher", "failed to pull release notes2", e3);
        } finally {
            hsk.a();
        }
        if (!hqo.c(this.b)) {
            return null;
        }
        ArrayList arrayList = new ArrayList();
        arrayList.add(dcoVar);
        String a2 = czk.a(this.b, arrayList);
        if (a2 == null) {
            return null;
        }
        hsk.a(4098);
        String a3 = HttpUtils.a(this.b, "https://mobsec-aip.baidu.com/aip/relnote", a2);
        hpr hprVar = new hpr();
        JSONArray b = hprVar.b(a3);
        if (!hprVar.a()) {
            return null;
        }
        List a4 = a(b);
        if (a4.isEmpty()) {
            return null;
        }
        new cza(this.b, cyr.a(this.b)).c(a4);
        return ((cyz) a4.get(0)).f;
    }

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