百度手机卫士 v8.1.5版本的 MD5 值为:15af71eae74e2f2b5b9f845fe77a4804
以下内容为反编译后的 dcr.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 dcr {
private static final String a = System.getProperty("line.separator");
private Context b;
public dcr(Context context) {
this.b = context.getApplicationContext();
}
public String a(dfw dfwVar) {
try {
} catch (JSONException e) {
hka.a("ReleaseNotesFetcher", "failed to prepare/parse release notes", e);
} catch (HttpUtils.HttpStatusException e2) {
hka.a("ReleaseNotesFetcher", "failed to pull release notes", e2);
} catch (IOException e3) {
hka.a("ReleaseNotesFetcher", "failed to pull release notes2", e3);
} finally {
hmb.a();
}
if (!hki.c(this.b)) {
return null;
}
ArrayList arrayList = new ArrayList();
arrayList.add(dfwVar);
String a2 = dcs.a(this.b, arrayList);
if (a2 == null) {
return null;
}
hmb.a(4098);
String a3 = HttpUtils.a(this.b, "http://aip.dxsvr.com/aip/relnote", a2);
hjk hjkVar = new hjk();
JSONArray b = hjkVar.b(a3);
if (!hjkVar.a()) {
return null;
}
List a4 = a(b);
if (a4.isEmpty()) {
return null;
}
new dci(this.b, dbz.a(this.b)).c(a4);
return ((dch) 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);
dch dchVar = new dch();
dchVar.a = jSONObject.getString("pkg");
dchVar.b = jSONObject.getInt("tover");
dchVar.f = jSONObject.optString("relnote", "").replaceAll("(<br>)+", a).trim();
arrayList.add(dchVar);
}
return arrayList;
}
}