和通讯录 v3.9.6版本的 MD5 值为:669178e2ee1b2311daf378bd20c6bbe1
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.aspire.strangecallssdk.b;
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import com.iflytek.cloud.SpeechConstant;
import org.json.JSONException;
import org.json.JSONObject;
import org.simpleframework.xml.strategy.Name;
public class c {
private Context f633a;
public c(Context context) {
this.f633a = context;
}
public boolean a() {
JSONObject a2;
JSONObject jSONObject = new JSONObject();
JSONObject jSONObject2 = new JSONObject();
try {
Object valueOf = String.valueOf(System.currentTimeMillis());
jSONObject2.put("endpointId", com.aspire.strangecallssdk.h.a.d(this.f633a));
jSONObject2.put("endpointType", "modian");
jSONObject2.put("mac", com.aspire.strangecallssdk.h.a.c(this.f633a));
jSONObject2.put("channelId", com.aspire.strangecallssdk.c.b.d);
jSONObject2.put("imei", com.aspire.strangecallssdk.h.a.a(this.f633a));
jSONObject2.put("imsi", com.aspire.strangecallssdk.h.a.b(this.f633a));
jSONObject2.put("producer", com.aspire.strangecallssdk.h.a.b());
jSONObject2.put("model", com.aspire.strangecallssdk.h.a.a());
jSONObject2.put("version", com.aspire.strangecallssdk.c.b.f641b);
jSONObject2.put("client_id", "4");
jSONObject.put(Name.MARK, valueOf);
jSONObject.put("jsonrpc", com.aspire.strangecallssdk.c.b.e);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put("method", com.aspire.strangecallssdk.c.a.i);
if (com.aspire.strangecallssdk.c.a.f638a) {
a2 = a(jSONObject.toString());
} else {
a2 = a(jSONObject);
}
if (a2 != null) {
if (com.aspire.strangecallssdk.c.b.f640a) {
Log.e("registerGeneral返回参数", a2.toString());
}
return com.aspire.strangecallssdk.f.a.g(a2);
}
} catch (JSONException e) {
e.printStackTrace();
}
return false;
}
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;
}
}
}