CONECTA PRO v4.2.8版本的 MD5 值为:ad88cf9e66d8cdaae8c40233e50eb389
以下内容为反编译后的 c.java 源代码,内容仅作参考
package b6;
import android.content.ClipData;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import androidx.core.widget.NestedScrollView;
import c0.q0;
import c7.f0;
import c7.g0;
import c7.h0;
import c7.w;
import c8.m;
import com.google.android.gms.internal.measurement.o0;
import com.google.firebase.crashlytics.CrashlyticsRegistrar;
import d4.n;
import f0.k;
import f6.a0;
import f6.h;
import f6.o;
import f6.r;
import f6.t;
import f6.u;
import f6.x;
import f6.z;
import i5.f5;
import i5.z4;
import j.i0;
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.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CancellationException;
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.concurrent.atomic.AtomicReference;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
import k.b4;
import k4.g;
import k4.i;
import k4.j;
import n3.q;
import o1.l;
import z5.f;
import z5.s;
import z8.b1;
public final class c implements f, m5.d, k, l4.b, i, x6.a, m5.a, b4.e {
public final int f1311r;
public final Object f1312s;
public c(int i10, Object obj) {
this.f1311r = i10;
this.f1312s = obj;
}
@Override
public void a(m5.i iVar) {
int i10 = this.f1311r;
Object obj = this.f1312s;
switch (i10) {
case 0:
f0.b((Intent) obj);
return;
case 1:
int i11 = g0.f1745b;
((h0) obj).f1754b.c(null);
return;
default:
((ScheduledFuture) obj).cancel(false);
return;
}
}
@Override
public Object apply(Object obj) {
InputStream inputStream;
int i10 = this.f1311r;
Object obj2 = this.f1312s;
switch (i10) {
case 2:
c4.d dVar = (c4.d) obj2;
c4.b bVar = (c4.b) obj;
dVar.getClass();
URL url = bVar.f1669a;
String l10 = l.l("CctTransportBackend");
if (Log.isLoggable(l10, 4)) {
Log.i(l10, String.format("Making request to: %s", url));
}
HttpURLConnection httpURLConnection = (HttpURLConnection) bVar.f1669a.openConnection();
httpURLConnection.setConnectTimeout(30000);
httpURLConnection.setReadTimeout(dVar.f1681g);
httpURLConnection.setDoOutput(true);
httpURLConnection.setInstanceFollowRedirects(false);
httpURLConnection.setRequestMethod("POST");
httpURLConnection.setRequestProperty("User-Agent", String.format("datatransport/%s android/", "3.1.9"));
httpURLConnection.setRequestProperty("Content-Encoding", "gzip");
httpURLConnection.setRequestProperty("Content-Type", "application/json");
httpURLConnection.setRequestProperty("Accept-Encoding", "gzip");
String str = bVar.f1671c;
if (str != null) {
httpURLConnection.setRequestProperty("X-Goog-Api-Key", str);
}
try {
OutputStream outputStream = httpURLConnection.getOutputStream();
try {
GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(outputStream);
dVar.f1675a.f(bVar.f1670b, new BufferedWriter(new OutputStreamWriter(gZIPOutputStream)));
gZIPOutputStream.close();
if (outputStream != null) {
outputStream.close();
}
int responseCode = httpURLConnection.getResponseCode();
Integer valueOf = Integer.valueOf(responseCode);
String l11 = l.l("CctTransportBackend");
if (Log.isLoggable(l11, 4)) {
Log.i(l11, String.format("Status Code: %d", valueOf));
}
l.i("CctTransportBackend", "Content-Type: %s", httpURLConnection.getHeaderField("Content-Type"));
l.i("CctTransportBackend", "Content-Encoding: %s", httpURLConnection.getHeaderField("Content-Encoding"));
if (responseCode != 302 && responseCode != 301 && responseCode != 307) {
if (responseCode != 200) {
return new c4.c(responseCode, null, 0L);
}
InputStream inputStream2 = httpURLConnection.getInputStream();
try {
if ("gzip".equals(httpURLConnection.getHeaderField("Content-Encoding"))) {
inputStream = new GZIPInputStream(inputStream2);
} else {
inputStream = inputStream2;
}
c4.c cVar = new c4.c(responseCode, null, n.a(new BufferedReader(new InputStreamReader(inputStream))).f3083a);
if (inputStream != null) {
inputStream.close();
}
if (inputStream2 != null) {
inputStream2.close();
}
return cVar;
} catch (Throwable th) {
if (inputStream2 != null) {
try {
inputStream2.close();
} catch (Throwable th2) {
th.addSuppressed(th2);
}
}
throw th;
}
}
return new c4.c(responseCode, new URL(httpURLConnection.getHeaderField("Location")), 0L);
} catch (Throwable th3) {
if (outputStream != null) {
try {
outputStream.close();
} catch (Throwable th4) {
th3.addSuppressed(th4);
}
}
throw th3;
}
} catch (ConnectException e10) {
e = e10;
l.j("CctTransportBackend", "Couldn't open connection, returning with 500", e);
return new c4.c(500, null, 0L);
} catch (UnknownHostException e11) {
e = e11;
l.j("CctTransportBackend", "Couldn't open connection, returning with 500", e);
return new c4.c(500, null, 0L);
} catch (IOException e12) {
e = e12;
l.j("CctTransportBackend", "Couldn't encode request, returning with 400", e);
return new c4.c(400, null, 0L);
} catch (q6.b e13) {
e = e13;
l.j("CctTransportBackend", "Couldn't encode request, returning with 400", e);
return new c4.c(400, null, 0L);
}
case 9:
Map map = (Map) obj2;
Cursor cursor = (Cursor) obj;
b4.c cVar2 = k4.k.f6906w;
while (cursor.moveToNext()) {
long j10 = cursor.getLong(0);
Set set = (Set) map.get(Long.valueOf(j10));
if (set == null) {
set = new HashSet();
map.put(Long.valueOf(j10), set);
}
set.add(new j(cursor.getString(1), cursor.getString(2)));
}
return null;
default:
((g7.k) obj2).getClass();
String e14 = g7.g0.f4488b.e((g7.f0) obj);
b1.n("SessionEvents.SESSION_EVENT_ENCODER.encode(value)", e14);
Log.d("EventGDTLogger", "Session Event: ".concat(e14));
byte[] bytes = e14.getBytes(da.a.f3218a);
b1.n("this as java.lang.String).getBytes(charset)", bytes);
return bytes;
}
}
@Override
public Object b() {
int i10 = this.f1311r;
Object obj = this.f1312s;
switch (i10) {
case 3:
k4.k kVar = (k4.k) ((k4.d) obj);
return Integer.valueOf(((Integer) kVar.f(new k4.e(kVar, ((m4.b) kVar.f6908s).a() - kVar.f6910u.f6889d))).intValue());
case 4:
k4.k kVar2 = (k4.k) ((j4.j) obj).f6292i;
kVar2.getClass();
kVar2.f(new g(kVar2, 0));
return null;
case 5:
k4.k kVar3 = (k4.k) ((k4.c) obj);
kVar3.getClass();
int i11 = h4.a.f4672e;
w wVar = new w(6);
HashMap hashMap = new HashMap();
SQLiteDatabase a10 = kVar3.a();
a10.beginTransaction();
try {
h4.a aVar = (h4.a) k4.k.U(a10.rawQuery("SELECT log_source, reason, events_dropped_count FROM log_event_dropped", new String[0]), new i4.b(4, kVar3, hashMap, wVar));
a10.setTransactionSuccessful();
return aVar;
} finally {
a10.endTransaction();
}
default:
j4.l lVar = (j4.l) obj;
k4.k kVar4 = (k4.k) lVar.f6303b;
kVar4.getClass();
for (e4.j jVar : (Iterable) kVar4.f(new a6.i(2))) {
((j4.d) lVar.f6304c).a(jVar, 1, false);
}
return null;
}
}
@Override
public void c(x6.c cVar) {
switch (this.f1311r) {
case 10:
c6.b bVar = (c6.b) this.f1312s;
bVar.getClass();
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", "Crashlytics native component now available.", null);
}
bVar.f1687b.set((c6.a) cVar.get());
return;
default:
a.d.t(cVar.get());
throw null;
}
}
@Override
public void d(NestedScrollView nestedScrollView) {
int i10;
NestedScrollView nestedScrollView2;
NestedScrollView nestedScrollView3;
q qVar = (q) this.f1312s;
int i11 = q.f7589p0;
b1.o("this$0", qVar);
int i12 = 0;
SharedPreferences.Editor edit = qVar.L().getSharedPreferences("scroll_position", 0).edit();
y2.g gVar = qVar.f7590j0;
if (gVar != null && (nestedScrollView3 = gVar.f10614u) != null) {
i10 = nestedScrollView3.getScrollX();
} else {
i10 = 0;
}
edit.putInt("scroll_position_x", i10);
y2.g gVar2 = qVar.f7590j0;
if (gVar2 != null && (nestedScrollView2 = gVar2.f10614u) != null) {
i12 = nestedScrollView2.getScrollY();
}
edit.putInt("scroll_position_y", i12);
edit.apply();
}
public boolean e(d dVar, int i10, Bundle bundle) {
c0.f gVar;
View view = (View) this.f1312s;
int i11 = Build.VERSION.SDK_INT;
if (i11 >= 25 && (i10 & 1) != 0) {
try {
((e0.f) dVar.f1314s).a();
Parcelable parcelable = (Parcelable) ((e0.f) dVar.f1314s).f();
if (bundle == null) {
bundle = new Bundle();
} else {
bundle = new Bundle(bundle);
}
bundle.putParcelable("androidx.core.view.extra.INPUT_CONTENT_INFO", parcelable);
} catch (Exception e10) {
Log.w("InputConnectionCompat", "Can't insert content from IME; requestPermission() failed", e10);
return false;
}
}
ClipData clipData = new ClipData(((e0.f) dVar.f1314s).getDescription(), new ClipData.Item(((e0.f) dVar.f1314s).h()));
if (i11 >= 31) {
gVar = new c0.e(clipData, 2);
} else {
gVar = new c0.g(clipData, 2);
}
gVar.c(((e0.f) dVar.f1314s).b());
gVar.b(bundle);
if (q0.f(view, gVar.a()) != null) {
return false;
}
return true;
}
public void f(String str, byte[] bArr) {
boolean z10;
m mVar = (m) this.f1312s;
b1.o("this$0", mVar);
int i10 = h8.c.f5031a;
m8.b bVar = new m8.b();
Iterator it = p8.e.f8275a.iterator();
while (true) {
if (it.hasNext()) {
if (((p8.d) it.next()).f8273b.equals(str)) {
z10 = true;
break;
}
} else {
z10 = false;
break;
}
}
if (z10) {
if (bArr != null) {
bVar.l(bArr, bArr.length);
byte[] bArr2 = new byte[16];
bVar.d(bArr2);
char[] charArray = "0123456789abcdef".toCharArray();
StringBuilder sb2 = new StringBuilder();
for (int i11 = 0; i11 < 16; i11++) {
if (i11 != 0) {
sb2.append(':');
}
int i12 = bArr2[i11] & 255;
sb2.append(charArray[i12 >> 4]);
sb2.append(charArray[i12 & 15]);
}
mVar.f1846b.c("LBL_FINGERPRINT", sb2.toString());
return;
}
throw new IllegalArgumentException("hostkey is null");
}
throw new IllegalArgumentException(i0.p("Unknown key type ", str));
}
@Override
public Object g(b4 b4Var) {
Throwable th;
String format;
String num;
String str;
int i10;
m5.q qVar;
m5.q h10;
boolean z10;
f6.a aVar;
boolean z11;
ExecutorService executorService;
j4.k kVar;
String str2;
boolean z12;
b4 b4Var2;
g6.e eVar;
u.c cVar;
boolean exists;
boolean z13;
boolean z14;
Future<?> submit;
String str3;
Resources resources;
m6.a c10;
long longVersionCode;
int i11 = this.f1311r;
Object obj = this.f1312s;
switch (i11) {
case 0:
int i12 = CrashlyticsRegistrar.f2716a;
((CrashlyticsRegistrar) obj).getClass();
t5.g gVar = (t5.g) b4Var.a(t5.g.class);
x6.b j10 = b4Var.j(c6.a.class);
x6.b j11 = b4Var.j(v5.a.class);
x6.b j12 = b4Var.j(f7.a.class);
gVar.a();
Context context = gVar.f9563a;
String packageName = context.getPackageName();
Log.i("FirebaseCrashlytics", "Initializing Firebase Crashlytics 18.6.2 for " + packageName, null);
k6.b bVar = new k6.b(context);
u uVar = new u(gVar);
x xVar = new x(context, packageName, (y6.e) b4Var.a(y6.e.class), uVar);
c6.b bVar2 = new c6.b(j10);
b bVar3 = new b(j11);
ExecutorService b10 = com.bumptech.glide.d.b("Crashlytics Exception Handler");
f6.k kVar2 = new f6.k(uVar, bVar);
h7.c cVar2 = h7.c.f5010a;
h7.d dVar = h7.d.CRASHLYTICS;
h7.c cVar3 = h7.c.f5010a;
h7.a a10 = h7.c.a(dVar);
if (a10.f5003b != null) {
Log.d("SessionsDependencies", "Subscriber " + dVar + " already registered.");
th = null;
} else {
a10.f5003b = kVar2;
Log.d("SessionsDependencies", "Subscriber " + dVar + " registered.");
((ma.d) a10.f5002a).e(null);
th = null;
}
r rVar = new r(gVar, xVar, bVar2, uVar, new a(bVar3), new a(bVar3), bVar, b10, kVar2, new i4.e(10, j12));
gVar.a();
String str4 = gVar.f9565c.f9583b;
String h11 = h.h(context);
ArrayList arrayList = new ArrayList();
int i13 = h.i(context, "com.google.firebase.crashlytics.build_ids_lib", "array");
int i14 = h.i(context, "com.google.firebase.crashlytics.build_ids_arch", "array");
int i15 = h.i(context, "com.google.firebase.crashlytics.build_ids_build_id", "array");
if (i13 != 0 && i14 != 0 && i15 != 0) {
String[] stringArray = context.getResources().getStringArray(i13);
String[] stringArray2 = context.getResources().getStringArray(i14);
String[] stringArray3 = context.getResources().getStringArray(i15);
if (stringArray.length == stringArray3.length && stringArray2.length == stringArray3.length) {
int i16 = 0;
while (i16 < stringArray3.length) {
arrayList.add(new f6.e(stringArray[i16], stringArray2[i16], stringArray3[i16]));
i16++;
th = null;
}
Throwable th2 = th;
String p10 = i0.p("Mapping file ID is: ", h11);
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", p10, th2);
}
Iterator it = arrayList.iterator();
while (it.hasNext()) {
f6.e eVar2 = (f6.e) it.next();
String format2 = String.format("Build id for %s on %s: %s", eVar2.f4011a, eVar2.f4012b, eVar2.f4013c);
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", format2, null);
}
}
f4.h hVar = new f4.h(context);
try {
String packageName2 = context.getPackageName();
String c11 = xVar.c();
PackageInfo packageInfo = context.getPackageManager().getPackageInfo(packageName2, 0);
if (Build.VERSION.SDK_INT >= 28) {
longVersionCode = packageInfo.getLongVersionCode();
num = Long.toString(longVersionCode);
} else {
num = Integer.toString(packageInfo.versionCode);
}
String str5 = num;
String str6 = packageInfo.versionName;
if (str6 == null) {
str6 = "0.0";
}
String str7 = str6;
f6.a aVar2 = new f6.a(str4, h11, arrayList, c11, packageName2, str5, str7, hVar);
String p11 = i0.p("Installer package name is: ", c11);
if (Log.isLoggable("FirebaseCrashlytics", 2)) {
Log.v("FirebaseCrashlytics", p11, null);
}
ExecutorService b11 = com.bumptech.glide.d.b("com.google.firebase.crashlytics.startup");
j6.a aVar3 = new j6.a(0);
String c12 = xVar.c();
y3.b bVar4 = new y3.b(28);
m6.b bVar5 = new m6.b(bVar4);
m6.b bVar6 = new m6.b(bVar);
Locale locale = Locale.US;
f.c cVar4 = new f.c(String.format(locale, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str4), aVar3);
String str8 = Build.MANUFACTURER;
String str9 = x.f4118h;
String format3 = String.format(locale, "%s/%s", str8.replaceAll(str9, ""), Build.MODEL.replaceAll(str9, ""));
String replaceAll = Build.VERSION.INCREMENTAL.replaceAll(str9, "");
String replaceAll2 = Build.VERSION.RELEASE.replaceAll(str9, "");
String[] strArr = {h.h(context), str4, str7, str5};
ArrayList arrayList2 = new ArrayList();
for (int i17 = 0; i17 < 4; i17++) {
String str10 = strArr[i17];
if (str10 != null) {
arrayList2.add(str10.replace("-", "").toLowerCase(Locale.US));
}
}
Collections.sort(arrayList2);
StringBuilder sb2 = new StringBuilder();
Iterator it2 = arrayList2.iterator();
while (it2.hasNext()) {
sb2.append((String) it2.next());
}
String sb3 = sb2.toString();
if (sb3.length() > 0) {
str = h.m(sb3);
} else {
str = null;
}
String str11 = str;
if (c12 != null) {
i10 = 4;
} else {
i10 = 1;
}
j4.k kVar3 = new j4.k(context, new m6.c(str4, format3, replaceAll, replaceAll2, xVar, str11, str7, str5, a.d.e(i10)), bVar4, bVar5, bVar6, cVar4, uVar);
if (!(!((Context) kVar3.f6293r).getSharedPreferences("com.google.firebase.crashlytics", 0).getString("existing_instance_identifier", "").equals(((m6.c) kVar3.f6294s).f7350f)) && (c10 = kVar3.c(1)) != null) {
((AtomicReference) kVar3.f6300y).set(c10);
((m5.j) ((AtomicReference) kVar3.f6301z).get()).c(c10);
h10 = com.bumptech.glide.f.h(null);
} else {
m6.a c13 = kVar3.c(3);
if (c13 != null) {
((AtomicReference) kVar3.f6300y).set(c13);
((m5.j) ((AtomicReference) kVar3.f6301z).get()).c(c13);
}
u uVar2 = (u) kVar3.f6299x;
m5.q qVar2 = uVar2.f4111f.f7310a;
synchronized (uVar2.f4107b) {
qVar = uVar2.f4108c.f7310a;
}
ExecutorService executorService2 = a0.f4005a;
m5.j jVar = new m5.j();
z zVar = new z(0, jVar);
qVar2.b(b11, zVar);
qVar.b(b11, zVar);
h10 = jVar.f7310a.h(b11, new m6.b(kVar3));
}
h10.b(b11, new y3.b(25));
w wVar = rVar.f4090m;
k6.b bVar7 = rVar.f4086i;
Context context2 = rVar.f4078a;
if (context2 != null && (resources = context2.getResources()) != null) {
int i18 = h.i(context2, "com.crashlytics.RequireBuildId", "bool");
if (i18 > 0) {
z10 = resources.getBoolean(i18);
} else {
int i19 = h.i(context2, "com.crashlytics.RequireBuildId", "string");
if (i19 > 0) {
z10 = Boolean.parseBoolean(context2.getString(i19));
}
}
if (z10) {
if (Log.isLoggable("FirebaseCrashlytics", 2)) {
Log.v("FirebaseCrashlytics", "Configured not to require a build ID.", null);
}
aVar = aVar2;
} else {
aVar = aVar2;
if (TextUtils.isEmpty(aVar.f3998b)) {
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 the Crashlytics Gradle plugin is missing from your app's build configuration. Please review the Firebase Crashlytics onboarding instructions at https://firebase.google.com/docs/crashlytics/get-started?platform=android#add-plugin");
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", ".");
z11 = false;
if (z11) {
new f6.f(rVar.f4085h);
String str12 = f6.f.f4015b;
try {
rVar.f4083f = new f4.h("crash_marker", 24, bVar7);
rVar.f4082e = new f4.h("initialization_marker", 24, bVar7);
b4Var2 = new b4(str12, bVar7, wVar);
eVar = new g6.e(bVar7);
cVar = new u.c(new n6.a[]{new b5.k(10, 2)});
i4.e eVar3 = rVar.f4093p;
eVar3.getClass();
((s) ((x6.b) eVar3.f5229s)).a(new c(11, new z4(b4Var2)));
executorService = b11;
} catch (Exception e10) {
e = e10;
executorService = b11;
}
try {
try {
try {
rVar.f4084g = new o(rVar.f4078a, rVar.f4090m, rVar.f4085h, rVar.f4079b, rVar.f4086i, rVar.f4083f, aVar, b4Var2, eVar, k6.b.j(rVar.f4078a, rVar.f4085h, rVar.f4086i, aVar, eVar, b4Var2, cVar, kVar3, rVar.f4080c, rVar.f4091n), rVar.f4092o, rVar.f4088k, rVar.f4091n);
f4.h hVar2 = rVar.f4082e;
k6.b bVar8 = (k6.b) hVar2.f3994t;
bVar8.getClass();
exists = new File((File) bVar8.f6939c, (String) hVar2.f3993s).exists();
try {
Boolean.TRUE.equals((Boolean) a0.a(wVar.t(new f6.q(rVar, 1))));
} catch (Exception unused) {
}
o oVar = rVar.f4084g;
Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
oVar.getClass();
oVar.f4062e.t(new f5(oVar, 4, str12));
kVar = kVar3;
try {
t tVar = new t(new i4.e(12, oVar), kVar, defaultUncaughtExceptionHandler, oVar.f4067j);
oVar.f4071n = tVar;
Thread.setDefaultUncaughtExceptionHandler(tVar);
} catch (Exception e11) {
e = e11;
str2 = "FirebaseCrashlytics";
Log.e(str2, "Crashlytics was not started due to an exception during initialization", e);
rVar.f4084g = null;
z12 = false;
com.bumptech.glide.f.d(executorService, new r4.n(z12, rVar, kVar, 1));
return new d(0, rVar);
}
} catch (Exception e12) {
e = e12;
str2 = "FirebaseCrashlytics";
kVar = kVar3;
}
} catch (Exception e13) {
e = e13;
kVar = kVar3;
}
} catch (Exception e14) {
e = e14;
kVar = kVar3;
str2 = "FirebaseCrashlytics";
Log.e(str2, "Crashlytics was not started due to an exception during initialization", e);
rVar.f4084g = null;
z12 = false;
com.bumptech.glide.f.d(executorService, new r4.n(z12, rVar, kVar, 1));
return new d(0, rVar);
}
if (exists) {
if (context2.checkCallingOrSelfPermission("android.permission.ACCESS_NETWORK_STATE") == 0) {
z13 = true;
} else {
z13 = false;
}
if (z13) {
NetworkInfo activeNetworkInfo = ((ConnectivityManager) context2.getSystemService("connectivity")).getActiveNetworkInfo();
if (activeNetworkInfo != null) {
if (activeNetworkInfo.isConnectedOrConnecting()) {
}
}
z14 = false;
if (z14) {
str2 = "FirebaseCrashlytics";
try {
if (Log.isLoggable(str2, 3)) {
Log.d(str2, "Crashlytics did not finish previous background initialization. Initializing synchronously.", null);
}
submit = rVar.f4089l.submit(new m5.o(rVar, 2, kVar));
if (Log.isLoggable(str2, 3)) {
Log.d(str2, "Crashlytics detected incomplete initialization on previous app launch. Will initialize synchronously.", null);
}
} catch (Exception e15) {
e = e15;
Log.e(str2, "Crashlytics was not started due to an exception during initialization", e);
rVar.f4084g = null;
z12 = false;
com.bumptech.glide.f.d(executorService, new r4.n(z12, rVar, kVar, 1));
return new d(0, rVar);
}
try {
submit.get(3L, TimeUnit.SECONDS);
} catch (InterruptedException e16) {
e = e16;
str3 = "Crashlytics was interrupted during initialization.";
Log.e(str2, str3, e);
z12 = false;
com.bumptech.glide.f.d(executorService, new r4.n(z12, rVar, kVar, 1));
return new d(0, rVar);
} catch (ExecutionException e17) {
e = e17;
str3 = "Crashlytics encountered a problem during initialization.";
Log.e(str2, str3, e);
z12 = false;
com.bumptech.glide.f.d(executorService, new r4.n(z12, rVar, kVar, 1));
return new d(0, rVar);
} catch (TimeoutException e18) {
e = e18;
str3 = "Crashlytics timed out during initialization.";
Log.e(str2, str3, e);
z12 = false;
com.bumptech.glide.f.d(executorService, new r4.n(z12, rVar, kVar, 1));
return new d(0, rVar);
}
z12 = false;
com.bumptech.glide.f.d(executorService, new r4.n(z12, rVar, kVar, 1));
return new d(0, rVar);
}
}
z14 = true;
if (z14) {
}
}
if (Log.isLoggable("FirebaseCrashlytics", 3)) {
Log.d("FirebaseCrashlytics", "Successfully configured exception handler.", null);
}
z12 = true;
com.bumptech.glide.f.d(executorService, new r4.n(z12, rVar, kVar, 1));
return new d(0, rVar);
}
throw new IllegalStateException("The Crashlytics build ID is missing. This occurs when the Crashlytics Gradle plugin is missing from your app's build configuration. Please review the Firebase Crashlytics onboarding instructions at https://firebase.google.com/docs/crashlytics/get-started?platform=android#add-plugin");
}
}
z11 = true;
if (z11) {
}
}
z10 = true;
if (z10) {
}
z11 = true;
if (z11) {
}
} catch (PackageManager.NameNotFoundException e19) {
Log.e("FirebaseCrashlytics", "Error retrieving app package info.", e19);
return null;
}
} else {
format = String.format("Lengths did not match: %d %d %d", Integer.valueOf(stringArray.length), Integer.valueOf(stringArray2.length), Integer.valueOf(stringArray3.length));
break;
}
} else {
format = String.format("Could not find resources: %d %d %d", Integer.valueOf(i13), Integer.valueOf(i14), Integer.valueOf(i15));
break;
}
break;
default:
return new v6.c((Context) b4Var.a(Context.class), ((t5.g) b4Var.a(t5.g.class)).d(), b4Var.p(v6.d.class), b4Var.b(e7.b.class), (Executor) b4Var.d((z5.u) obj));
}
}
@Override
public Object i(m5.i iVar) {
Object obj;
boolean z10;
switch (this.f1311r) {
case 12:
((k6.b) this.f1312s).getClass();
if (iVar.g()) {
f6.b bVar = (f6.b) iVar.e();
o0 o0Var = o0.f2470t;
o0Var.D("Crashlytics report successfully enqueued to DataTransport: " + bVar.f4007b);
File file = bVar.f4008c;
if (file.delete()) {
o0Var.D("Deleted report file: " + file.getPath());
} else {
o0Var.X("Crashlytics could not delete report file: " + file.getPath(), null);
}
z10 = true;
} else {
Log.w("FirebaseCrashlytics", "Crashlytics report could not be enqueued to DataTransport", iVar.d());
z10 = false;
}
return Boolean.valueOf(z10);
case 13:
ExecutorService executorService = a0.f4005a;
((CountDownLatch) this.f1312s).countDown();
return null;
default:
((k6.b) this.f1312s).getClass();
m5.q qVar = (m5.q) iVar;
synchronized (qVar.f7332a) {
p1.b.l("Task is not yet complete", qVar.f7334c);
if (!qVar.f7335d) {
if (!IOException.class.isInstance(qVar.f7337f)) {
Exception exc = qVar.f7337f;
if (exc == null) {
obj = qVar.f7336e;
} else {
throw new m5.g(exc);
}
} else {
throw ((Throwable) IOException.class.cast(qVar.f7337f));
}
} else {
throw new CancellationException("Task is already canceled.");
}
}
Bundle bundle = (Bundle) obj;
if (bundle != null) {
String string = bundle.getString("registration_id");
if (string != null || (string = bundle.getString("unregistered")) != null) {
return string;
}
String string2 = bundle.getString("error");
if (!"RST".equals(string2)) {
if (string2 != null) {
throw new IOException(string2);
}
Log.w("FirebaseMessaging", "Unexpected response: " + bundle, new Throwable());
throw new IOException("SERVICE_NOT_AVAILABLE");
}
throw new IOException("INSTANCE_ID_RESET");
}
throw new IOException("SERVICE_NOT_AVAILABLE");
}
}
}