正在查看: Perplexity v2.48.1 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Perplexity v2.48.1 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package Yj;
import Ui.C0507f;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.os.Build;
import bk.P;
import com.google.firebase.perf.network.FirebasePerfUrlConnection;
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.Result;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.collections.EmptyList;
import kotlin.collections.MapsKt;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.internal.Intrinsics;
import om.AbstractC1274E;
import om.H;
import om.U;
import org.json.JSONArray;
import org.json.JSONObject;
import wm.C1772e;
import wm.ExecutorC1771d;
import xb.V;
public final class d implements e {
public final b X;
public final String Y;
public final String Z;
public final int r0;
public final Context w;
public final a x;
public final CoroutineContext y;
public final V z;
static {
StandardCharsets.UTF_8.name();
}
public d(Context context, g gVar, CoroutineContext workContext, V v, int i) {
a aVar = (i & 2) != 0 ? b.w : gVar;
if ((i & 4) != 0) {
C1772e c1772e = U.a;
workContext = ExecutorC1771d.w;
}
v = (i & 8) != 0 ? P.z : v;
b bVar = b.x;
String localeCountry = Locale.getDefault().getCountry();
int i2 = Build.VERSION.SDK_INT;
Intrinsics.h(workContext, "workContext");
Intrinsics.h(localeCountry, "localeCountry");
this.w = context;
this.x = aVar;
this.y = workContext;
this.z = v;
this.X = bVar;
this.Y = "release";
this.Z = localeCountry;
this.r0 = i2;
}
public static final void a(d dVar, JSONObject jSONObject) {
dVar.getClass();
dVar.X.getClass();
URLConnection uRLConnection = (URLConnection) FirebasePerfUrlConnection.instrument(new URL("https://errors.stripe.com/api/426/store/").openConnection());
Intrinsics.f(uRLConnection, "null cannot be cast to non-null type javax.net.ssl.HttpsURLConnection");
HttpsURLConnection httpsURLConnection = (HttpsURLConnection) uRLConnection;
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.2.0");
Pair pair3 = new Pair("sentry_key", "dcb428fea25c40e7b99f81ae5981ee6a");
Pair pair4 = new Pair("sentry_version", "7");
long currentTimeMillis = System.currentTimeMillis();
long seconds = TimeUnit.MILLISECONDS.toSeconds(currentTimeMillis);
for (Map.Entry entry : MapsKt.g0(pair, pair2, new Pair("X-Sentry-Auth", bl.f.M0(bl.b.e0("Sentry", bl.f.M0(bl.b.e0(pair3, pair4, new Pair("sentry_timestamp", seconds + "." + (currentTimeMillis - TimeUnit.SECONDS.toMillis(seconds))), new Pair("sentry_client", "Android3ds2Sdk 6.2.0"), new Pair("sentry_secret", "deca87e736574c5c83c07314051fd93a")), ", ", null, null, new C0507f(17), 30)), " ", null, null, null, 62))).entrySet()) {
httpsURLConnection.setRequestProperty((String) entry.getKey(), (String) entry.getValue());
}
OutputStream outputStream = httpsURLConnection.getOutputStream();
try {
Intrinsics.e(outputStream);
Charset UTF_8 = StandardCharsets.UTF_8;
Intrinsics.g(UTF_8, "UTF_8");
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream, UTF_8);
try {
outputStreamWriter.write(jSONObject.toString());
outputStreamWriter.flush();
Unit unit = Unit.a;
outputStreamWriter.close();
outputStream.close();
httpsURLConnection.connect();
httpsURLConnection.getResponseCode();
httpsURLConnection.disconnect();
} finally {
}
} finally {
}
}
public final JSONObject b(Throwable th2) {
List<StackTraceElement> U0;
Object a;
ApplicationInfo applicationInfo;
JSONObject put = new JSONObject().put("release", "[email protected]+26");
JSONObject jSONObject = new JSONObject();
JSONArray jSONArray = new JSONArray();
JSONObject put2 = new JSONObject().put("type", th2.getClass().getCanonicalName());
String message = th2.getMessage();
if (message == null) {
message = "";
}
JSONObject put3 = put2.put("value", message);
JSONObject jSONObject2 = new JSONObject();
JSONArray jSONArray2 = new JSONArray();
StackTraceElement[] stackTrace = th2.getStackTrace();
Intrinsics.g(stackTrace, "getStackTrace(...)");
if (stackTrace.length == 0) {
U0 = EmptyList.w;
} else {
U0 = kotlin.collections.c.U0(stackTrace);
Collections.reverse(U0);
}
for (StackTraceElement stackTraceElement : U0) {
jSONArray2.put(new JSONObject().put("lineno", stackTraceElement.getLineNumber()).put("filename", stackTraceElement.getClassName()).put("function", stackTraceElement.getMethodName()));
}
Unit unit = Unit.a;
JSONObject put4 = jSONObject2.put("frames", jSONArray2);
Intrinsics.g(put4, "put(...)");
JSONObject put5 = put.put("exception", jSONObject.put("values", jSONArray.put(put3.put("stacktrace", put4))));
JSONObject put6 = new JSONObject().put("locale", this.Z).put("environment", this.Y).put("android_os_version", this.r0);
for (Map.Entry entry : this.x.b().entrySet()) {
put6.put((String) entry.getKey(), (String) entry.getValue());
}
Unit unit2 = Unit.a;
JSONObject put7 = put5.put("tags", put6);
Context context = this.w;
try {
int i = Result.x;
a = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
} catch (Throwable th3) {
int i2 = Result.x;
a = ResultKt.a(th3);
}
if (a instanceof Result.Failure) {
a = null;
}
PackageInfo packageInfo = (PackageInfo) a;
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;
Intrinsics.g(SUPPORTED_ABIS, "SUPPORTED_ABIS");
for (String str3 : SUPPORTED_ABIS) {
jSONArray3.put(str3);
}
Unit unit3 = Unit.a;
JSONObject put13 = put11.put("device", put12.put("archs", jSONArray3));
Intrinsics.g(put13, "put(...)");
JSONObject put14 = put7.put("contexts", put13);
Intrinsics.g(put14, "put(...)");
return put14;
}
public final void c(Throwable th2) {
H.o(AbstractC1274E.a(this.y), null, null, new c(this, th2, null), 3);
}
}