Initial commit
This commit is contained in:
55
sources/com/google/android/gms/common/zzm.java
Normal file
55
sources/com/google/android/gms/common/zzm.java
Normal file
@@ -0,0 +1,55 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user