正在查看: Atlys v4.8.7 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Atlys v4.8.7 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package vi;
import Al.k;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.os.Build;
import di.AbstractC0771A;
import dk.AbstractC0781g;
import dn.G;
import dn.P;
import in.juspay.hyper.constants.LogSubCategory;
import in.juspay.hypersdk.core.PaymentConstants;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.net.ssl.HttpsURLConnection;
import kotlin.Pair;
import kotlin.jvm.internal.l;
import org.json.JSONArray;
import org.json.JSONObject;
import xl.B;
import xl.n;
import xl.o;
import xl.v;
import yi.C1207P;
public final class e implements f {
public final Context a;
public final a b;
public final k c;
public final AbstractC0781g d;
public final b e;
public final String f;
public final String g;
public final int h;
static {
StandardCharsets.UTF_8.name();
}
public e(Context context, h hVar, k workContext, AbstractC0781g logger, int i) {
a config = hVar;
config = (i & 2) != 0 ? b.a : config;
workContext = (i & 4) != 0 ? P.c : workContext;
logger = (i & 8) != 0 ? C1207P.f : logger;
b bVar = b.b;
String country = Locale.getDefault().getCountry();
l.g(country, "getDefault().country");
int i2 = Build.VERSION.SDK_INT;
l.h(context, "context");
l.h(config, "config");
l.h(workContext, "workContext");
l.h(logger, "logger");
this.a = context;
this.b = config;
this.c = workContext;
this.d = logger;
this.e = bVar;
this.f = "release";
this.g = country;
this.h = i2;
}
public static final void a(e eVar, JSONObject jSONObject) {
eVar.e.getClass();
URLConnection openConnection = new URL("https://errors.stripe.com/api/426/store/").openConnection();
l.f(openConnection, "null cannot be cast to non-null type javax.net.ssl.HttpsURLConnection");
HttpsURLConnection httpsURLConnection = (HttpsURLConnection) openConnection;
httpsURLConnection.setRequestMethod("POST");
httpsURLConnection.setDoOutput(true);
Pair pair = new Pair("Content-Type", "application/json; charset=utf-8");
Pair pair2 = new Pair("User-Agent", "Android3ds2Sdk 6.1.7");
Pair pair3 = new Pair("sentry_key", "dcb428fea25c40e7b99f81ae5981ee6a");
Pair pair4 = new Pair("sentry_version", "7");
long currentTimeMillis = System.currentTimeMillis();
long seconds = TimeUnit.MILLISECONDS.toSeconds(currentTimeMillis);
long millis = currentTimeMillis - TimeUnit.SECONDS.toMillis(seconds);
StringBuilder sb = new StringBuilder();
sb.append(seconds);
sb.append('.');
sb.append(millis);
for (Map.Entry entry : B.v0(pair, pair2, new Pair("X-Sentry-Auth", n.h1(o.x0("Sentry", n.h1(o.x0(pair3, pair4, new Pair("sentry_timestamp", sb.toString()), new Pair("sentry_client", "Android3ds2Sdk 6.1.7"), new Pair("sentry_secret", "deca87e736574c5c83c07314051fd93a")), ", ", null, null, c.d, 30)), " ", null, null, null, 62))).entrySet()) {
httpsURLConnection.setRequestProperty((String) entry.getKey(), (String) entry.getValue());
}
OutputStream os = httpsURLConnection.getOutputStream();
try {
l.g(os, "os");
Charset UTF_8 = StandardCharsets.UTF_8;
l.g(UTF_8, "UTF_8");
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(os, UTF_8);
try {
outputStreamWriter.write(jSONObject.toString());
outputStreamWriter.flush();
android.support.v4.media.session.b.c0(outputStreamWriter, (Throwable) null);
android.support.v4.media.session.b.c0(os, (Throwable) null);
httpsURLConnection.connect();
httpsURLConnection.getResponseCode();
httpsURLConnection.disconnect();
} finally {
}
} finally {
}
}
public final JSONObject b(Throwable t) {
List<StackTraceElement> L0;
Object F;
ApplicationInfo applicationInfo;
l.h(t, "t");
JSONObject put = new JSONObject().put("release", "[email protected]+24");
JSONObject jSONObject = new JSONObject();
JSONArray jSONArray = new JSONArray();
JSONObject put2 = new JSONObject().put("type", t.getClass().getCanonicalName());
String message = t.getMessage();
if (message == null) {
message = "";
}
JSONObject put3 = put2.put("value", message);
JSONObject jSONObject2 = new JSONObject();
JSONArray jSONArray2 = new JSONArray();
StackTraceElement[] stackTrace = t.getStackTrace();
l.g(stackTrace, "t.stackTrace");
if (stackTrace.length == 0) {
L0 = v.a;
} else {
L0 = xl.l.L0(stackTrace);
Collections.reverse(L0);
}
for (StackTraceElement stackTraceElement : L0) {
jSONArray2.put(new JSONObject().put("lineno", stackTraceElement.getLineNumber()).put("filename", stackTraceElement.getClassName()).put("function", stackTraceElement.getMethodName()));
}
JSONObject put4 = jSONObject2.put("frames", jSONArray2);
l.g(put4, "JSONObject()\n … }\n )");
JSONObject put5 = put.put("exception", jSONObject.put("values", jSONArray.put(put3.put("stacktrace", put4))));
JSONObject put6 = new JSONObject().put("locale", this.g).put(PaymentConstants.ENV, this.f).put("android_os_version", this.h);
for (Map.Entry entry : this.b.a().entrySet()) {
put6.put((String) entry.getKey(), (String) entry.getValue());
}
JSONObject put7 = put5.put("tags", put6);
Context context = this.a;
try {
F = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
} catch (Throwable th2) {
F = AbstractC0771A.F(th2);
}
if (F instanceof wl.k) {
F = null;
}
PackageInfo packageInfo = (PackageInfo) F;
CharSequence loadLabel = (packageInfo == null || (applicationInfo = packageInfo.applicationInfo) == null) ? null : applicationInfo.loadLabel(context.getPackageManager());
JSONObject jSONObject3 = new JSONObject();
JSONObject put8 = new JSONObject().put("app_identifier", context.getPackageName()).put("app_name", loadLabel);
String str = packageInfo != null ? packageInfo.versionName : null;
JSONObject put9 = jSONObject3.put("app", put8.put("app_version", str != null ? str : ""));
JSONObject put10 = new JSONObject().put("name", "Android").put("version", Build.VERSION.RELEASE);
String str2 = Build.TYPE;
JSONObject put11 = put9.put("os", put10.put("type", str2).put("build", Build.DISPLAY));
JSONObject put12 = new JSONObject().put("model_id", Build.ID).put("model", Build.MODEL).put("manufacturer", Build.MANUFACTURER).put("type", str2);
JSONArray jSONArray3 = new JSONArray();
String[] SUPPORTED_ABIS = Build.SUPPORTED_ABIS;
l.g(SUPPORTED_ABIS, "SUPPORTED_ABIS");
for (String str3 : SUPPORTED_ABIS) {
jSONArray3.put(str3);
}
JSONObject put13 = put11.put(LogSubCategory.Context.DEVICE, put12.put("archs", jSONArray3));
l.g(put13, "JSONObject()\n … )\n )");
JSONObject put14 = put7.put("contexts", put13);
l.g(put14, "JSONObject()\n … createRequestContexts())");
return put14;
}
public final void c(Throwable th2) {
G.C(G.c(this.c), (k) null, 0, new d(this, th2, null), 3);
}
}