discord-jadx/app/src/main/java/b/i/a/f/e/b0.java

72 lines
3.1 KiB
Java
Raw Normal View History

2021-12-17 22:01:24 +00:00
package b.i.a.f.e;
2022-01-17 16:29:36 +00:00
import android.content.Context;
import android.os.IBinder;
2022-01-17 16:29:36 +00:00
import android.os.IInterface;
import android.os.RemoteException;
import android.util.Log;
import b.i.a.f.e.k.c0;
import b.i.a.f.e.k.d0;
import b.i.a.f.e.k.e0;
import b.i.a.f.f.b;
import com.google.android.gms.common.zzs;
import com.google.android.gms.dynamite.DynamiteModule;
import java.util.Objects;
/* compiled from: com.google.android.gms:play-services-basement@@17.6.0 */
2022-03-01 22:12:19 +00:00
/* loaded from: classes3.dex */
2022-01-17 16:29:36 +00:00
public final class b0 {
2022-03-01 22:12:19 +00:00
public static volatile e0 c;
public static Context e;
public static final z a = new v(x.i("0\u0082\u0004C0\u0082\u0003+ \u0003\u0002\u0001\u0002\u0002\t\u0000Âà\u0087FdJ0\u008d0"));
2022-01-17 16:29:36 +00:00
/* renamed from: b reason: collision with root package name */
2022-03-01 22:12:19 +00:00
public static final z f1342b = new w(x.i("0\u0082\u0004¨0\u0082\u0003\u0090 \u0003\u0002\u0001\u0002\u0002\t\u0000Õ\u0085¸l}ÓNõ0"));
2022-01-17 16:29:36 +00:00
public static final Object d = new Object();
static {
2022-03-01 22:12:19 +00:00
new t(x.i("0\u0082\u0005È0\u0082\u0003° \u0003\u0002\u0001\u0002\u0002\u0014\u0010\u008ae\bsù/\u008eQí"));
new u(x.i("0\u0082\u0006\u00040\u0082\u0003ì \u0003\u0002\u0001\u0002\u0002\u0014\u0003£²\u00ad×árÊkì"));
2022-01-17 16:29:36 +00:00
}
public static void a() throws DynamiteModule.LoadingException {
e0 e0Var;
if (c == null) {
Objects.requireNonNull(e, "null reference");
synchronized (d) {
try {
if (c == null) {
2022-03-11 01:20:22 +00:00
IBinder b2 = DynamiteModule.c(e, DynamiteModule.f2979b, "com.google.android.gms.googlecertificates").b("com.google.android.gms.common.GoogleCertificatesImpl");
2022-01-17 16:29:36 +00:00
int i = d0.a;
if (b2 == null) {
e0Var = null;
} else {
IInterface queryLocalInterface = b2.queryLocalInterface("com.google.android.gms.common.internal.IGoogleCertificatesApi");
e0Var = queryLocalInterface instanceof e0 ? (e0) queryLocalInterface : new c0(b2);
}
c = e0Var;
}
} catch (Throwable th) {
throw th;
}
}
}
}
2022-01-17 16:29:36 +00:00
public static g0 b(String str, x xVar, boolean z2, boolean z3) {
try {
a();
Objects.requireNonNull(e, "null reference");
try {
return c.V(new zzs(str, xVar, z2, z3), new b(e.getPackageManager())) ? g0.a : new f0(new s(z2, str, xVar));
} catch (RemoteException e2) {
Log.e("GoogleCertificates", "Failed to get Google certificates from remote", e2);
return g0.c("module call", e2);
}
} catch (DynamiteModule.LoadingException e3) {
Log.e("GoogleCertificates", "Failed to get Google certificates from remote", e3);
String valueOf = String.valueOf(e3.getMessage());
return g0.c(valueOf.length() != 0 ? "module init: ".concat(valueOf) : new String("module init: "), e3);
}
}
}