56 lines
2.4 KiB
Java
56 lines
2.4 KiB
Java
package c.i.a.f.e;
|
|
|
|
import android.content.Context;
|
|
import android.os.IBinder;
|
|
import android.os.IInterface;
|
|
import android.os.RemoteException;
|
|
import android.util.Log;
|
|
import c.i.a.f.e.k.n0;
|
|
import c.i.a.f.e.k.o0;
|
|
import c.i.a.f.e.k.p0;
|
|
import c.i.a.f.f.b;
|
|
import com.google.android.gms.common.zzj;
|
|
import com.google.android.gms.dynamite.DynamiteModule;
|
|
import java.util.Objects;
|
|
/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */
|
|
public final class s {
|
|
public static volatile o0 a;
|
|
public static final Object b = new Object();
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public static Context f1064c;
|
|
|
|
public static a0 a(String str, t tVar, boolean z2, boolean z3) {
|
|
o0 o0Var;
|
|
try {
|
|
if (a == null) {
|
|
Objects.requireNonNull(f1064c, "null reference");
|
|
synchronized (b) {
|
|
if (a == null) {
|
|
IBinder b2 = DynamiteModule.c(f1064c, DynamiteModule.i, "com.google.android.gms.googlecertificates").b("com.google.android.gms.common.GoogleCertificatesImpl");
|
|
int i = n0.a;
|
|
if (b2 == null) {
|
|
o0Var = null;
|
|
} else {
|
|
IInterface queryLocalInterface = b2.queryLocalInterface("com.google.android.gms.common.internal.IGoogleCertificatesApi");
|
|
o0Var = queryLocalInterface instanceof o0 ? (o0) queryLocalInterface : new p0(b2);
|
|
}
|
|
a = o0Var;
|
|
}
|
|
}
|
|
}
|
|
Objects.requireNonNull(f1064c, "null reference");
|
|
try {
|
|
return a.t0(new zzj(str, tVar, z2, z3), new b(f1064c.getPackageManager())) ? a0.a : new c0(new u(z2, str, tVar), null);
|
|
} catch (RemoteException e) {
|
|
Log.e("GoogleCertificates", "Failed to get Google certificates from remote", e);
|
|
return a0.b("module call", e);
|
|
}
|
|
} catch (DynamiteModule.LoadingException e2) {
|
|
Log.e("GoogleCertificates", "Failed to get Google certificates from remote", e2);
|
|
String valueOf = String.valueOf(e2.getMessage());
|
|
return a0.b(valueOf.length() != 0 ? "module init: ".concat(valueOf) : new String("module init: "), e2);
|
|
}
|
|
}
|
|
}
|