和通讯录 v4.2.0版本的 MD5 值为:f213fa766dccbfebde0dd8add5534518
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.aspire.strangecallssdk.b;
import android.content.Context;
import android.text.TextUtils;
import com.aspire.strangecallssdk.h.i;
import com.cmcc.sso.sdk.auth.AuthnConstants;
import com.iflytek.cloud.SpeechConstant;
import org.json.JSONException;
import org.json.JSONObject;
import org.simpleframework.xml.strategy.Name;
public class c {
private Context f632a;
public c(Context context) {
this.f632a = 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.f632a));
jSONObject2.put("endpointType", "modian");
jSONObject2.put(AuthnConstants.RESP_HEADER_KEY_MAC, com.aspire.strangecallssdk.h.a.c(this.f632a));
jSONObject2.put("channelId", com.aspire.strangecallssdk.c.b.f640b);
jSONObject2.put("imei", com.aspire.strangecallssdk.h.a.a(this.f632a));
jSONObject2.put("imsi", com.aspire.strangecallssdk.h.a.b(this.f632a));
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.e);
jSONObject2.put("client_id", "4");
jSONObject.put(Name.MARK, valueOf);
jSONObject.put("jsonrpc", com.aspire.strangecallssdk.c.b.f);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put("method", com.aspire.strangecallssdk.c.a.i);
if (com.aspire.strangecallssdk.c.a.f637a) {
a2 = a(jSONObject.toString());
} else {
a2 = a(jSONObject);
}
if (a2 != null) {
i.c("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)) {
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;
}
}
}