和通讯录 v4.2.0版本的 MD5 值为:f213fa766dccbfebde0dd8add5534518
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.aspire.strangecallssdk.b;
import android.content.Context;
import android.text.TextUtils;
import com.android.internal.telephony.PhoneConstants;
import com.aspire.strangecallssdk.h.h;
import com.aspire.strangecallssdk.h.i;
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 b {
private Context f630a;
private h f631b;
public b(Context context) {
this.f630a = context;
this.f631b = new h(this.f630a);
}
public boolean a(String str, String str2) {
JSONObject a2;
JSONObject jSONObject = new JSONObject();
JSONObject jSONObject2 = new JSONObject();
try {
String replaceAll = str.replaceAll("(^(\\+)?86)|\\s|-", "");
jSONObject2.put("client_id", com.aspire.strangecallssdk.c.b.f639a);
jSONObject2.put(Telephony.BaseMmsColumns.FROM, com.aspire.strangecallssdk.c.b.f640b);
jSONObject2.put("version", com.aspire.strangecallssdk.c.b.e);
jSONObject2.put(PhoneConstants.PHONE_KEY, replaceAll);
jSONObject2.put("mark", str2);
jSONObject2.put("phoneNum", "");
jSONObject2.put("imei", com.aspire.strangecallssdk.h.a.a(this.f630a));
jSONObject2.put("longitude", this.f631b.a("longitude"));
jSONObject2.put("latitude", this.f631b.a("latitude"));
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.f);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put("method", com.aspire.strangecallssdk.c.a.f638b);
} catch (JSONException e) {
e.printStackTrace();
}
if (com.aspire.strangecallssdk.c.a.f637a) {
a2 = b(jSONObject.toString());
} else {
a2 = a(jSONObject);
}
if (a2 != null) {
return com.aspire.strangecallssdk.f.a.b(a2);
}
return false;
}
private JSONObject b(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)) {
i.c("返回参数", 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;
}
}
public boolean a(String str) {
JSONObject a2;
JSONObject jSONObject = new JSONObject();
JSONObject jSONObject2 = new JSONObject();
try {
jSONObject2.put("client_id", com.aspire.strangecallssdk.c.b.f639a);
jSONObject2.put(Telephony.BaseMmsColumns.FROM, com.aspire.strangecallssdk.c.b.f640b);
jSONObject2.put("phoneNum", "");
jSONObject2.put("imei", com.aspire.strangecallssdk.h.a.a(this.f630a));
jSONObject2.put("version", com.aspire.strangecallssdk.c.b.e);
jSONObject2.put("longitude", this.f631b.a("longitude"));
jSONObject2.put("latitude", this.f631b.a("latitude"));
jSONObject2.put(PhoneConstants.PHONE_KEY, str);
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.f);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put("method", com.aspire.strangecallssdk.c.a.f);
} catch (JSONException e) {
e.printStackTrace();
}
if (com.aspire.strangecallssdk.c.a.f637a) {
a2 = b(jSONObject.toString());
} else {
a2 = a(jSONObject);
}
if (a2 != null) {
return com.aspire.strangecallssdk.f.a.e(a2);
}
return false;
}
public com.aspire.strangecallssdk.a.b a(String str, int i, String str2) {
JSONObject a2;
JSONObject jSONObject = new JSONObject();
JSONObject jSONObject2 = new JSONObject();
if (str2 == null) {
str2 = "";
}
try {
jSONObject2.put("client_id", com.aspire.strangecallssdk.c.b.f639a);
jSONObject2.put(Telephony.BaseMmsColumns.FROM, com.aspire.strangecallssdk.c.b.f640b);
jSONObject2.put("version", com.aspire.strangecallssdk.c.b.e);
jSONObject2.put(PhoneConstants.PHONE_KEY, str);
jSONObject2.put("phoneNum", "");
jSONObject2.put("imei", com.aspire.strangecallssdk.h.a.a(this.f630a));
jSONObject2.put("longitude", this.f631b.a("longitude"));
jSONObject2.put("latitude", this.f631b.a("latitude"));
jSONObject2.put("type", i);
jSONObject2.put("source", str2);
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.f);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put("method", com.aspire.strangecallssdk.c.a.c);
} catch (JSONException e) {
e.printStackTrace();
}
if (com.aspire.strangecallssdk.c.a.f637a) {
a2 = b(jSONObject.toString());
} else {
a2 = a(jSONObject);
}
if (a2 != null) {
return com.aspire.strangecallssdk.f.a.a(a2);
}
return null;
}
}