MD5 校验值:a9a821418db4ad35214aeeb08c2f5902
d.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package c1; import android.content.Context; import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.res.Resources; import android.database.Cursor; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Build; import android.text.TextUtils; import android.util.Log; import c6.j; import c6.k; import com.android.billingclient.api.BillingResult; import com.android.billingclient.api.Purchase; import com.android.billingclient.api.PurchasesResponseListener; import com.google.firebase.crashlytics.CrashlyticsRegistrar; import com.google.firebase.remoteconfig.internal.a; import d5.c0; import d5.d0; import d5.j0; import d5.n; import d5.p; import d5.v; import d5.x; import d5.y; import d5.z; import e3.h; import e3.i; import e3.l; import e3.u; import f6.a; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.lang.Thread; import java.net.ConnectException; import java.net.HttpURLConnection; import java.net.URL; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.Objects; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; import java.util.concurrent.Executor; import java.util.concurrent.ExecutorService; import java.util.concurrent.Future; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; import k5.g; import l1.b; import l6.g0; import l6.h0; import l6.i0; import m1.m; import m1.s; import r1.c; import v1.o; import w1.b; import x5.f0; import x5.l0; import y4.t; public final class d implements PurchasesResponseListener, e3.f, b.a, o.b, a.InterfaceC0072a, e3.a, j, e3.d, h, y4.e { public final int f2523k; public final Object f2524l; public d(Object obj, int i9) { this.f2523k = i9; this.f2524l = obj; } @Override public Object a(Object obj) { switch (this.f2523k) { case 2: l1.b bVar = (l1.b) this.f2524l; b.a aVar = (b.a) obj; Objects.requireNonNull(bVar); s1.a.e("CctTransportBackend", "Making request to: %s", aVar.f6223a); HttpURLConnection httpURLConnection = (HttpURLConnection) aVar.f6223a.openConnection(); httpURLConnection.setConnectTimeout(30000); httpURLConnection.setReadTimeout(bVar.f6222g); httpURLConnection.setDoOutput(true); httpURLConnection.setInstanceFollowRedirects(false); httpURLConnection.setRequestMethod("POST"); httpURLConnection.setRequestProperty("User-Agent", String.format("datatransport/%s android/", "3.1.7")); httpURLConnection.setRequestProperty("Content-Encoding", "gzip"); httpURLConnection.setRequestProperty("Content-Type", "application/json"); httpURLConnection.setRequestProperty("Accept-Encoding", "gzip"); String str = aVar.f6225c; if (str != null) { httpURLConnection.setRequestProperty("X-Goog-Api-Key", str); } try { OutputStream outputStream = httpURLConnection.getOutputStream(); try { GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(outputStream); try { ((q5.d) bVar.f6216a).a(aVar.f6224b, new BufferedWriter(new OutputStreamWriter(gZIPOutputStream))); gZIPOutputStream.close(); if (outputStream != null) { outputStream.close(); } int responseCode = httpURLConnection.getResponseCode(); s1.a.e("CctTransportBackend", "Status Code: %d", Integer.valueOf(responseCode)); s1.a.a("CctTransportBackend", "Content-Type: %s", httpURLConnection.getHeaderField("Content-Type")); s1.a.a("CctTransportBackend", "Content-Encoding: %s", httpURLConnection.getHeaderField("Content-Encoding")); if (responseCode == 302 || responseCode == 301 || responseCode == 307) { return new b.C0105b(responseCode, new URL(httpURLConnection.getHeaderField("Location")), 0L); } if (responseCode != 200) { return new b.C0105b(responseCode, null, 0L); } InputStream inputStream = httpURLConnection.getInputStream(); try { InputStream gZIPInputStream = "gzip".equals(httpURLConnection.getHeaderField("Content-Encoding")) ? new GZIPInputStream(inputStream) : inputStream; try { b.C0105b c0105b = new b.C0105b(responseCode, null, ((m) s.a(new BufferedReader(new InputStreamReader(gZIPInputStream)))).f7333a); if (gZIPInputStream != null) { gZIPInputStream.close(); } if (inputStream != null) { inputStream.close(); } return c0105b; } finally { } } catch (Throwable th) { if (inputStream != null) { try { inputStream.close(); } catch (Throwable th2) { th.addSuppressed(th2); } } throw th; } } finally { } } catch (Throwable th3) { if (outputStream != null) { try { outputStream.close(); } catch (Throwable th4) { th3.addSuppressed(th4); } } throw th3; } } catch (ConnectException e9) { e = e9; s1.a.c("CctTransportBackend", "Couldn't open connection, returning with 500", e); return new b.C0105b(500, null, 0L); } catch (UnknownHostException e10) { e = e10; s1.a.c("CctTransportBackend", "Couldn't open connection, returning with 500", e); return new b.C0105b(500, null, 0L); } catch (IOException e11) { e = e11; s1.a.c("CctTransportBackend", "Couldn't encode request, returning with 400", e); return new b.C0105b(400, null, 0L); } catch (o5.c e12) { e = e12; s1.a.c("CctTransportBackend", "Couldn't encode request, returning with 400", e); return new b.C0105b(400, null, 0L); } case 5: o oVar = (o) this.f2524l; Cursor cursor = (Cursor) obj; k1.b bVar2 = o.f9452p; Objects.requireNonNull(oVar); while (cursor.moveToNext()) { oVar.v(cursor.getInt(0), c.a.MAX_RETRIES_REACHED, cursor.getString(1)); } return null; case 12: f0 f0Var = (f0) this.f2524l; Cursor cursor2 = (Cursor) obj; Objects.requireNonNull(f0Var); return f0Var.g(cursor2.getBlob(0), cursor2.getInt(1)); default: l0 l0Var = (l0) this.f2524l; Cursor cursor3 = (Cursor) obj; Objects.requireNonNull(l0Var); return l0Var.k(cursor3.getInt(0), cursor3.getBlob(1)); } } @Override public void b(Object obj) { ((j1.b) this.f2524l).b(Boolean.TRUE); } @Override public void c(BillingResult billingResult, List list) { f fVar = (f) this.f2524l; Objects.requireNonNull(fVar); if (billingResult.f2703a == 0) { boolean z8 = false; Iterator it = list.iterator(); while (it.hasNext()) { if (((Purchase) it.next()).f2727c.optBoolean("acknowledged", true)) { z8 = true; } } j1.d.a().f5632a.edit().putBoolean("13", z8).commit(); Iterator it2 = list.iterator(); while (it2.hasNext()) { fVar.f((Purchase) it2.next()); } } Iterator it3 = list.iterator(); while (it3.hasNext()) { Objects.toString(it3.next()); } } @Override public void d(i iVar) { switch (this.f2523k) { case 14: g0.b((Intent) this.f2524l); return; case 15: i0.a aVar = (i0.a) this.f2524l; int i9 = h0.f6326b; aVar.b(); return; default: ((ScheduledFuture) this.f2524l).cancel(false); return; } } @Override public Object e(i iVar) { boolean z8 = true; switch (this.f2523k) { case 7: Objects.requireNonNull((d5.g0) this.f2524l); if (iVar.n()) { x xVar = (x) iVar.j(); b4.e eVar = b4.e.f2198k; StringBuilder t8 = androidx.activity.b.t("Crashlytics report successfully enqueued to DataTransport: "); t8.append(xVar.c()); eVar.f(t8.toString()); File b9 = xVar.b(); if (b9.delete()) { StringBuilder t9 = androidx.activity.b.t("Deleted report file: "); t9.append(b9.getPath()); eVar.f(t9.toString()); } else { StringBuilder t10 = androidx.activity.b.t("Crashlytics could not delete report file: "); t10.append(b9.getPath()); eVar.t(t10.toString()); } } else { Log.w("FirebaseCrashlytics", "Crashlytics report could not be enqueued to DataTransport", iVar.i()); z8 = false; } return Boolean.valueOf(z8); case 8: CountDownLatch countDownLatch = (CountDownLatch) this.f2524l; ExecutorService executorService = j0.f3893a; countDownLatch.countDown(); return null; default: com.google.firebase.firestore.a aVar = (com.google.firebase.firestore.a) this.f2524l; Objects.requireNonNull(aVar); y5.h hVar = (y5.h) iVar.j(); return new t5.f(aVar.f3435b, aVar.f3434a, hVar, true, hVar != null && hVar.g()); } } @Override public Object f(y4.c cVar) { u<Void> uVar; i p8; d5.a aVar; boolean z8; boolean z9; Executor executor; boolean z10; boolean exists; boolean z11; String str; NetworkInfo activeNetworkInfo; Resources resources; boolean parseBoolean; k5.b a9; String[] strArr; switch (this.f2523k) { case 0: return this.f2524l; default: Objects.requireNonNull((CrashlyticsRegistrar) this.f2524l); t tVar = (t) cVar; o4.e eVar = (o4.e) tVar.b(o4.e.class); f6.a p9 = tVar.p(a5.a.class); f6.a p10 = tVar.p(s4.a.class); g6.e eVar2 = (g6.e) tVar.b(g6.e.class); eVar.a(); Context context = eVar.f7976a; String packageName = context.getPackageName(); Log.i("FirebaseCrashlytics", "Initializing Firebase Crashlytics 18.2.12 for " + packageName, null); i5.d dVar = new i5.d(context); z zVar = new z(eVar); d0 d0Var = new d0(context, packageName, eVar2, zVar); a5.b bVar = new a5.b(p9); z4.b bVar2 = new z4.b(p10); d5.u uVar2 = new d5.u(eVar, d0Var, bVar, zVar, new z4.a(bVar2), new u1.j(bVar2, 5), dVar, c0.a("Crashlytics Exception Handler")); eVar.a(); String str2 = eVar.f7978c.f7991b; String e9 = d5.e.e(context); String str3 = "Mapping file ID is: " + e9; if (Log.isLoggable("FirebaseCrashlytics", 3)) { Log.d("FirebaseCrashlytics", str3, null); } a5.c cVar2 = new a5.c(context); try { String packageName2 = context.getPackageName(); String d9 = d0Var.d(); PackageInfo packageInfo = context.getPackageManager().getPackageInfo(packageName2, 0); String num = Integer.toString(packageInfo.versionCode); String str4 = packageInfo.versionName; if (str4 == null) { str4 = "0.0"; } String str5 = str4; d5.a aVar2 = new d5.a(str2, e9, d9, packageName2, num, str5, cVar2); String str6 = "Installer package name is: " + d9; if (Log.isLoggable("FirebaseCrashlytics", 2)) { Log.v("FirebaseCrashlytics", str6, null); } Executor a10 = c0.a("com.google.firebase.crashlytics.startup"); r.d dVar2 = new r.d(); String d10 = d0Var.d(); b4.e eVar3 = new b4.e(); n6.c cVar3 = new n6.c(eVar3); n6.c cVar4 = new n6.c(dVar); Locale locale = Locale.US; d1.d dVar3 = new d1.d(String.format(locale, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str2), dVar2); String format = String.format(locale, "%s/%s", d0Var.e(Build.MANUFACTURER), d0Var.e(Build.MODEL)); String e10 = d0Var.e(Build.VERSION.INCREMENTAL); String e11 = d0Var.e(Build.VERSION.RELEASE); int i9 = 0; String[] strArr2 = {d5.e.e(context), str2, str5, num}; ArrayList arrayList = new ArrayList(); int i10 = 0; for (int i11 = 4; i10 < i11; i11 = 4) { String str7 = strArr2[i10]; if (str7 != null) { strArr = strArr2; arrayList.add(str7.replace("-", "").toLowerCase(Locale.US)); } else { strArr = strArr2; } i10++; strArr2 = strArr; } Collections.sort(arrayList); StringBuilder sb = new StringBuilder(); Iterator it = arrayList.iterator(); while (it.hasNext()) { sb.append((String) it.next()); } String sb2 = sb.toString(); k5.d dVar4 = new k5.d(context, new g(str2, format, e10, e11, d0Var, sb2.length() > 0 ? d5.e.l(sb2) : null, str5, num, androidx.activity.b.e(d10 != null ? 4 : 1)), eVar3, cVar3, cVar4, dVar3, zVar); if ((!d5.e.g(dVar4.f6030a).getString("existing_instance_identifier", "").equals(dVar4.f6031b.f6044f)) || (a9 = dVar4.a(1)) == null) { k5.b a11 = dVar4.a(3); if (a11 != null) { dVar4.f6037h.set(a11); dVar4.f6038i.get().b(a11); } z zVar2 = dVar4.f6036g; u<Void> uVar3 = zVar2.f3966g.f4208a; synchronized (zVar2.f3962c) { uVar = zVar2.f3963d.f4208a; } ExecutorService executorService = j0.f3893a; e3.j jVar = new e3.j(); d5.h0 h0Var = new d5.h0(jVar, i9); uVar3.g(a10, h0Var); uVar.g(a10, h0Var); p8 = jVar.f4208a.p(a10, new k5.c(dVar4)); } else { dVar4.f6037h.set(a9); dVar4.f6038i.get().b(a9); p8 = l.e(null); } p8.g(a10, new r.d()); Context context2 = uVar2.f3933a; if (context2 != null && (resources = context2.getResources()) != null) { int f3 = d5.e.f(context2, "com.crashlytics.RequireBuildId", "bool"); if (f3 > 0) { parseBoolean = resources.getBoolean(f3); } else { int f9 = d5.e.f(context2, "com.crashlytics.RequireBuildId", "string"); if (f9 > 0) { parseBoolean = Boolean.parseBoolean(context2.getString(f9)); } } z8 = parseBoolean; aVar = aVar2; String str8 = aVar.f3829b; if (z8) { if (Log.isLoggable("FirebaseCrashlytics", 2)) { Log.v("FirebaseCrashlytics", "Configured not to require a build ID.", null); } } else if (TextUtils.isEmpty(str8)) { Log.e("FirebaseCrashlytics", "."); Log.e("FirebaseCrashlytics", ". | | "); Log.e("FirebaseCrashlytics", ". | |"); Log.e("FirebaseCrashlytics", ". | |"); Log.e("FirebaseCrashlytics", ". \\ | | /"); Log.e("FirebaseCrashlytics", ". \\ /"); Log.e("FirebaseCrashlytics", ". \\ /"); Log.e("FirebaseCrashlytics", ". \\/"); Log.e("FirebaseCrashlytics", "."); Log.e("FirebaseCrashlytics", "The Crashlytics build ID is missing. This occurs when Crashlytics tooling is absent from your app's build configuration. Please review Crashlytics onboarding instructions and ensure you have a valid Crashlytics account."); Log.e("FirebaseCrashlytics", "."); Log.e("FirebaseCrashlytics", ". /\\"); Log.e("FirebaseCrashlytics", ". / \\"); Log.e("FirebaseCrashlytics", ". / \\"); Log.e("FirebaseCrashlytics", ". / | | \\"); Log.e("FirebaseCrashlytics", ". | |"); Log.e("FirebaseCrashlytics", ". | |"); Log.e("FirebaseCrashlytics", ". | |"); Log.e("FirebaseCrashlytics", "."); z9 = false; if (z9) { new d5.d(uVar2.f3940h); String str9 = d5.d.f3846b; try { i5.d dVar5 = uVar2.f3941i; uVar2.f3938f = new androidx.appcompat.widget.l("crash_marker", dVar5); uVar2.f3937e = new androidx.appcompat.widget.l("initialization_marker", dVar5); e5.g gVar = new e5.g(str9, dVar5, uVar2.f3945m); e5.c cVar5 = new e5.c(uVar2.f3941i); executor = a10; try { uVar2.f3939g = new n(uVar2.f3933a, uVar2.f3945m, uVar2.f3940h, uVar2.f3934b, uVar2.f3941i, uVar2.f3938f, aVar, gVar, cVar5, d5.g0.b(uVar2.f3933a, uVar2.f3940h, uVar2.f3941i, aVar, cVar5, gVar, new l5.a(1024, new o2.b(10)), dVar4, uVar2.f3935c), uVar2.f3946n, uVar2.f3943k); exists = uVar2.f3937e.j().exists(); try { Boolean.TRUE.equals((Boolean) j0.a(uVar2.f3945m.b(new v(uVar2)))); } catch (Exception unused) { } n nVar = uVar2.f3939g; Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler(); nVar.f3907d.b(new p(nVar, str9)); y yVar = new y(new d5.i(nVar), dVar4, defaultUncaughtExceptionHandler, nVar.f3912i); nVar.f3915l = yVar; Thread.setDefaultUncaughtExceptionHandler(yVar); } catch (Exception e12) { e = e12; Log.e("FirebaseCrashlytics", "Crashlytics was not started due to an exception during initialization", e); uVar2.f3939g = null; z10 = false; l.c(executor, new z4.d(z10, uVar2, dVar4)); return new z4.e(uVar2); } } catch (Exception e13) { e = e13; executor = a10; } if (exists) { Context context3 = uVar2.f3933a; if ((context3.checkCallingOrSelfPermission("android.permission.ACCESS_NETWORK_STATE") == 0) && ((activeNetworkInfo = ((ConnectivityManager) context3.getSystemService("connectivity")).getActiveNetworkInfo()) == null || !activeNetworkInfo.isConnectedOrConnecting())) { z11 = false; if (z11) { if (Log.isLoggable("FirebaseCrashlytics", 3)) { Log.d("FirebaseCrashlytics", "Crashlytics did not finish previous background initialization. Initializing synchronously.", null); } Future<?> submit = uVar2.f3944l.submit(new d5.t(uVar2, dVar4)); if (Log.isLoggable("FirebaseCrashlytics", 3)) { Log.d("FirebaseCrashlytics", "Crashlytics detected incomplete initialization on previous app launch. Will initialize synchronously.", null); } try { submit.get(4L, TimeUnit.SECONDS); } catch (InterruptedException e14) { e = e14; str = "Crashlytics was interrupted during initialization."; Log.e("FirebaseCrashlytics", str, e); z10 = false; l.c(executor, new z4.d(z10, uVar2, dVar4)); return new z4.e(uVar2); } catch (ExecutionException e15) { e = e15; str = "Crashlytics encountered a problem during initialization."; Log.e("FirebaseCrashlytics", str, e); z10 = false; l.c(executor, new z4.d(z10, uVar2, dVar4)); return new z4.e(uVar2); } catch (TimeoutException e16) { e = e16; str = "Crashlytics timed out during initialization."; Log.e("FirebaseCrashlytics", str, e); z10 = false; l.c(executor, new z4.d(z10, uVar2, dVar4)); return new z4.e(uVar2); } z10 = false; l.c(executor, new z4.d(z10, uVar2, dVar4)); return new z4.e(uVar2); } } z11 = true; if (z11) { } } if (Log.isLoggable("FirebaseCrashlytics", 3)) { Log.d("FirebaseCrashlytics", "Successfully configured exception handler.", null); } z10 = true; l.c(executor, new z4.d(z10, uVar2, dVar4)); return new z4.e(uVar2); } throw new IllegalStateException("The Crashlytics build ID is missing. This occurs when Crashlytics tooling is absent from your app's build configuration. Please review Crashlytics onboarding instructions and ensure you have a valid Crashlytics account."); } z9 = true; if (z9) { } } aVar = aVar2; z8 = true; String str82 = aVar.f3829b; if (z8) { } z9 = true; if (z9) { } } catch (PackageManager.NameNotFoundException e17) { Log.e("FirebaseCrashlytics", "Error retrieving app package info.", e17); return null; } break; } } @Override public Object g() { return ((v1.c) this.f2524l).n(); } @Override public i h(Object obj) { switch (this.f2523k) { case r6.s.STRING_VALUE_FIELD_NUMBER: o6.a aVar = (o6.a) this.f2524l; i<p6.c> b9 = aVar.f8004d.b(); i<p6.c> b10 = aVar.f8005e.b(); return l.h(b9, b10).h(aVar.f8003c, new v1.n(aVar, b9, b10, 4)); default: a.C0048a c0048a = (a.C0048a) this.f2524l; int[] iArr = com.google.firebase.remoteconfig.internal.a.f3496j; return l.e(c0048a); } } @Override public void i(f6.b bVar) { switch (this.f2523k) { case 6: a5.b bVar2 = (a5.b) this.f2524l; Objects.requireNonNull(bVar2); if (Log.isLoggable("FirebaseCrashlytics", 3)) { Log.d("FirebaseCrashlytics", "Crashlytics native component now available.", null); } bVar2.f113b.set((a5.a) bVar.get()); return; default: u5.c cVar = (u5.c) this.f2524l; synchronized (cVar) { cVar.f9286n = (x4.a) bVar.get(); synchronized (cVar) { cVar.f9288p++; k<u5.d> kVar = cVar.f9287o; if (kVar != null) { kVar.g(cVar.a0()); } } return; } cVar.f9286n.a(cVar.f9285m); return; } } }