56 lines
1.4 KiB
Java
56 lines
1.4 KiB
Java
package com.google.android.gms.common;
|
|
|
|
import android.util.Log;
|
|
import com.google.android.gms.common.util.AndroidUtilsLight;
|
|
import com.google.android.gms.common.util.Hex;
|
|
import java.util.concurrent.Callable;
|
|
|
|
/* loaded from: classes.dex */
|
|
class zzm {
|
|
private static final zzm d = new zzm(true, null, null);
|
|
final boolean a;
|
|
private final String b;
|
|
private final Throwable c;
|
|
|
|
zzm(boolean z, String str, Throwable th) {
|
|
this.a = z;
|
|
this.b = str;
|
|
this.c = th;
|
|
}
|
|
|
|
static zzm a(Callable<String> callable) {
|
|
return new zzo(callable);
|
|
}
|
|
|
|
static zzm c() {
|
|
return d;
|
|
}
|
|
|
|
final void b() {
|
|
if (this.a || !Log.isLoggable("GoogleCertificatesRslt", 3)) {
|
|
return;
|
|
}
|
|
if (this.c != null) {
|
|
Log.d("GoogleCertificatesRslt", a(), this.c);
|
|
} else {
|
|
Log.d("GoogleCertificatesRslt", a());
|
|
}
|
|
}
|
|
|
|
static zzm a(String str) {
|
|
return new zzm(false, str, null);
|
|
}
|
|
|
|
static zzm a(String str, Throwable th) {
|
|
return new zzm(false, str, th);
|
|
}
|
|
|
|
String a() {
|
|
return this.b;
|
|
}
|
|
|
|
static String a(String str, zze zzeVar, boolean z, boolean z2) {
|
|
return String.format("%s: pkg=%s, sha1=%s, atk=%s, ver=%s", z2 ? "debug cert rejected" : "not whitelisted", str, Hex.a(AndroidUtilsLight.a("SHA-1").digest(zzeVar.i())), Boolean.valueOf(z), "12451009.false");
|
|
}
|
|
}
|