what-the-bank/sources/com/google/android/libraries/places/internal/zzlc.java

95 lines
2.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.internal;
import android.os.Build;
import dalvik.system.VMStack;
/* loaded from: classes2.dex */
public final class zzlc extends zzkx {
private static final boolean zza = zza.zza();
private static final boolean zzb;
private static final zzkw zzc;
static {
boolean z = true;
if (Build.FINGERPRINT != null && !"robolectric".equals(Build.FINGERPRINT)) {
z = false;
}
zzb = z;
zzc = new zzkw() { // from class: com.google.android.libraries.places.internal.zzlc.1
@Override // com.google.android.libraries.places.internal.zzkw
public String zzb(Class cls) {
StackTraceElement zza2;
if (zzlc.zza) {
try {
if (cls.equals(zzlc.zzp())) {
return VMStack.getStackClass2().getName();
}
} catch (Throwable unused) {
}
}
if (!zzlc.zzb || (zza2 = zzlz.zza(cls, 1)) == null) {
return null;
}
return zza2.getClassName();
}
@Override // com.google.android.libraries.places.internal.zzkw
public zzkb zza(Class<?> cls, int i) {
return zzkb.zza;
}
};
}
static Class<?> zzp() {
return VMStack.getStackClass2();
}
static String zzq() {
try {
return VMStack.getStackClass2().getName();
} catch (Throwable unused) {
return null;
}
}
static boolean zzt() {
try {
Class.forName("dalvik.system.VMStack").getMethod("getStackClass2", new Class[0]);
return zza.class.getName().equals(zzq());
} catch (Throwable unused) {
return false;
}
}
@Override // com.google.android.libraries.places.internal.zzkx
protected final zzkg zze(String str) {
return zzlf.zzb(str);
}
@Override // com.google.android.libraries.places.internal.zzkx
protected final zzll zzj() {
return zzlg.zzb();
}
@Override // com.google.android.libraries.places.internal.zzkx
protected final String zzm() {
return "platform: Android";
}
@Override // com.google.android.libraries.places.internal.zzkx
protected final zzkw zzh() {
return zzc;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class zza {
static boolean zza() {
return zzlc.zzt();
}
zza() {
}
}
}