和通讯录 v3.9.6版本的 MD5 值为:669178e2ee1b2311daf378bd20c6bbe1
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.aspire.strangecallssdk.b;
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import com.aspire.strangecallssdk.h.e;
import com.huawei.mcs.cloud.msg.base.mms.Telephony;
import com.iflytek.cloud.SpeechConstant;
import org.json.JSONException;
import org.json.JSONObject;
import org.simpleframework.xml.strategy.Name;
public class a {
private Context f630a;
public a(Context context) {
this.f630a = context;
}
public boolean a() {
JSONObject a2;
JSONObject jSONObject = new JSONObject();
JSONObject jSONObject2 = new JSONObject();
try {
e eVar = new e(this.f630a);
String a3 = eVar.a("offLine_version");
jSONObject2.put("client_id", com.aspire.strangecallssdk.c.b.c);
jSONObject2.put("version_id", a3);
jSONObject2.put(Telephony.BaseMmsColumns.FROM, com.aspire.strangecallssdk.c.b.d);
jSONObject2.put("phoneNum", "");
jSONObject2.put("imei", com.aspire.strangecallssdk.h.a.a(this.f630a));
jSONObject2.put("longitude", eVar.a("longitude"));
jSONObject2.put("latitude", eVar.a("latitude"));
jSONObject2.put("version", com.aspire.strangecallssdk.c.b.f641b);
jSONObject2.put("device_id", com.aspire.strangecallssdk.h.a.d(this.f630a));
jSONObject.put(Name.MARK, String.valueOf(System.currentTimeMillis()));
jSONObject.put("jsonrpc", com.aspire.strangecallssdk.c.b.e);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put("method", com.aspire.strangecallssdk.c.a.d);
} catch (JSONException e) {
e.printStackTrace();
}
if (com.aspire.strangecallssdk.c.a.f638a) {
a2 = a(jSONObject.toString());
} else {
a2 = a(jSONObject);
}
if (a2 != null) {
return com.aspire.strangecallssdk.f.a.c(a2);
}
return false;
}
public com.aspire.strangecallssdk.a.c b() {
JSONObject a2;
JSONObject jSONObject = new JSONObject();
JSONObject jSONObject2 = new JSONObject();
e eVar = new e(this.f630a);
String a3 = eVar.a("offLine_version");
try {
jSONObject2.put("client_id", com.aspire.strangecallssdk.c.b.c);
jSONObject2.put("version_id", a3);
jSONObject2.put(Telephony.BaseMmsColumns.FROM, com.aspire.strangecallssdk.c.b.d);
jSONObject2.put("phoneNum", "");
jSONObject2.put("imei", com.aspire.strangecallssdk.h.a.a(this.f630a));
jSONObject2.put("longitude", eVar.a("longitude"));
jSONObject2.put("latitude", eVar.a("latitude"));
jSONObject2.put("version", com.aspire.strangecallssdk.c.b.f641b);
jSONObject2.put("device_id", com.aspire.strangecallssdk.h.a.d(this.f630a));
jSONObject.put(Name.MARK, String.valueOf(System.currentTimeMillis()));
jSONObject.put("jsonrpc", com.aspire.strangecallssdk.c.b.e);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put("method", com.aspire.strangecallssdk.c.a.e);
} catch (JSONException e) {
e.printStackTrace();
}
if (com.aspire.strangecallssdk.c.a.f638a) {
a2 = a(jSONObject.toString());
} else {
a2 = a(jSONObject);
}
if (a2 != null) {
return com.aspire.strangecallssdk.f.a.d(a2);
}
return null;
}
private JSONObject a(String str) {
try {
String a2 = new com.aspire.strangecallssdk.g.b().a("https://a.cytxl.com.cn/pim/jsonrpc_api.php", str, true);
JSONObject jSONObject = new JSONObject(a2);
if (!TextUtils.isEmpty(a2) && com.aspire.strangecallssdk.c.b.f640a) {
Log.e("返回参数", a2);
return jSONObject;
}
return jSONObject;
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
private JSONObject a(JSONObject jSONObject) {
try {
return new JSONObject(new com.aspire.strangecallssdk.g.a().a("https://a.cytxl.com.cn/pim/jsonrpc_api.php", jSONObject.toString()));
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
}