和通讯录 v3.9.6版本的 MD5 值为:669178e2ee1b2311daf378bd20c6bbe1
以下内容为反编译后的 d.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 java.security.NoSuchAlgorithmException;
import org.json.JSONException;
import org.json.JSONObject;
import org.simpleframework.xml.strategy.Name;
public class d {
private Context f634a;
private String f635b = "asdf98a89w89*9%";
private e c;
public d(Context context) {
this.f634a = context;
this.c = new e(context);
}
public boolean a(String str) {
String str2;
JSONObject a2;
JSONObject jSONObject = new JSONObject();
JSONObject jSONObject2 = new JSONObject();
JSONObject jSONObject3 = new JSONObject();
String valueOf = String.valueOf(System.currentTimeMillis());
String str3 = "";
try {
str3 = com.aspire.strangecallssdk.h.a.d(this.f634a);
str2 = com.aspire.strangecallssdk.h.a.a("device_id=" + str3 + "id=" + valueOf + "type=modian" + this.f635b);
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
str2 = "";
}
try {
jSONObject3.put("content", str);
jSONObject2.put(Telephony.BaseMmsColumns.FROM, com.aspire.strangecallssdk.c.b.d);
jSONObject2.put("device_id", str3);
jSONObject2.put("version", com.aspire.strangecallssdk.c.b.f641b);
jSONObject2.put("mobile_num", "");
jSONObject2.put("imei", com.aspire.strangecallssdk.h.a.a(this.f634a));
jSONObject2.put("imsi", com.aspire.strangecallssdk.h.a.b(this.f634a));
jSONObject2.put("client_id", "4");
jSONObject2.put("type", "modian");
jSONObject2.put("fieldSeperatorChar", "|");
jSONObject2.put("signature", str2);
jSONObject2.put("log", jSONObject3);
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.g);
if (com.aspire.strangecallssdk.c.a.f638a) {
a2 = c(jSONObject.toString());
} else {
a2 = a(jSONObject);
}
if (a2 != null) {
if (com.aspire.strangecallssdk.c.b.f640a) {
Log.e("上传全部数据,返回参数", a2.toString());
}
return com.aspire.strangecallssdk.f.a.f(a2);
}
} catch (JSONException e2) {
e2.printStackTrace();
}
return false;
}
public boolean a(com.aspire.strangecallssdk.a.b bVar, String str, String str2, String str3) {
String str4;
NoSuchAlgorithmException e;
String str5;
boolean z;
JSONObject a2;
JSONObject jSONObject = new JSONObject();
JSONObject jSONObject2 = new JSONObject();
JSONObject jSONObject3 = new JSONObject();
String valueOf = String.valueOf(System.currentTimeMillis());
Object obj = "";
try {
str4 = com.aspire.strangecallssdk.h.a.d(this.f634a);
} catch (NoSuchAlgorithmException e2) {
str4 = "";
e = e2;
}
try {
obj = com.aspire.strangecallssdk.h.a.a("device_id=" + str4 + "id=" + valueOf + "type=modian" + this.f635b);
} catch (NoSuchAlgorithmException e3) {
e = e3;
e.printStackTrace();
str5 = "";
if (!str.equals(com.aspire.strangecallssdk.h.d.f673a)) {
}
jSONObject3.put("content", str5);
jSONObject2.put(Telephony.BaseMmsColumns.FROM, com.aspire.strangecallssdk.c.b.d);
jSONObject2.put("device_id", str4);
jSONObject2.put("version", com.aspire.strangecallssdk.c.b.f641b);
jSONObject2.put("mobile_num", "");
jSONObject2.put("imei", com.aspire.strangecallssdk.h.a.a(this.f634a));
jSONObject2.put("imsi", com.aspire.strangecallssdk.h.a.b(this.f634a));
jSONObject2.put("client_id", "4");
jSONObject2.put("type", "modian");
jSONObject2.put("fieldSeperatorChar", "|");
jSONObject2.put("signature", obj);
jSONObject2.put("log", jSONObject3);
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.g);
if (!com.aspire.strangecallssdk.c.a.f638a) {
}
if (a2 != null) {
}
if (!z) {
}
return z;
}
str5 = "";
if (!str.equals(com.aspire.strangecallssdk.h.d.f673a)) {
str5 = b(bVar, str4, str2, str3);
if (com.aspire.strangecallssdk.c.b.f640a && !TextUtils.isEmpty(str5)) {
Log.e("日志", str5);
}
} else if (str.equals(com.aspire.strangecallssdk.h.d.f674b)) {
str5 = b(str4);
}
try {
jSONObject3.put("content", str5);
jSONObject2.put(Telephony.BaseMmsColumns.FROM, com.aspire.strangecallssdk.c.b.d);
jSONObject2.put("device_id", str4);
jSONObject2.put("version", com.aspire.strangecallssdk.c.b.f641b);
jSONObject2.put("mobile_num", "");
jSONObject2.put("imei", com.aspire.strangecallssdk.h.a.a(this.f634a));
jSONObject2.put("imsi", com.aspire.strangecallssdk.h.a.b(this.f634a));
jSONObject2.put("client_id", "4");
jSONObject2.put("type", "modian");
jSONObject2.put("fieldSeperatorChar", "|");
jSONObject2.put("signature", obj);
jSONObject2.put("log", jSONObject3);
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.g);
if (!com.aspire.strangecallssdk.c.a.f638a) {
a2 = c(jSONObject.toString());
} else {
a2 = a(jSONObject);
}
if (a2 != null) {
z = false;
} else {
if (com.aspire.strangecallssdk.c.b.f640a) {
Log.e("上传日志,返回参数", a2.toString());
}
z = com.aspire.strangecallssdk.f.a.f(a2);
}
} catch (JSONException e4) {
e4.printStackTrace();
z = false;
} catch (Exception e5) {
z = false;
}
if (!z) {
com.aspire.strangecallssdk.h.d.a(this.f634a, str5, str);
}
return z;
}
private String b(com.aspire.strangecallssdk.a.b bVar, String str, String str2, String str3) {
String str4 = "";
String str5 = "";
if (bVar != null) {
str4 = bVar.f626b;
str3 = bVar.f625a;
if (bVar.c != null) {
str5 = bVar.c;
}
}
String a2 = this.c.a("longitude");
String a3 = this.c.a("latitude");
StringBuilder sb = new StringBuilder();
sb.append("本地缓存查询").append("|").append(str2).append("|").append(str4).append("|").append(str3).append("|").append(str5).append("|").append(a2).append("|").append(a3).append("|").append(com.aspire.strangecallssdk.h.a.c());
return sb.toString();
}
private String b(String str) {
StringBuilder sb = new StringBuilder();
sb.append("SDK用户数").append("|").append(str).append("|").append(com.aspire.strangecallssdk.c.b.d).append("|").append(com.aspire.strangecallssdk.c.b.f641b).append("|").append(com.aspire.strangecallssdk.h.a.c());
return sb.toString();
}
private JSONObject c(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;
}
}
}