百度手机卫士 v8.8.0版本的 MD5 值为:a85894a6923c8a39f0c3a3a686ad7443

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

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

    public String a(dfs dfsVar) {
        try {
        } catch (JSONException e) {
            hzi.a("ReleaseNotesFetcher", "failed to prepare/parse release notes", e);
        } catch (HttpUtils.HttpStatusException e2) {
            hzi.a("ReleaseNotesFetcher", "failed to pull release notes", e2);
        } catch (IOException e3) {
            hzi.a("ReleaseNotesFetcher", "failed to pull release notes2", e3);
        } finally {
            ibo.a();
        }
        if (!hzq.c(this.b)) {
            return null;
        }
        ArrayList arrayList = new ArrayList();
        arrayList.add(dfsVar);
        String a2 = dcn.a(this.b, arrayList);
        if (a2 == null) {
            return null;
        }
        ibo.a(4098);
        String a3 = HttpUtils.a(this.b, "https://mobsec-aip.baidu.com/aip/relnote", a2);
        hyt hytVar = new hyt();
        JSONArray b = hytVar.b(a3);
        if (!hytVar.a()) {
            return null;
        }
        List<dcc> a4 = a(b);
        if (a4.isEmpty()) {
            return null;
        }
        new dcd(this.b, dbu.a(this.b)).c(a4);
        return a4.get(0).f;
    }

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