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

71 lines
3.0 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 */
public final class b0 {
public static final z a = new v(x.i("0‚\u0004C0‚\u0003+ \u0003\u0002\u0001\u0002\u0002\t\u0000Âà‡FdJ00"));
/* renamed from: b reason: collision with root package name */
2022-01-31 08:58:36 +00:00
public static final z f1342b = new w(x.i("0‚\u0004¨0‚\u0003 \u0003\u0002\u0001\u0002\u0002\t\u0000Յ¸l}ÓNõ0"));
2022-01-17 16:29:36 +00:00
public static volatile e0 c;
public static final Object d = new Object();
public static Context e;
static {
new t(x.i("0‚\u0005È0‚\u0003° \u0003\u0002\u0001\u0002\u0002\u0014\u0010Še\bsù/Ž"));
new u(x.i("0‚\u0006\u00040‚\u0003ì \u0003\u0002\u0001\u0002\u0002\u0014\u0003£²­×árÊkì"));
}
public static void a() throws DynamiteModule.LoadingException {
e0 e0Var;
if (c == null) {
Objects.requireNonNull(e, "null reference");
synchronized (d) {
try {
if (c == null) {
2022-02-10 03:01:51 +00:00
IBinder b2 = DynamiteModule.c(e, DynamiteModule.f2980b, "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);
}
}
}