jimu-decompiled/sources/com/google/android/gms/measurement/internal/zzam.java
2025-05-13 19:24:51 +02:00

143 lines
5.1 KiB
Java

package com.google.android.gms.measurement.internal;
import android.content.Context;
/* loaded from: classes.dex */
public final class zzam extends zzf {
private String c;
private String d;
private int e;
private String f;
private long g;
private long h;
private int i;
private String j;
private String k;
zzam(zzbw zzbwVar) {
super(zzbwVar);
}
private final String G() {
try {
Class<?> loadClass = b().getClassLoader().loadClass("com.google.firebase.analytics.FirebaseAnalytics");
if (loadClass == null) {
return null;
}
try {
Object invoke = loadClass.getDeclaredMethod("getInstance", Context.class).invoke(null, b());
if (invoke == null) {
return null;
}
try {
return (String) loadClass.getDeclaredMethod("getFirebaseInstanceId", new Class[0]).invoke(invoke, new Object[0]);
} catch (Exception unused) {
e().y().a("Failed to retrieve Firebase Instance Id");
return null;
}
} catch (Exception unused2) {
e().x().a("Failed to obtain Firebase Analytics instance");
return null;
}
} catch (ClassNotFoundException unused3) {
}
}
final String B() {
w();
return this.j;
}
final String C() {
w();
return this.c;
}
final String D() {
w();
return this.k;
}
final int E() {
w();
return this.e;
}
final int F() {
w();
return this.i;
}
final zzk a(String str) {
f();
g();
String C = C();
String B = B();
w();
String str2 = this.d;
long E = E();
w();
String str3 = this.f;
long o = m().o();
w();
f();
if (this.g == 0) {
this.g = this.a.s().a(b(), b().getPackageName());
}
long j = this.g;
boolean f = this.a.f();
boolean z = !l().u;
f();
g();
String G = (!m().h(this.c) || this.a.f()) ? G() : null;
w();
long j2 = this.h;
long F = this.a.F();
int F2 = F();
zzq m = m();
m.g();
Boolean b = m.b("google_analytics_adid_collection_enabled");
boolean booleanValue = Boolean.valueOf(b == null || b.booleanValue()).booleanValue();
zzq m2 = m();
m2.g();
Boolean b2 = m2.b("google_analytics_ssaid_collection_enabled");
return new zzk(C, B, str2, E, str3, o, j, str, f, z, G, j2, F, F2, booleanValue, Boolean.valueOf(b2 == null || b2.booleanValue()).booleanValue(), l().z(), D());
}
@Override // com.google.android.gms.measurement.internal.zzf
protected final boolean y() {
return true;
}
/* JADX WARN: Can't wrap try/catch for region: R(21:0|1|(1:3)(6:64|65|(1:67)(2:83|(1:85))|68|69|(5:71|(1:73)(1:81)|74|75|76))|4|(1:63)(1:8)|9|(1:62)(1:13)|14|(1:(1:17)(1:18))|(2:20|(2:22|(1:24))(1:(1:(11:35|36|(1:40)|41|42|(1:44)(1:58)|45|(1:47)|(1:49)|51|(2:53|54)(2:56|57))(1:34))(2:28|(1:30))))|61|36|(2:38|40)|41|42|(0)(0)|45|(0)|(0)|51|(0)(0)) */
/* JADX WARN: Code restructure failed: missing block: B:59:0x01c4, code lost:
r1 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:60:0x01c5, code lost:
e().t().a("getGoogleAppId or isMeasurementEnabled failed with exception. appId", com.google.android.gms.measurement.internal.zzas.a(r0), r1);
*/
/* JADX WARN: Removed duplicated region for block: B:16:0x00cc */
/* JADX WARN: Removed duplicated region for block: B:20:0x00f7 */
/* JADX WARN: Removed duplicated region for block: B:38:0x0177 */
/* JADX WARN: Removed duplicated region for block: B:44:0x0195 */
/* JADX WARN: Removed duplicated region for block: B:47:0x019f A[Catch: IllegalStateException -> 0x01c4, TryCatch #3 {IllegalStateException -> 0x01c4, blocks: (B:42:0x018b, B:45:0x0197, B:47:0x019f, B:49:0x01b2), top: B:41:0x018b }] */
/* JADX WARN: Removed duplicated region for block: B:49:0x01b2 A[Catch: IllegalStateException -> 0x01c4, TRY_LEAVE, TryCatch #3 {IllegalStateException -> 0x01c4, blocks: (B:42:0x018b, B:45:0x0197, B:47:0x019f, B:49:0x01b2), top: B:41:0x018b }] */
/* JADX WARN: Removed duplicated region for block: B:53:0x01dc */
/* JADX WARN: Removed duplicated region for block: B:56:0x01e7 */
/* JADX WARN: Removed duplicated region for block: B:58:0x0196 */
@Override // com.google.android.gms.measurement.internal.zzf
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct code enable 'Show inconsistent code' option in preferences
*/
protected final void z() {
/*
Method dump skipped, instructions count: 490
To view this dump change 'Code comments level' option to 'DEBUG'
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzam.z():void");
}
}