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

71 lines
2.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.internal;
import android.content.Context;
import android.os.Build;
import android.os.DropBoxManager;
import android.util.Log;
import java.util.LinkedHashMap;
import java.util.List;
/* loaded from: classes2.dex */
public final class zzgb {
private static DropBoxManager zza;
private static final LinkedHashMap zzb = new zzga(16, 0.75f, true);
private static String zzc;
public static void zza(Context context, boolean z) {
synchronized (zzgb.class) {
if (zza == null) {
zza = (DropBoxManager) context.getApplicationContext().getSystemService("dropbox");
zzc = "com.google.android.libraries.places";
}
}
}
public static void zzb(Throwable th) {
long j;
synchronized (zzgb.class) {
long id = Thread.currentThread().getId();
int hashCode = th.hashCode();
Integer num = (Integer) zzb.get(Long.valueOf(id));
if (num == null || num.intValue() != hashCode) {
DropBoxManager dropBoxManager = zza;
if (dropBoxManager == null || !dropBoxManager.isTagEnabled("system_app_crash")) {
return;
}
DropBoxManager dropBoxManager2 = zza;
StringBuilder sb = new StringBuilder();
Object[] objArr = new Object[3];
objArr[0] = zzc;
List zzc2 = zzik.zzb('.').zzc("3.0.0");
if (zzc2.size() == 3) {
j = 0;
for (int i = 0; i < zzc2.size(); i++) {
try {
j = (j * 100) + Integer.parseInt((String) zzc2.get(i));
} catch (NumberFormatException unused) {
}
}
objArr[1] = Long.valueOf(j);
objArr[2] = "3.0.0";
sb.append(String.format("Package: %s v%d (%s)\n", objArr));
sb.append(String.format("Build: %s\n", Build.FINGERPRINT));
sb.append("\n");
sb.append(Log.getStackTraceString(th));
dropBoxManager2.addText("system_app_crash", sb.toString());
zzb.put(Long.valueOf(id), Integer.valueOf(hashCode));
}
j = -1;
objArr[1] = Long.valueOf(j);
objArr[2] = "3.0.0";
sb.append(String.format("Package: %s v%d (%s)\n", objArr));
sb.append(String.format("Build: %s\n", Build.FINGERPRINT));
sb.append("\n");
sb.append(Log.getStackTraceString(th));
dropBoxManager2.addText("system_app_crash", sb.toString());
zzb.put(Long.valueOf(id), Integer.valueOf(hashCode));
}
}
}
}