what-the-bank/sources/com/google/android/gms/internal/measurement/zzhj.java

102 lines
5.7 KiB
Java

package com.google.android.gms.internal.measurement;
/* loaded from: classes.dex */
public final class zzhj {
static volatile zzhz<Boolean> zza = zzhz.zzc();
private static final Object zzb = new Object();
/* JADX WARN: Can't wrap try/catch for region: R(11:18|(1:20)(8:33|(1:35)(1:41)|36|(2:38|(1:40))|27|28|29|30)|21|22|23|24|(1:26)|27|28|29|30) */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static boolean zza(android.content.Context r4, android.net.Uri r5) {
/*
java.lang.String r5 = r5.getAuthority()
java.lang.String r0 = "com.google.android.gms.phenotype"
boolean r0 = r0.equals(r5)
r1 = 0
if (r0 != 0) goto L24
java.lang.String r4 = java.lang.String.valueOf(r5)
r4.length()
java.lang.String r4 = "PhenotypeClientHelper"
java.lang.String r5 = java.lang.String.valueOf(r5)
java.lang.String r0 = " is an unsupported authority. Only com.google.android.gms.phenotype authority is supported."
java.lang.String r5 = r5.concat(r0)
android.util.Log.e(r4, r5)
return r1
L24:
com.google.android.gms.internal.measurement.zzhz<java.lang.Boolean> r5 = com.google.android.gms.internal.measurement.zzhj.zza
boolean r5 = r5.zzb()
if (r5 == 0) goto L39
com.google.android.gms.internal.measurement.zzhz<java.lang.Boolean> r4 = com.google.android.gms.internal.measurement.zzhj.zza
java.lang.Object r4 = r4.zza()
java.lang.Boolean r4 = (java.lang.Boolean) r4
boolean r4 = r4.booleanValue()
return r4
L39:
java.lang.Object r5 = com.google.android.gms.internal.measurement.zzhj.zzb
monitor-enter(r5)
com.google.android.gms.internal.measurement.zzhz<java.lang.Boolean> r0 = com.google.android.gms.internal.measurement.zzhj.zza // Catch: java.lang.Throwable -> Lb3
boolean r0 = r0.zzb() // Catch: java.lang.Throwable -> Lb3
if (r0 == 0) goto L52
com.google.android.gms.internal.measurement.zzhz<java.lang.Boolean> r4 = com.google.android.gms.internal.measurement.zzhj.zza // Catch: java.lang.Throwable -> Lb3
java.lang.Object r4 = r4.zza() // Catch: java.lang.Throwable -> Lb3
java.lang.Boolean r4 = (java.lang.Boolean) r4 // Catch: java.lang.Throwable -> Lb3
boolean r4 = r4.booleanValue() // Catch: java.lang.Throwable -> Lb3
monitor-exit(r5) // Catch: java.lang.Throwable -> Lb3
return r4
L52:
java.lang.String r0 = "com.google.android.gms"
java.lang.String r2 = r4.getPackageName() // Catch: java.lang.Throwable -> Lb3
boolean r0 = r0.equals(r2) // Catch: java.lang.Throwable -> Lb3
if (r0 == 0) goto L5f
goto L8a
L5f:
android.content.pm.PackageManager r0 = r4.getPackageManager() // Catch: java.lang.Throwable -> Lb3
int r2 = android.os.Build.VERSION.SDK_INT // Catch: java.lang.Throwable -> Lb3
r3 = 29
if (r2 >= r3) goto L6b
r2 = r1
goto L6d
L6b:
r2 = 268435456(0x10000000, float:2.524355E-29)
L6d:
java.lang.String r3 = "com.google.android.gms.phenotype"
android.content.pm.ProviderInfo r0 = r0.resolveContentProvider(r3, r2) // Catch: java.lang.Throwable -> Lb3
if (r0 == 0) goto L9b
java.lang.Class<android.content.pm.ProviderInfo> r2 = android.content.pm.ProviderInfo.class
java.lang.String r3 = "packageName"
java.lang.reflect.Field r2 = r2.getField(r3) // Catch: java.lang.Throwable -> Lb3
java.lang.Object r0 = r2.get(r0) // Catch: java.lang.Throwable -> Lb3
java.lang.String r2 = "com.google.android.gms"
boolean r0 = r2.equals(r0) // Catch: java.lang.Throwable -> Lb3
if (r0 != 0) goto L8a
goto L9b
L8a:
android.content.pm.PackageManager r4 = r4.getPackageManager() // Catch: java.lang.Throwable -> Lb3
java.lang.String r0 = "com.google.android.gms"
android.content.pm.ApplicationInfo r4 = r4.getApplicationInfo(r0, r1) // Catch: android.content.pm.PackageManager.NameNotFoundException -> L9b java.lang.Throwable -> Lb3
int r4 = r4.flags // Catch: java.lang.Throwable -> Lb3
r4 = r4 & 129(0x81, float:1.81E-43)
if (r4 == 0) goto L9b
r1 = 1
L9b:
java.lang.Boolean r4 = java.lang.Boolean.valueOf(r1) // Catch: java.lang.Throwable -> Lb3
com.google.android.gms.internal.measurement.zzhz r4 = com.google.android.gms.internal.measurement.zzhz.zzd(r4) // Catch: java.lang.Throwable -> Lb3
com.google.android.gms.internal.measurement.zzhj.zza = r4 // Catch: java.lang.Throwable -> Lb3
monitor-exit(r5) // Catch: java.lang.Throwable -> Lb3
com.google.android.gms.internal.measurement.zzhz<java.lang.Boolean> r4 = com.google.android.gms.internal.measurement.zzhj.zza
java.lang.Object r4 = r4.zza()
java.lang.Boolean r4 = (java.lang.Boolean) r4
boolean r4 = r4.booleanValue()
return r4
Lb3:
r4 = move-exception
monitor-exit(r5) // Catch: java.lang.Throwable -> Lb3
throw r4
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.measurement.zzhj.zza(android.content.Context, android.net.Uri):boolean");
}
}