正在查看: 万能钥匙 v1.1.23 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package dp;
import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
public class h {
public static void a(Context context, ep.d dVar) {
String str = "android_" + dVar.b() + "_" + System.currentTimeMillis();
g.b(context).c("common_parameters", c(context, dVar).toString());
i.d(context, d(context));
g.b(context).c("aggregate_session_startTime", Long.valueOf(System.currentTimeMillis()));
g.b(context).c("session_id", str);
}
public static JSONObject b(Context context, String str) {
JSONObject jSONObject = new JSONObject();
try {
if (!TextUtils.isEmpty((CharSequence) g.b(context).a("common_parameters", ""))) {
jSONObject = new JSONObject((String) g.b(context).a("common_parameters", ""));
}
jSONObject.put("dataType", "event");
jSONObject.put("event_id", str);
jSONObject.put("event_time", j.b(System.currentTimeMillis()));
jSONObject.put("session_id", g.b(context).a("session_id", ""));
return jSONObject;
} catch (JSONException e) {
fp.b.f("Exception", e);
return jSONObject;
}
}
public static JSONObject c(Context context, ep.d dVar) {
JSONObject jSONObject;
Exception e;
try {
jSONObject = new JSONObject();
} catch (Exception e2) {
jSONObject = null;
e = e2;
}
try {
jSONObject.put("platform", "android");
jSONObject.put("sdk_version", "1.1.6.0");
jSONObject.put("device_brand", Build.BRAND);
jSONObject.put("channel", dVar.a());
jSONObject.put("imei", dVar.b());
jSONObject.put("uhid", dVar.g());
jSONObject.put("appId", dVar.f());
jSONObject.put("eastLng", dVar.d());
jSONObject.put("northLat", dVar.c());
return jSONObject;
} catch (Exception e3) {
e = e3;
fp.b.f("Exception", e);
return jSONObject;
}
}
public static JSONObject d(Context context) {
JSONObject jSONObject = new JSONObject();
try {
if (!TextUtils.isEmpty((CharSequence) g.b(context).a("common_parameters", ""))) {
jSONObject = new JSONObject((String) g.b(context).a("common_parameters", ""));
}
jSONObject.put("dataType", "session");
jSONObject.put("event_time", j.b(System.currentTimeMillis()));
jSONObject.put("aggregate_session_startTime", j.b(((Long) g.b(context).a("session_startTime", Long.valueOf(System.currentTimeMillis()))).longValue()));
jSONObject.put("aggregate_session_end_time", j.b(((Long) g.b(context).a("session_endtime", Long.valueOf(System.currentTimeMillis()))).longValue()));
return jSONObject;
} catch (Exception e) {
fp.b.f("Exception", e);
return jSONObject;
}
}
public static void e(String str, boolean z) {
f(z, str);
}
public static void f(boolean z, String str) {
if (z) {
c.a = "https://rdtgatewaytest.shengpay.com/rdt-gateway/rest/message";
} else {
c.a = "https://rdtgateway.shengpay.com/rdt-gateway/rest/message";
}
c.c = str;
fp.b.b("uploadDot", z);
}
public static void g(Context context, String str, Map<String, String> map) {
if (context == null || !j.c(context)) {
return;
}
try {
JSONObject b = b(context, str);
if (map != null) {
JSONObject jSONObject = new JSONObject();
for (Map.Entry<String, String> entry : map.entrySet()) {
jSONObject.put(entry.getKey(), TextUtils.isEmpty(entry.getValue()) ? null : entry.getValue());
}
b.put("event_properties", jSONObject);
}
i.d(context, b);
} catch (JSONException e) {
fp.b.a("doterror %s", e.getMessage().toString());
}
}
}