Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
100
apk_decompiled/sources/m3/a.java
Normal file
100
apk_decompiled/sources/m3/a.java
Normal file
@@ -0,0 +1,100 @@
|
||||
package m3;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.net.http.X509TrustManagerExtensions;
|
||||
import android.security.NetworkSecurityPolicy;
|
||||
import f0.C0338b;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import javax.net.ssl.SSLSocket;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class a extends n {
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public static final boolean f7806d = C0338b.s();
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final ArrayList f7807c;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public a() {
|
||||
List listOfNotNull = CollectionsKt.listOfNotNull((Object[]) new n3.m[]{C0338b.s() ? new Object() : null, new n3.l(n3.f.f7872f), new n3.l(n3.j.f7879a), new n3.l(n3.h.f7878a)});
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : listOfNotNull) {
|
||||
if (((n3.m) obj).c()) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
this.f7807c = arrayList;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final AbstractC0105a b(X509TrustManager trustManager) {
|
||||
X509TrustManagerExtensions x509TrustManagerExtensions;
|
||||
Intrinsics.checkNotNullParameter(trustManager, "trustManager");
|
||||
Intrinsics.checkNotNullParameter(trustManager, "trustManager");
|
||||
try {
|
||||
x509TrustManagerExtensions = new X509TrustManagerExtensions(trustManager);
|
||||
} catch (IllegalArgumentException unused) {
|
||||
x509TrustManagerExtensions = null;
|
||||
}
|
||||
n3.b bVar = x509TrustManagerExtensions != null ? new n3.b(trustManager, x509TrustManagerExtensions) : null;
|
||||
return bVar != null ? bVar : super.b(trustManager);
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final void d(SSLSocket sslSocket, String str, List protocols) {
|
||||
Object obj;
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
Iterator it = this.f7807c.iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
obj = null;
|
||||
break;
|
||||
} else {
|
||||
obj = it.next();
|
||||
if (((n3.m) obj).a(sslSocket)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
n3.m mVar = (n3.m) obj;
|
||||
if (mVar != null) {
|
||||
mVar.d(sslSocket, str, protocols);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final String f(SSLSocket sslSocket) {
|
||||
Object obj;
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
Iterator it = this.f7807c.iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
obj = null;
|
||||
break;
|
||||
}
|
||||
obj = it.next();
|
||||
if (((n3.m) obj).a(sslSocket)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
n3.m mVar = (n3.m) obj;
|
||||
if (mVar != null) {
|
||||
return mVar.b(sslSocket);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final boolean h(String hostname) {
|
||||
Intrinsics.checkNotNullParameter(hostname, "hostname");
|
||||
return NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted(hostname);
|
||||
}
|
||||
}
|
||||
58
apk_decompiled/sources/m3/b.java
Normal file
58
apk_decompiled/sources/m3/b.java
Normal file
@@ -0,0 +1,58 @@
|
||||
package m3;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.security.cert.TrustAnchor;
|
||||
import java.security.cert.X509Certificate;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class b implements q3.d {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final X509TrustManager f7808a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final Method f7809b;
|
||||
|
||||
public b(X509TrustManager trustManager, Method findByIssuerAndSignatureMethod) {
|
||||
Intrinsics.checkNotNullParameter(trustManager, "trustManager");
|
||||
Intrinsics.checkNotNullParameter(findByIssuerAndSignatureMethod, "findByIssuerAndSignatureMethod");
|
||||
this.f7808a = trustManager;
|
||||
this.f7809b = findByIssuerAndSignatureMethod;
|
||||
}
|
||||
|
||||
@Override // q3.d
|
||||
public final X509Certificate a(X509Certificate cert) {
|
||||
Intrinsics.checkNotNullParameter(cert, "cert");
|
||||
try {
|
||||
Object invoke = this.f7809b.invoke(this.f7808a, cert);
|
||||
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type java.security.cert.TrustAnchor");
|
||||
return ((TrustAnchor) invoke).getTrustedCert();
|
||||
} catch (IllegalAccessException e4) {
|
||||
throw new AssertionError("unable to get issues and signature", e4);
|
||||
} catch (InvocationTargetException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof b)) {
|
||||
return false;
|
||||
}
|
||||
b bVar = (b) obj;
|
||||
return Intrinsics.areEqual(this.f7808a, bVar.f7808a) && Intrinsics.areEqual(this.f7809b, bVar.f7809b);
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return this.f7809b.hashCode() + (this.f7808a.hashCode() * 31);
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
return "CustomTrustRootIndex(trustManager=" + this.f7808a + ", findByIssuerAndSignatureMethod=" + this.f7809b + ')';
|
||||
}
|
||||
}
|
||||
206
apk_decompiled/sources/m3/c.java
Normal file
206
apk_decompiled/sources/m3/c.java
Normal file
@@ -0,0 +1,206 @@
|
||||
package m3;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.net.http.X509TrustManagerExtensions;
|
||||
import android.os.Build;
|
||||
import android.security.NetworkSecurityPolicy;
|
||||
import com.google.firebase.remoteconfig.RemoteConfigConstants;
|
||||
import f0.C0338b;
|
||||
import java.lang.reflect.Method;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.Socket;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import javax.net.ssl.SSLSocket;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class c extends n {
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public static final boolean f7810e;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final ArrayList f7811c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final R0.h f7812d;
|
||||
|
||||
static {
|
||||
boolean z3 = false;
|
||||
if (C0338b.s() && Build.VERSION.SDK_INT < 30) {
|
||||
z3 = true;
|
||||
}
|
||||
f7810e = z3;
|
||||
}
|
||||
|
||||
public c() {
|
||||
n3.f fVar;
|
||||
Method method;
|
||||
Method method2;
|
||||
int i = n3.n.f7882g;
|
||||
Intrinsics.checkNotNullParameter("com.android.org.conscrypt", RemoteConfigConstants.RequestFieldKey.PACKAGE_NAME);
|
||||
Method method3 = null;
|
||||
try {
|
||||
Class<?> sslSocketClass = Class.forName("com.android.org.conscrypt.OpenSSLSocketImpl");
|
||||
Intrinsics.checkNotNull(sslSocketClass, "null cannot be cast to non-null type java.lang.Class<in javax.net.ssl.SSLSocket>");
|
||||
Class<?> sslSocketFactoryClass = Class.forName("com.android.org.conscrypt.OpenSSLSocketFactoryImpl");
|
||||
Intrinsics.checkNotNull(sslSocketFactoryClass, "null cannot be cast to non-null type java.lang.Class<in javax.net.ssl.SSLSocketFactory>");
|
||||
Class<?> paramClass = Class.forName("com.android.org.conscrypt.SSLParametersImpl");
|
||||
Intrinsics.checkNotNullExpressionValue(paramClass, "paramsClass");
|
||||
Intrinsics.checkNotNullParameter(sslSocketClass, "sslSocketClass");
|
||||
Intrinsics.checkNotNullParameter(sslSocketFactoryClass, "sslSocketFactoryClass");
|
||||
Intrinsics.checkNotNullParameter(paramClass, "paramClass");
|
||||
fVar = new n3.f(sslSocketClass);
|
||||
} catch (Exception e4) {
|
||||
n.f7829a.getClass();
|
||||
n.i(5, "unable to load android socket classes", e4);
|
||||
fVar = null;
|
||||
}
|
||||
List listOfNotNull = CollectionsKt.listOfNotNull((Object[]) new n3.m[]{fVar, new n3.l(n3.f.f7872f), new n3.l(n3.j.f7879a), new n3.l(n3.h.f7878a)});
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : listOfNotNull) {
|
||||
if (((n3.m) obj).c()) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
this.f7811c = arrayList;
|
||||
try {
|
||||
Class<?> cls = Class.forName("dalvik.system.CloseGuard");
|
||||
Method method4 = cls.getMethod("get", new Class[0]);
|
||||
method2 = cls.getMethod("open", String.class);
|
||||
method = cls.getMethod("warnIfOpen", new Class[0]);
|
||||
method3 = method4;
|
||||
} catch (Exception unused) {
|
||||
method = null;
|
||||
method2 = null;
|
||||
}
|
||||
this.f7812d = new R0.h(method3, method2, method);
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final AbstractC0105a b(X509TrustManager trustManager) {
|
||||
X509TrustManagerExtensions x509TrustManagerExtensions;
|
||||
Intrinsics.checkNotNullParameter(trustManager, "trustManager");
|
||||
Intrinsics.checkNotNullParameter(trustManager, "trustManager");
|
||||
try {
|
||||
x509TrustManagerExtensions = new X509TrustManagerExtensions(trustManager);
|
||||
} catch (IllegalArgumentException unused) {
|
||||
x509TrustManagerExtensions = null;
|
||||
}
|
||||
n3.b bVar = x509TrustManagerExtensions != null ? new n3.b(trustManager, x509TrustManagerExtensions) : null;
|
||||
return bVar != null ? bVar : super.b(trustManager);
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final q3.d c(X509TrustManager trustManager) {
|
||||
Intrinsics.checkNotNullParameter(trustManager, "trustManager");
|
||||
try {
|
||||
Method method = trustManager.getClass().getDeclaredMethod("findTrustAnchorByIssuerAndSignature", X509Certificate.class);
|
||||
method.setAccessible(true);
|
||||
Intrinsics.checkNotNullExpressionValue(method, "method");
|
||||
return new b(trustManager, method);
|
||||
} catch (NoSuchMethodException unused) {
|
||||
return super.c(trustManager);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final void d(SSLSocket sslSocket, String str, List protocols) {
|
||||
Object obj;
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
Iterator it = this.f7811c.iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
obj = null;
|
||||
break;
|
||||
} else {
|
||||
obj = it.next();
|
||||
if (((n3.m) obj).a(sslSocket)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
n3.m mVar = (n3.m) obj;
|
||||
if (mVar != null) {
|
||||
mVar.d(sslSocket, str, protocols);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final void e(Socket socket, InetSocketAddress address, int i) {
|
||||
Intrinsics.checkNotNullParameter(socket, "socket");
|
||||
Intrinsics.checkNotNullParameter(address, "address");
|
||||
socket.connect(address, i);
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final String f(SSLSocket sslSocket) {
|
||||
Object obj;
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
Iterator it = this.f7811c.iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
obj = null;
|
||||
break;
|
||||
}
|
||||
obj = it.next();
|
||||
if (((n3.m) obj).a(sslSocket)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
n3.m mVar = (n3.m) obj;
|
||||
if (mVar != null) {
|
||||
return mVar.b(sslSocket);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final Object g() {
|
||||
Intrinsics.checkNotNullParameter("response.body().close()", "closer");
|
||||
R0.h hVar = this.f7812d;
|
||||
hVar.getClass();
|
||||
Intrinsics.checkNotNullParameter("response.body().close()", "closer");
|
||||
Method method = (Method) hVar.f1413a;
|
||||
if (method != null) {
|
||||
try {
|
||||
Object invoke = method.invoke(null, new Object[0]);
|
||||
Method method2 = (Method) hVar.f1414b;
|
||||
Intrinsics.checkNotNull(method2);
|
||||
method2.invoke(invoke, "response.body().close()");
|
||||
return invoke;
|
||||
} catch (Exception unused) {
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final boolean h(String hostname) {
|
||||
Intrinsics.checkNotNullParameter(hostname, "hostname");
|
||||
return NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted(hostname);
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final void j(Object obj, String message) {
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
R0.h hVar = this.f7812d;
|
||||
hVar.getClass();
|
||||
if (obj != null) {
|
||||
try {
|
||||
Method method = (Method) hVar.f1415c;
|
||||
Intrinsics.checkNotNull(method);
|
||||
method.invoke(obj, new Object[0]);
|
||||
return;
|
||||
} catch (Exception unused) {
|
||||
}
|
||||
}
|
||||
n.i(5, message, null);
|
||||
}
|
||||
}
|
||||
669
apk_decompiled/sources/m3/d.java
Normal file
669
apk_decompiled/sources/m3/d.java
Normal file
@@ -0,0 +1,669 @@
|
||||
package m3;
|
||||
|
||||
import C.w;
|
||||
import O.L;
|
||||
import O.X;
|
||||
import a.AbstractC0106b;
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.Typeface;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.text.SpannableStringBuilder;
|
||||
import android.util.TypedValue;
|
||||
import android.view.View;
|
||||
import android.view.ViewParent;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.K;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.firebase.messaging.ServiceStarter;
|
||||
import d1.C0309c;
|
||||
import e3.V;
|
||||
import f0.C0338b;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Arrays;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.WeakHashMap;
|
||||
import java.util.logging.Logger;
|
||||
import kotlin.NoWhenBranchMatchedException;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.StringCompanionObject;
|
||||
import kotlin.reflect.KClass;
|
||||
import kotlin.time.DurationKt;
|
||||
import o0.T;
|
||||
import o0.U;
|
||||
import o0.W;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
import r3.C0579k;
|
||||
import w2.C0651a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class d {
|
||||
public static Typeface A(Configuration configuration, Typeface typeface) {
|
||||
int i;
|
||||
int i4;
|
||||
int i5;
|
||||
if (Build.VERSION.SDK_INT < 31) {
|
||||
return null;
|
||||
}
|
||||
i = configuration.fontWeightAdjustment;
|
||||
if (i == Integer.MAX_VALUE) {
|
||||
return null;
|
||||
}
|
||||
i4 = configuration.fontWeightAdjustment;
|
||||
if (i4 == 0 || typeface == null) {
|
||||
return null;
|
||||
}
|
||||
int weight = typeface.getWeight();
|
||||
i5 = configuration.fontWeightAdjustment;
|
||||
return Typeface.create(typeface, AbstractC0106b.d(i5 + weight, 1, 1000), typeface.isItalic());
|
||||
}
|
||||
|
||||
public static int B(int i, Rect rect, Rect rect2) {
|
||||
if (i != 17) {
|
||||
if (i != 33) {
|
||||
if (i != 66) {
|
||||
if (i != 130) {
|
||||
throw new IllegalArgumentException("direction must be one of {FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT}.");
|
||||
}
|
||||
}
|
||||
}
|
||||
return Math.abs(((rect.width() / 2) + rect.left) - ((rect2.width() / 2) + rect2.left));
|
||||
}
|
||||
return Math.abs(((rect.height() / 2) + rect.top) - ((rect2.height() / 2) + rect2.top));
|
||||
}
|
||||
|
||||
public static String C(X509Certificate certificate) {
|
||||
Intrinsics.checkNotNullParameter(certificate, "certificate");
|
||||
if (certificate == null) {
|
||||
throw new IllegalArgumentException("Certificate pinning requires X509 certificates");
|
||||
}
|
||||
return "sha256/" + K(certificate).a();
|
||||
}
|
||||
|
||||
public static final void D(View view, v0.f fVar) {
|
||||
Intrinsics.checkNotNullParameter(view, "<this>");
|
||||
view.setTag(R.id.view_tree_saved_state_registry_owner, fVar);
|
||||
}
|
||||
|
||||
public static void G(TextView textView, int i) {
|
||||
g(i);
|
||||
if (i != textView.getPaint().getFontMetricsInt(null)) {
|
||||
textView.setLineSpacing(i - r0, 1.0f);
|
||||
}
|
||||
}
|
||||
|
||||
public static void H(View view, E2.g gVar) {
|
||||
C0651a c0651a = gVar.f400a.f387b;
|
||||
if (c0651a == null || !c0651a.f8806a) {
|
||||
return;
|
||||
}
|
||||
float f2 = BitmapDescriptorFactory.HUE_RED;
|
||||
for (ViewParent parent = view.getParent(); parent instanceof View; parent = parent.getParent()) {
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
f2 += L.i((View) parent);
|
||||
}
|
||||
E2.f fVar = gVar.f400a;
|
||||
if (fVar.f395l != f2) {
|
||||
fVar.f395l = f2;
|
||||
gVar.m();
|
||||
}
|
||||
}
|
||||
|
||||
public static void I(EditorInfo editorInfo, CharSequence charSequence, int i, int i4) {
|
||||
if (editorInfo.extras == null) {
|
||||
editorInfo.extras = new Bundle();
|
||||
}
|
||||
editorInfo.extras.putCharSequence("androidx.core.view.inputmethod.EditorInfoCompat.CONTENT_SURROUNDING_TEXT", charSequence != null ? new SpannableStringBuilder(charSequence) : null);
|
||||
editorInfo.extras.putInt("androidx.core.view.inputmethod.EditorInfoCompat.CONTENT_SELECTION_HEAD", i);
|
||||
editorInfo.extras.putInt("androidx.core.view.inputmethod.EditorInfoCompat.CONTENT_SELECTION_END", i4);
|
||||
}
|
||||
|
||||
public static void J(Drawable drawable, int i) {
|
||||
H.a.g(drawable, i);
|
||||
}
|
||||
|
||||
public static C0579k K(X509Certificate x509Certificate) {
|
||||
Intrinsics.checkNotNullParameter(x509Certificate, "<this>");
|
||||
C0579k c0579k = C0579k.f8285d;
|
||||
byte[] encoded = x509Certificate.getPublicKey().getEncoded();
|
||||
Intrinsics.checkNotNullExpressionValue(encoded, "publicKey.encoded");
|
||||
return C0338b.t(encoded).c("SHA-256");
|
||||
}
|
||||
|
||||
public static final StackTraceElement a(String str, Exception exc) {
|
||||
StackTraceElement stackTraceElement = exc.getStackTrace()[0];
|
||||
return new StackTraceElement("_COROUTINE.".concat(str), "_", stackTraceElement.getFileName(), stackTraceElement.getLineNumber());
|
||||
}
|
||||
|
||||
public static final void b(h3.a aVar, h3.c cVar, String str) {
|
||||
h3.e.h.getClass();
|
||||
Logger logger = h3.e.f6792j;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(cVar.f6785b);
|
||||
sb.append(' ');
|
||||
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
||||
String format = String.format("%-22s", Arrays.copyOf(new Object[]{str}, 1));
|
||||
Intrinsics.checkNotNullExpressionValue(format, "format(format, *args)");
|
||||
sb.append(format);
|
||||
sb.append(": ");
|
||||
sb.append(aVar.f6778a);
|
||||
logger.fine(sb.toString());
|
||||
}
|
||||
|
||||
public static final boolean c(byte[] a2, byte[] b4, int i, int i4, int i5) {
|
||||
Intrinsics.checkNotNullParameter(a2, "a");
|
||||
Intrinsics.checkNotNullParameter(b4, "b");
|
||||
for (int i6 = 0; i6 < i5; i6++) {
|
||||
if (a2[i6 + i] != b4[i6 + i4]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:10:0x0025, code lost:
|
||||
|
||||
if (r9.bottom <= r11.top) goto L24;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x0042, code lost:
|
||||
|
||||
if (r8 == 17) goto L41;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:14:0x0044, code lost:
|
||||
|
||||
if (r8 != 66) goto L27;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:15:0x0047, code lost:
|
||||
|
||||
r10 = z(r8, r9, r10);
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:16:0x004b, code lost:
|
||||
|
||||
if (r8 == 17) goto L38;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:17:0x004d, code lost:
|
||||
|
||||
if (r8 == 33) goto L37;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:18:0x004f, code lost:
|
||||
|
||||
if (r8 == 66) goto L36;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:19:0x0051, code lost:
|
||||
|
||||
if (r8 != 130) goto L34;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:20:0x0053, code lost:
|
||||
|
||||
r8 = r11.bottom;
|
||||
r9 = r9.bottom;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:23:0x0072, code lost:
|
||||
|
||||
if (r10 >= java.lang.Math.max(1, r8 - r9)) goto L44;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:24:?, code lost:
|
||||
|
||||
return false;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:26:0x005e, code lost:
|
||||
|
||||
throw new java.lang.IllegalArgumentException("direction must be one of {FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT}.");
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:27:0x005f, code lost:
|
||||
|
||||
r8 = r11.right;
|
||||
r9 = r9.right;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:28:0x0064, code lost:
|
||||
|
||||
r8 = r9.top;
|
||||
r9 = r11.top;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:29:0x0069, code lost:
|
||||
|
||||
r8 = r9.left;
|
||||
r9 = r11.left;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:33:0x0032, code lost:
|
||||
|
||||
if (r9.right <= r11.left) goto L24;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:35:0x0039, code lost:
|
||||
|
||||
if (r9.top >= r11.bottom) goto L24;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:37:0x0040, code lost:
|
||||
|
||||
if (r9.left >= r11.right) goto L24;
|
||||
*/
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static boolean d(int r8, android.graphics.Rect r9, android.graphics.Rect r10, android.graphics.Rect r11) {
|
||||
/*
|
||||
boolean r0 = e(r8, r9, r10)
|
||||
boolean r1 = e(r8, r9, r11)
|
||||
if (r1 != 0) goto L75
|
||||
if (r0 != 0) goto Le
|
||||
goto L75
|
||||
Le:
|
||||
java.lang.String r0 = "direction must be one of {FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT}."
|
||||
r1 = 130(0x82, float:1.82E-43)
|
||||
r2 = 33
|
||||
r3 = 66
|
||||
r4 = 17
|
||||
r5 = 1
|
||||
if (r8 == r4) goto L3c
|
||||
if (r8 == r2) goto L35
|
||||
if (r8 == r3) goto L2e
|
||||
if (r8 != r1) goto L28
|
||||
int r6 = r9.bottom
|
||||
int r7 = r11.top
|
||||
if (r6 > r7) goto L74
|
||||
goto L42
|
||||
L28:
|
||||
java.lang.IllegalArgumentException r8 = new java.lang.IllegalArgumentException
|
||||
r8.<init>(r0)
|
||||
throw r8
|
||||
L2e:
|
||||
int r6 = r9.right
|
||||
int r7 = r11.left
|
||||
if (r6 > r7) goto L74
|
||||
goto L42
|
||||
L35:
|
||||
int r6 = r9.top
|
||||
int r7 = r11.bottom
|
||||
if (r6 < r7) goto L74
|
||||
goto L42
|
||||
L3c:
|
||||
int r6 = r9.left
|
||||
int r7 = r11.right
|
||||
if (r6 < r7) goto L74
|
||||
L42:
|
||||
if (r8 == r4) goto L74
|
||||
if (r8 != r3) goto L47
|
||||
goto L74
|
||||
L47:
|
||||
int r10 = z(r8, r9, r10)
|
||||
if (r8 == r4) goto L69
|
||||
if (r8 == r2) goto L64
|
||||
if (r8 == r3) goto L5f
|
||||
if (r8 != r1) goto L59
|
||||
int r8 = r11.bottom
|
||||
int r9 = r9.bottom
|
||||
L57:
|
||||
int r8 = r8 - r9
|
||||
goto L6e
|
||||
L59:
|
||||
java.lang.IllegalArgumentException r8 = new java.lang.IllegalArgumentException
|
||||
r8.<init>(r0)
|
||||
throw r8
|
||||
L5f:
|
||||
int r8 = r11.right
|
||||
int r9 = r9.right
|
||||
goto L57
|
||||
L64:
|
||||
int r8 = r9.top
|
||||
int r9 = r11.top
|
||||
goto L57
|
||||
L69:
|
||||
int r8 = r9.left
|
||||
int r9 = r11.left
|
||||
goto L57
|
||||
L6e:
|
||||
int r8 = java.lang.Math.max(r5, r8)
|
||||
if (r10 >= r8) goto L75
|
||||
L74:
|
||||
return r5
|
||||
L75:
|
||||
r8 = 0
|
||||
return r8
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: m3.d.d(int, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect):boolean");
|
||||
}
|
||||
|
||||
public static boolean e(int i, Rect rect, Rect rect2) {
|
||||
if (i != 17) {
|
||||
if (i != 33) {
|
||||
if (i != 66) {
|
||||
if (i != 130) {
|
||||
throw new IllegalArgumentException("direction must be one of {FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT}.");
|
||||
}
|
||||
}
|
||||
}
|
||||
return rect2.right >= rect.left && rect2.left <= rect.right;
|
||||
}
|
||||
return rect2.bottom >= rect.top && rect2.top <= rect.bottom;
|
||||
}
|
||||
|
||||
public static void f(boolean z3, String str) {
|
||||
if (!z3) {
|
||||
throw new IllegalArgumentException(str);
|
||||
}
|
||||
}
|
||||
|
||||
public static void g(int i) {
|
||||
if (i < 0) {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
public static T h(TypedValue value, T t2, T expectedNavType, String str, String foundType) {
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
Intrinsics.checkNotNullParameter(expectedNavType, "expectedNavType");
|
||||
Intrinsics.checkNotNullParameter(foundType, "foundType");
|
||||
if (t2 == null || t2 == expectedNavType) {
|
||||
return t2 == null ? expectedNavType : t2;
|
||||
}
|
||||
throw new XmlPullParserException("Type is " + str + " but found " + foundType + ": " + value.data);
|
||||
}
|
||||
|
||||
public static void i(Object obj, String str) {
|
||||
if (obj == null) {
|
||||
throw new NullPointerException(str);
|
||||
}
|
||||
}
|
||||
|
||||
public static final void j(long j4, long j5, long j6) {
|
||||
if ((j5 | j6) < 0 || j5 > j4 || j4 - j5 < j6) {
|
||||
throw new ArrayIndexOutOfBoundsException("size=" + j4 + " offset=" + j5 + " byteCount=" + j6);
|
||||
}
|
||||
}
|
||||
|
||||
public static final double k(int i, int i4, int i5, int i6, T0.g gVar) {
|
||||
double d4 = i5 / i;
|
||||
double d5 = i6 / i4;
|
||||
int i7 = J0.i.$EnumSwitchMapping$0[gVar.ordinal()];
|
||||
if (i7 == 1) {
|
||||
return Math.max(d4, d5);
|
||||
}
|
||||
if (i7 == 2) {
|
||||
return Math.min(d4, d5);
|
||||
}
|
||||
throw new NoWhenBranchMatchedException();
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0070 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:? A[RETURN, SYNTHETIC] */
|
||||
/* JADX WARN: Type inference failed for: r4v1, types: [d0.p, androidx.recyclerview.widget.b0] */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static d0.p l(android.content.Context r8) {
|
||||
/*
|
||||
android.content.pm.PackageManager r0 = r8.getPackageManager()
|
||||
java.lang.String r1 = "Package manager required to locate emoji font provider"
|
||||
i(r0, r1)
|
||||
android.content.Intent r1 = new android.content.Intent
|
||||
java.lang.String r2 = "androidx.content.action.LOAD_EMOJI_FONT"
|
||||
r1.<init>(r2)
|
||||
r2 = 0
|
||||
java.util.List r1 = r0.queryIntentContentProviders(r1, r2)
|
||||
java.util.Iterator r1 = r1.iterator()
|
||||
L19:
|
||||
boolean r3 = r1.hasNext()
|
||||
r4 = 0
|
||||
if (r3 == 0) goto L35
|
||||
java.lang.Object r3 = r1.next()
|
||||
android.content.pm.ResolveInfo r3 = (android.content.pm.ResolveInfo) r3
|
||||
android.content.pm.ProviderInfo r3 = r3.providerInfo
|
||||
if (r3 == 0) goto L19
|
||||
android.content.pm.ApplicationInfo r5 = r3.applicationInfo
|
||||
if (r5 == 0) goto L19
|
||||
int r5 = r5.flags
|
||||
r6 = 1
|
||||
r5 = r5 & r6
|
||||
if (r5 != r6) goto L19
|
||||
goto L36
|
||||
L35:
|
||||
r3 = r4
|
||||
L36:
|
||||
if (r3 != 0) goto L3a
|
||||
L38:
|
||||
r2 = r4
|
||||
goto L6d
|
||||
L3a:
|
||||
java.lang.String r1 = r3.authority // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
java.lang.String r3 = r3.packageName // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
r5 = 64
|
||||
android.content.pm.PackageInfo r0 = r0.getPackageInfo(r3, r5) // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
android.content.pm.Signature[] r0 = r0.signatures // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
java.util.ArrayList r5 = new java.util.ArrayList // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
r5.<init>() // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
int r6 = r0.length // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
L4c:
|
||||
if (r2 >= r6) goto L5a
|
||||
r7 = r0[r2] // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
byte[] r7 = r7.toByteArray() // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
r5.add(r7) // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
int r2 = r2 + 1
|
||||
goto L4c
|
||||
L5a:
|
||||
java.util.List r0 = java.util.Collections.singletonList(r5) // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
I0.b r2 = new I0.b // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
java.lang.String r5 = "emojicompat-emoji-font"
|
||||
r2.<init>(r1, r3, r5, r0) // Catch: android.content.pm.PackageManager.NameNotFoundException -> L66
|
||||
goto L6d
|
||||
L66:
|
||||
r0 = move-exception
|
||||
java.lang.String r1 = "emoji2.text.DefaultEmojiConfig"
|
||||
android.util.Log.wtf(r1, r0)
|
||||
goto L38
|
||||
L6d:
|
||||
if (r2 != 0) goto L70
|
||||
goto L7a
|
||||
L70:
|
||||
d0.p r4 = new d0.p
|
||||
d0.o r0 = new d0.o
|
||||
r0.<init>(r8, r2)
|
||||
r4.<init>(r0)
|
||||
L7a:
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: m3.d.l(android.content.Context):d0.p");
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r1v1, types: [a.b, java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r1v2, types: [a.b, java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r1v3, types: [a.b, java.lang.Object] */
|
||||
public static AbstractC0106b m(int i) {
|
||||
if (i != 0 && i == 1) {
|
||||
return new Object();
|
||||
}
|
||||
return new Object();
|
||||
}
|
||||
|
||||
public static final I0.b n(K k4, KClass viewModelClass, Function0 storeProducer, Function0 extrasProducer, Function0 function0) {
|
||||
Intrinsics.checkNotNullParameter(k4, "<this>");
|
||||
Intrinsics.checkNotNullParameter(viewModelClass, "viewModelClass");
|
||||
Intrinsics.checkNotNullParameter(storeProducer, "storeProducer");
|
||||
Intrinsics.checkNotNullParameter(extrasProducer, "extrasProducer");
|
||||
return new I0.b(viewModelClass, storeProducer, function0, extrasProducer);
|
||||
}
|
||||
|
||||
public static SimpleDateFormat o() {
|
||||
return (SimpleDateFormat) C0309c.f6168a.getValue();
|
||||
}
|
||||
|
||||
public static V p(String javaName) {
|
||||
Intrinsics.checkNotNullParameter(javaName, "javaName");
|
||||
int hashCode = javaName.hashCode();
|
||||
if (hashCode != 79201641) {
|
||||
if (hashCode != 79923350) {
|
||||
switch (hashCode) {
|
||||
case -503070503:
|
||||
if (javaName.equals("TLSv1.1")) {
|
||||
return V.TLS_1_1;
|
||||
}
|
||||
break;
|
||||
case -503070502:
|
||||
if (javaName.equals("TLSv1.2")) {
|
||||
return V.TLS_1_2;
|
||||
}
|
||||
break;
|
||||
case -503070501:
|
||||
if (javaName.equals("TLSv1.3")) {
|
||||
return V.TLS_1_3;
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else if (javaName.equals("TLSv1")) {
|
||||
return V.TLS_1_0;
|
||||
}
|
||||
} else if (javaName.equals("SSLv3")) {
|
||||
return V.SSL_3_0;
|
||||
}
|
||||
throw new IllegalArgumentException("Unexpected TLS version: ".concat(javaName));
|
||||
}
|
||||
|
||||
public static final String q(long j4) {
|
||||
String q4 = j4 <= -999500000 ? w.q(new StringBuilder(), (j4 - 500000000) / 1000000000, " s ") : j4 <= -999500 ? w.q(new StringBuilder(), (j4 - 500000) / DurationKt.NANOS_IN_MILLIS, " ms") : j4 <= 0 ? w.q(new StringBuilder(), (j4 - ServiceStarter.ERROR_UNKNOWN) / 1000, " µs") : j4 < 999500 ? w.q(new StringBuilder(), (j4 + ServiceStarter.ERROR_UNKNOWN) / 1000, " µs") : j4 < 999500000 ? w.q(new StringBuilder(), (j4 + 500000) / DurationKt.NANOS_IN_MILLIS, " ms") : w.q(new StringBuilder(), (j4 + 500000000) / 1000000000, " s ");
|
||||
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
|
||||
return w.s(new Object[]{q4}, 1, "%6s", "format(format, *args)");
|
||||
}
|
||||
|
||||
public static final int r(Bitmap bitmap) {
|
||||
if (!bitmap.isRecycled()) {
|
||||
try {
|
||||
return bitmap.getAllocationByteCount();
|
||||
} catch (Exception unused) {
|
||||
int height = bitmap.getHeight() * bitmap.getWidth();
|
||||
Bitmap.Config config = bitmap.getConfig();
|
||||
return height * (config == Bitmap.Config.ALPHA_8 ? 1 : (config == Bitmap.Config.RGB_565 || config == Bitmap.Config.ARGB_4444) ? 2 : config == Bitmap.Config.RGBA_F16 ? 8 : 4);
|
||||
}
|
||||
}
|
||||
throw new IllegalStateException(("Cannot obtain size for recycled bitmap: " + bitmap + " [" + bitmap.getWidth() + " x " + bitmap.getHeight() + "] + " + bitmap.getConfig()).toString());
|
||||
}
|
||||
|
||||
public static int s(Context context, int i, int i4) {
|
||||
Integer num;
|
||||
TypedValue T3 = l.T(context, i);
|
||||
if (T3 != null) {
|
||||
int i5 = T3.resourceId;
|
||||
num = Integer.valueOf(i5 != 0 ? D.h.getColor(context, i5) : T3.data);
|
||||
} else {
|
||||
num = null;
|
||||
}
|
||||
return num != null ? num.intValue() : i4;
|
||||
}
|
||||
|
||||
public static int t(View view, int i) {
|
||||
Context context = view.getContext();
|
||||
TypedValue V3 = l.V(view.getContext(), i, view.getClass().getCanonicalName());
|
||||
int i4 = V3.resourceId;
|
||||
return i4 != 0 ? D.h.getColor(context, i4) : V3.data;
|
||||
}
|
||||
|
||||
public static String u(Class navigatorClass) {
|
||||
Intrinsics.checkNotNullParameter(navigatorClass, "navigatorClass");
|
||||
LinkedHashMap linkedHashMap = W.f7966b;
|
||||
String str = (String) linkedHashMap.get(navigatorClass);
|
||||
if (str == null) {
|
||||
U u3 = (U) navigatorClass.getAnnotation(U.class);
|
||||
str = u3 != null ? u3.value() : null;
|
||||
if (str == null || str.length() <= 0) {
|
||||
throw new IllegalArgumentException("No @Navigator.Name annotation found for ".concat(navigatorClass.getSimpleName()).toString());
|
||||
}
|
||||
linkedHashMap.put(navigatorClass, str);
|
||||
}
|
||||
Intrinsics.checkNotNull(str);
|
||||
return str;
|
||||
}
|
||||
|
||||
public static boolean w(int i, Rect rect, Rect rect2) {
|
||||
if (i == 17) {
|
||||
int i4 = rect.right;
|
||||
int i5 = rect2.right;
|
||||
return (i4 > i5 || rect.left >= i5) && rect.left > rect2.left;
|
||||
}
|
||||
if (i == 33) {
|
||||
int i6 = rect.bottom;
|
||||
int i7 = rect2.bottom;
|
||||
return (i6 > i7 || rect.top >= i7) && rect.top > rect2.top;
|
||||
}
|
||||
if (i == 66) {
|
||||
int i8 = rect.left;
|
||||
int i9 = rect2.left;
|
||||
return (i8 < i9 || rect.right <= i9) && rect.right < rect2.right;
|
||||
}
|
||||
if (i != 130) {
|
||||
throw new IllegalArgumentException("direction must be one of {FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT}.");
|
||||
}
|
||||
int i10 = rect.top;
|
||||
int i11 = rect2.top;
|
||||
return (i10 < i11 || rect.bottom <= i11) && rect.bottom < rect2.bottom;
|
||||
}
|
||||
|
||||
public static boolean x(int i) {
|
||||
if (i == 0) {
|
||||
return false;
|
||||
}
|
||||
ThreadLocal threadLocal = G.a.f556a;
|
||||
double[] dArr = (double[]) threadLocal.get();
|
||||
if (dArr == null) {
|
||||
dArr = new double[3];
|
||||
threadLocal.set(dArr);
|
||||
}
|
||||
int red = Color.red(i);
|
||||
int green = Color.green(i);
|
||||
int blue = Color.blue(i);
|
||||
if (dArr.length != 3) {
|
||||
throw new IllegalArgumentException("outXyz must have a length of 3.");
|
||||
}
|
||||
double d4 = red / 255.0d;
|
||||
double pow = d4 < 0.04045d ? d4 / 12.92d : Math.pow((d4 + 0.055d) / 1.055d, 2.4d);
|
||||
double d5 = green / 255.0d;
|
||||
double pow2 = d5 < 0.04045d ? d5 / 12.92d : Math.pow((d5 + 0.055d) / 1.055d, 2.4d);
|
||||
double d6 = blue / 255.0d;
|
||||
double pow3 = d6 < 0.04045d ? d6 / 12.92d : Math.pow((d6 + 0.055d) / 1.055d, 2.4d);
|
||||
dArr[0] = ((0.1805d * pow3) + (0.3576d * pow2) + (0.4124d * pow)) * 100.0d;
|
||||
double d7 = ((0.0722d * pow3) + (0.7152d * pow2) + (0.2126d * pow)) * 100.0d;
|
||||
dArr[1] = d7;
|
||||
dArr[2] = ((pow3 * 0.9505d) + (pow2 * 0.1192d) + (pow * 0.0193d)) * 100.0d;
|
||||
return d7 / 100.0d > 0.5d;
|
||||
}
|
||||
|
||||
public static int y(float f2, int i, int i4) {
|
||||
return G.a.b(G.a.d(i4, Math.round(Color.alpha(i4) * f2)), i);
|
||||
}
|
||||
|
||||
public static int z(int i, Rect rect, Rect rect2) {
|
||||
int i4;
|
||||
int i5;
|
||||
if (i == 17) {
|
||||
i4 = rect.left;
|
||||
i5 = rect2.right;
|
||||
} else if (i == 33) {
|
||||
i4 = rect.top;
|
||||
i5 = rect2.bottom;
|
||||
} else if (i == 66) {
|
||||
i4 = rect2.left;
|
||||
i5 = rect.right;
|
||||
} else {
|
||||
if (i != 130) {
|
||||
throw new IllegalArgumentException("direction must be one of {FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT}.");
|
||||
}
|
||||
i4 = rect2.top;
|
||||
i5 = rect.bottom;
|
||||
}
|
||||
return Math.max(0, i4 - i5);
|
||||
}
|
||||
|
||||
public abstract void E(boolean z3);
|
||||
|
||||
public abstract void F(boolean z3);
|
||||
|
||||
public abstract boolean v();
|
||||
}
|
||||
74
apk_decompiled/sources/m3/e.java
Normal file
74
apk_decompiled/sources/m3/e.java
Normal file
@@ -0,0 +1,74 @@
|
||||
package m3;
|
||||
|
||||
import java.security.KeyStore;
|
||||
import java.security.Provider;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.SSLSocket;
|
||||
import javax.net.ssl.TrustManager;
|
||||
import javax.net.ssl.TrustManagerFactory;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import org.bouncycastle.jsse.provider.BouncyCastleJsseProvider;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class e extends n {
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public static final boolean f7813d;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final Provider f7814c = new BouncyCastleJsseProvider();
|
||||
|
||||
static {
|
||||
boolean z3 = false;
|
||||
try {
|
||||
Class.forName("org.bouncycastle.jsse.provider.BouncyCastleJsseProvider", false, d.class.getClassLoader());
|
||||
z3 = true;
|
||||
} catch (ClassNotFoundException unused) {
|
||||
}
|
||||
f7813d = z3;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final void d(SSLSocket sslSocket, String str, List protocols) {
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
super.d(sslSocket, str, protocols);
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final String f(SSLSocket sslSocket) {
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final SSLContext k() {
|
||||
SSLContext sSLContext = SSLContext.getInstance("TLS", this.f7814c);
|
||||
Intrinsics.checkNotNullExpressionValue(sSLContext, "getInstance(\"TLS\", provider)");
|
||||
return sSLContext;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final X509TrustManager m() {
|
||||
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance("PKIX", "BCJSSE");
|
||||
trustManagerFactory.init((KeyStore) null);
|
||||
TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
|
||||
Intrinsics.checkNotNull(trustManagers);
|
||||
if (trustManagers.length == 1) {
|
||||
TrustManager trustManager = trustManagers[0];
|
||||
if (trustManager instanceof X509TrustManager) {
|
||||
Intrinsics.checkNotNull(trustManager, "null cannot be cast to non-null type javax.net.ssl.X509TrustManager");
|
||||
return (X509TrustManager) trustManager;
|
||||
}
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("Unexpected default trust managers: ");
|
||||
String arrays = Arrays.toString(trustManagers);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays, "toString(this)");
|
||||
sb.append(arrays);
|
||||
throw new IllegalStateException(sb.toString().toString());
|
||||
}
|
||||
}
|
||||
22
apk_decompiled/sources/m3/f.java
Normal file
22
apk_decompiled/sources/m3/f.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package m3;
|
||||
|
||||
import org.conscrypt.Conscrypt;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class f {
|
||||
public static boolean a() {
|
||||
Conscrypt.Version version = Conscrypt.version();
|
||||
if (version.major() != 2) {
|
||||
if (version.major() <= 2) {
|
||||
return false;
|
||||
}
|
||||
} else if (version.minor() != 1) {
|
||||
if (version.minor() <= 1) {
|
||||
return false;
|
||||
}
|
||||
} else if (version.patch() < 0) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
10
apk_decompiled/sources/m3/g.java
Normal file
10
apk_decompiled/sources/m3/g.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package m3;
|
||||
|
||||
import org.conscrypt.ConscryptHostnameVerifier;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class g implements ConscryptHostnameVerifier {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final g f7815a = new Object();
|
||||
}
|
||||
123
apk_decompiled/sources/m3/h.java
Normal file
123
apk_decompiled/sources/m3/h.java
Normal file
@@ -0,0 +1,123 @@
|
||||
package m3;
|
||||
|
||||
import e3.G;
|
||||
import java.security.KeyStore;
|
||||
import java.security.Provider;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.SSLSocket;
|
||||
import javax.net.ssl.SSLSocketFactory;
|
||||
import javax.net.ssl.TrustManager;
|
||||
import javax.net.ssl.TrustManagerFactory;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import org.conscrypt.Conscrypt;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class h extends n {
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public static final boolean f7816d;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final Provider f7817c;
|
||||
|
||||
static {
|
||||
boolean z3 = false;
|
||||
try {
|
||||
Class.forName("org.conscrypt.Conscrypt$Version", false, f.class.getClassLoader());
|
||||
if (Conscrypt.isAvailable()) {
|
||||
if (f.a()) {
|
||||
z3 = true;
|
||||
}
|
||||
}
|
||||
} catch (ClassNotFoundException | NoClassDefFoundError unused) {
|
||||
}
|
||||
f7816d = z3;
|
||||
}
|
||||
|
||||
public h() {
|
||||
Provider newProvider = Conscrypt.newProvider();
|
||||
Intrinsics.checkNotNullExpressionValue(newProvider, "newProvider()");
|
||||
this.f7817c = newProvider;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final void d(SSLSocket sslSocket, String str, List protocols) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
if (!Conscrypt.isConscrypt(sslSocket)) {
|
||||
super.d(sslSocket, str, protocols);
|
||||
return;
|
||||
}
|
||||
Conscrypt.setUseSessionTickets(sslSocket, true);
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : protocols) {
|
||||
if (((G) obj) != G.HTTP_1_0) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(arrayList, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(((G) it.next()).f6261a);
|
||||
}
|
||||
Conscrypt.setApplicationProtocols(sslSocket, (String[]) arrayList2.toArray(new String[0]));
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final String f(SSLSocket sslSocket) {
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
if (Conscrypt.isConscrypt(sslSocket)) {
|
||||
return Conscrypt.getApplicationProtocol(sslSocket);
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final SSLContext k() {
|
||||
SSLContext sSLContext = SSLContext.getInstance("TLS", this.f7817c);
|
||||
Intrinsics.checkNotNullExpressionValue(sSLContext, "getInstance(\"TLS\", provider)");
|
||||
return sSLContext;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final SSLSocketFactory l(X509TrustManager trustManager) {
|
||||
Intrinsics.checkNotNullParameter(trustManager, "trustManager");
|
||||
SSLContext k4 = k();
|
||||
k4.init(null, new TrustManager[]{trustManager}, null);
|
||||
SSLSocketFactory socketFactory = k4.getSocketFactory();
|
||||
Intrinsics.checkNotNullExpressionValue(socketFactory, "newSSLContext().apply {\n…null)\n }.socketFactory");
|
||||
return socketFactory;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final X509TrustManager m() {
|
||||
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
|
||||
trustManagerFactory.init((KeyStore) null);
|
||||
TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
|
||||
Intrinsics.checkNotNull(trustManagers);
|
||||
if (trustManagers.length == 1) {
|
||||
TrustManager trustManager = trustManagers[0];
|
||||
if (trustManager instanceof X509TrustManager) {
|
||||
Intrinsics.checkNotNull(trustManager, "null cannot be cast to non-null type javax.net.ssl.X509TrustManager");
|
||||
X509TrustManager x509TrustManager = (X509TrustManager) trustManager;
|
||||
Conscrypt.setHostnameVerifier(x509TrustManager, g.f7815a);
|
||||
return x509TrustManager;
|
||||
}
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("Unexpected default trust managers: ");
|
||||
String arrays = Arrays.toString(trustManagers);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays, "toString(this)");
|
||||
sb.append(arrays);
|
||||
throw new IllegalStateException(sb.toString().toString());
|
||||
}
|
||||
}
|
||||
84
apk_decompiled/sources/m3/i.java
Normal file
84
apk_decompiled/sources/m3/i.java
Normal file
@@ -0,0 +1,84 @@
|
||||
package m3;
|
||||
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class i implements InvocationHandler {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final ArrayList f7818a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public boolean f7819b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public String f7820c;
|
||||
|
||||
public i(ArrayList protocols) {
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
this.f7818a = protocols;
|
||||
}
|
||||
|
||||
@Override // java.lang.reflect.InvocationHandler
|
||||
public final Object invoke(Object proxy, Method method, Object[] objArr) {
|
||||
Intrinsics.checkNotNullParameter(proxy, "proxy");
|
||||
Intrinsics.checkNotNullParameter(method, "method");
|
||||
if (objArr == null) {
|
||||
objArr = new Object[0];
|
||||
}
|
||||
String name = method.getName();
|
||||
Class<?> returnType = method.getReturnType();
|
||||
if (Intrinsics.areEqual(name, "supports") && Intrinsics.areEqual(Boolean.TYPE, returnType)) {
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
if (Intrinsics.areEqual(name, "unsupported") && Intrinsics.areEqual(Void.TYPE, returnType)) {
|
||||
this.f7819b = true;
|
||||
return null;
|
||||
}
|
||||
boolean areEqual = Intrinsics.areEqual(name, "protocols");
|
||||
ArrayList arrayList = this.f7818a;
|
||||
if (areEqual && objArr.length == 0) {
|
||||
return arrayList;
|
||||
}
|
||||
if ((Intrinsics.areEqual(name, "selectProtocol") || Intrinsics.areEqual(name, "select")) && Intrinsics.areEqual(String.class, returnType) && objArr.length == 1) {
|
||||
Object obj = objArr[0];
|
||||
if (obj instanceof List) {
|
||||
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type kotlin.collections.List<*>");
|
||||
List list = (List) obj;
|
||||
int size = list.size();
|
||||
if (size >= 0) {
|
||||
int i = 0;
|
||||
while (true) {
|
||||
Object obj2 = list.get(i);
|
||||
Intrinsics.checkNotNull(obj2, "null cannot be cast to non-null type kotlin.String");
|
||||
String str = (String) obj2;
|
||||
if (!arrayList.contains(str)) {
|
||||
if (i == size) {
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
} else {
|
||||
this.f7820c = str;
|
||||
return str;
|
||||
}
|
||||
}
|
||||
}
|
||||
String str2 = (String) arrayList.get(0);
|
||||
this.f7820c = str2;
|
||||
return str2;
|
||||
}
|
||||
}
|
||||
if ((!Intrinsics.areEqual(name, "protocolSelected") && !Intrinsics.areEqual(name, "selected")) || objArr.length != 1) {
|
||||
return method.invoke(this, Arrays.copyOf(objArr, objArr.length));
|
||||
}
|
||||
Object obj3 = objArr[0];
|
||||
Intrinsics.checkNotNull(obj3, "null cannot be cast to non-null type kotlin.String");
|
||||
this.f7820c = (String) obj3;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
107
apk_decompiled/sources/m3/j.java
Normal file
107
apk_decompiled/sources/m3/j.java
Normal file
@@ -0,0 +1,107 @@
|
||||
package m3;
|
||||
|
||||
import e3.G;
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Proxy;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import javax.net.ssl.SSLSocket;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class j extends n {
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final Method f7821c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final Method f7822d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final Method f7823e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final Class f7824f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final Class f7825g;
|
||||
|
||||
public j(Method putMethod, Method getMethod, Method removeMethod, Class clientProviderClass, Class serverProviderClass) {
|
||||
Intrinsics.checkNotNullParameter(putMethod, "putMethod");
|
||||
Intrinsics.checkNotNullParameter(getMethod, "getMethod");
|
||||
Intrinsics.checkNotNullParameter(removeMethod, "removeMethod");
|
||||
Intrinsics.checkNotNullParameter(clientProviderClass, "clientProviderClass");
|
||||
Intrinsics.checkNotNullParameter(serverProviderClass, "serverProviderClass");
|
||||
this.f7821c = putMethod;
|
||||
this.f7822d = getMethod;
|
||||
this.f7823e = removeMethod;
|
||||
this.f7824f = clientProviderClass;
|
||||
this.f7825g = serverProviderClass;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final void a(SSLSocket sslSocket) {
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
try {
|
||||
this.f7823e.invoke(null, sslSocket);
|
||||
} catch (IllegalAccessException e4) {
|
||||
throw new AssertionError("failed to remove ALPN", e4);
|
||||
} catch (InvocationTargetException e5) {
|
||||
throw new AssertionError("failed to remove ALPN", e5);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final void d(SSLSocket sslSocket, String str, List protocols) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : protocols) {
|
||||
if (((G) obj) != G.HTTP_1_0) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(arrayList, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(((G) it.next()).f6261a);
|
||||
}
|
||||
try {
|
||||
this.f7821c.invoke(null, sslSocket, Proxy.newProxyInstance(n.class.getClassLoader(), new Class[]{this.f7824f, this.f7825g}, new i(arrayList2)));
|
||||
} catch (IllegalAccessException e4) {
|
||||
throw new AssertionError("failed to set ALPN", e4);
|
||||
} catch (InvocationTargetException e5) {
|
||||
throw new AssertionError("failed to set ALPN", e5);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final String f(SSLSocket sslSocket) {
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
try {
|
||||
InvocationHandler invocationHandler = Proxy.getInvocationHandler(this.f7822d.invoke(null, sslSocket));
|
||||
Intrinsics.checkNotNull(invocationHandler, "null cannot be cast to non-null type okhttp3.internal.platform.Jdk8WithJettyBootPlatform.AlpnProvider");
|
||||
i iVar = (i) invocationHandler;
|
||||
boolean z3 = iVar.f7819b;
|
||||
if (!z3 && iVar.f7820c == null) {
|
||||
n.i(4, "ALPN callback dropped: HTTP/2 is disabled. Is alpn-boot on the boot class path?", null);
|
||||
return null;
|
||||
}
|
||||
if (z3) {
|
||||
return null;
|
||||
}
|
||||
return iVar.f7820c;
|
||||
} catch (IllegalAccessException e4) {
|
||||
throw new AssertionError("failed to get ALPN selected protocol", e4);
|
||||
} catch (InvocationTargetException e5) {
|
||||
throw new AssertionError("failed to get ALPN selected protocol", e5);
|
||||
}
|
||||
}
|
||||
}
|
||||
90
apk_decompiled/sources/m3/k.java
Normal file
90
apk_decompiled/sources/m3/k.java
Normal file
@@ -0,0 +1,90 @@
|
||||
package m3;
|
||||
|
||||
import e3.G;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import javax.net.ssl.SSLParameters;
|
||||
import javax.net.ssl.SSLSocket;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class k extends n {
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public static final boolean f7826c;
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:7:0x0018, code lost:
|
||||
|
||||
if (r0.intValue() >= 9) goto L13;
|
||||
*/
|
||||
static {
|
||||
/*
|
||||
java.lang.String r0 = "java.specification.version"
|
||||
java.lang.String r0 = java.lang.System.getProperty(r0)
|
||||
if (r0 == 0) goto Ld
|
||||
java.lang.Integer r0 = kotlin.text.StringsKt.toIntOrNull(r0)
|
||||
goto Le
|
||||
Ld:
|
||||
r0 = 0
|
||||
Le:
|
||||
r1 = 1
|
||||
r2 = 0
|
||||
if (r0 == 0) goto L1d
|
||||
int r0 = r0.intValue()
|
||||
r3 = 9
|
||||
if (r0 < r3) goto L1b
|
||||
goto L26
|
||||
L1b:
|
||||
r1 = r2
|
||||
goto L26
|
||||
L1d:
|
||||
java.lang.Class<javax.net.ssl.SSLSocket> r0 = javax.net.ssl.SSLSocket.class
|
||||
java.lang.String r3 = "getApplicationProtocol"
|
||||
java.lang.Class[] r4 = new java.lang.Class[r2] // Catch: java.lang.NoSuchMethodException -> L1b
|
||||
r0.getMethod(r3, r4) // Catch: java.lang.NoSuchMethodException -> L1b
|
||||
L26:
|
||||
m3.k.f7826c = r1
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: m3.k.<clinit>():void");
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final void d(SSLSocket sslSocket, String str, List protocols) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
SSLParameters sSLParameters = sslSocket.getSSLParameters();
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : protocols) {
|
||||
if (((G) obj) != G.HTTP_1_0) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(arrayList, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(((G) it.next()).f6261a);
|
||||
}
|
||||
sSLParameters.setApplicationProtocols((String[]) arrayList2.toArray(new String[0]));
|
||||
sslSocket.setSSLParameters(sSLParameters);
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final String f(SSLSocket sslSocket) {
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
try {
|
||||
String applicationProtocol = sslSocket.getApplicationProtocol();
|
||||
if (applicationProtocol == null ? true : Intrinsics.areEqual(applicationProtocol, "")) {
|
||||
return null;
|
||||
}
|
||||
return applicationProtocol;
|
||||
} catch (UnsupportedOperationException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
457
apk_decompiled/sources/m3/l.java
Normal file
457
apk_decompiled/sources/m3/l.java
Normal file
@@ -0,0 +1,457 @@
|
||||
package m3;
|
||||
|
||||
import C.AbstractC0045i;
|
||||
import C.AbstractC0046j;
|
||||
import C.w;
|
||||
import O.C0079u;
|
||||
import O.i0;
|
||||
import a.AbstractC0106b;
|
||||
import android.app.AppOpsManager;
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.database.Cursor;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.graphics.drawable.ColorStateListDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Binder;
|
||||
import android.os.Process;
|
||||
import android.text.InputFilter;
|
||||
import android.text.method.TransformationMethod;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.Window;
|
||||
import android.widget.EditText;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import androidx.fragment.app.C0164o0;
|
||||
import androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y;
|
||||
import androidx.lifecycle.C0;
|
||||
import androidx.lifecycle.y0;
|
||||
import androidx.navigation.fragment.NavHostFragment;
|
||||
import androidx.room.A;
|
||||
import androidx.room.u;
|
||||
import e3.C0324j;
|
||||
import e3.C0332s;
|
||||
import e3.V;
|
||||
import java.io.IOException;
|
||||
import java.security.cert.Certificate;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import javax.net.ssl.SSLPeerUnverifiedException;
|
||||
import javax.net.ssl.SSLSession;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.collections.ArraysKt___ArraysKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.MapsKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.JvmClassMappingKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.KClass;
|
||||
import kotlinx.coroutines.BuildersKt;
|
||||
import kotlinx.coroutines.CoroutineDispatcher;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.CoroutineScopeKt;
|
||||
import kotlinx.coroutines.Dispatchers;
|
||||
import kotlinx.coroutines.ExecutorsKt;
|
||||
import kotlinx.coroutines.Job;
|
||||
import kotlinx.coroutines.SupervisorKt;
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
import kotlinx.coroutines.flow.FlowKt;
|
||||
import l0.C0435a;
|
||||
import o0.AbstractC0544v;
|
||||
import o0.C0545w;
|
||||
import o0.I;
|
||||
import o0.K;
|
||||
import o0.L;
|
||||
import r3.C0573e;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class l implements i0 {
|
||||
public static boolean E(EditText editText) {
|
||||
return editText.getInputType() != 0;
|
||||
}
|
||||
|
||||
public static String J(String str, String str2) {
|
||||
int length = str.length() - str2.length();
|
||||
if (length < 0 || length > 1) {
|
||||
throw new IllegalArgumentException("Invalid input received");
|
||||
}
|
||||
StringBuilder sb = new StringBuilder(str2.length() + str.length());
|
||||
for (int i = 0; i < str.length(); i++) {
|
||||
sb.append(str.charAt(i));
|
||||
if (str2.length() > i) {
|
||||
sb.append(str2.charAt(i));
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static final K K(Function1 optionsBuilder) {
|
||||
Intrinsics.checkNotNullParameter(optionsBuilder, "optionsBuilder");
|
||||
L l4 = new L();
|
||||
optionsBuilder.invoke(l4);
|
||||
boolean z3 = l4.f7945b;
|
||||
C0079u c0079u = l4.f7944a;
|
||||
return new K(z3, false, l4.f7946c, false, l4.f7947d, c0079u.f1298a, c0079u.f1299b, -1, -1);
|
||||
}
|
||||
|
||||
public static final boolean R(String method) {
|
||||
Intrinsics.checkNotNullParameter(method, "method");
|
||||
return (Intrinsics.areEqual(method, "GET") || Intrinsics.areEqual(method, "HEAD")) ? false : true;
|
||||
}
|
||||
|
||||
public static a0.c S(String name) {
|
||||
CoroutineScope scope = CoroutineScopeKt.CoroutineScope(Dispatchers.getIO().plus(SupervisorKt.SupervisorJob$default((Job) null, 1, (Object) null)));
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
a0.a produceMigrations = a0.a.f2319a;
|
||||
Intrinsics.checkNotNullParameter(produceMigrations, "produceMigrations");
|
||||
Intrinsics.checkNotNullParameter(scope, "scope");
|
||||
return new a0.c(name, produceMigrations, scope);
|
||||
}
|
||||
|
||||
public static TypedValue T(Context context, int i) {
|
||||
TypedValue typedValue = new TypedValue();
|
||||
if (context.getTheme().resolveAttribute(i, typedValue, true)) {
|
||||
return typedValue;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean U(Context context, int i, boolean z3) {
|
||||
TypedValue T3 = T(context, i);
|
||||
return (T3 == null || T3.type != 18) ? z3 : T3.data != 0;
|
||||
}
|
||||
|
||||
public static TypedValue V(Context context, int i, String str) {
|
||||
TypedValue T3 = T(context, i);
|
||||
if (T3 != null) {
|
||||
return T3;
|
||||
}
|
||||
throw new IllegalArgumentException(String.format("%1$s requires a value for the %2$s attribute to be set in your app theme. You can either set the attribute in your theme or update your theme to inherit from Theme.MaterialComponents (or a descendant).", str, context.getResources().getResourceName(i)));
|
||||
}
|
||||
|
||||
public static final List Z(List list) {
|
||||
int size = list.size();
|
||||
return size != 0 ? size != 1 ? Collections.unmodifiableList(new ArrayList(list)) : Collections.singletonList(CollectionsKt.first(list)) : CollectionsKt.emptyList();
|
||||
}
|
||||
|
||||
public static final Map a0(Map map) {
|
||||
int size = map.size();
|
||||
if (size == 0) {
|
||||
return MapsKt.emptyMap();
|
||||
}
|
||||
if (size != 1) {
|
||||
return Collections.unmodifiableMap(new LinkedHashMap(map));
|
||||
}
|
||||
Map.Entry entry = (Map.Entry) CollectionsKt.i(map.entrySet());
|
||||
return Collections.singletonMap(entry.getKey(), entry.getValue());
|
||||
}
|
||||
|
||||
public static C0573e d() {
|
||||
C0573e c0573e = C0573e.f8277l;
|
||||
Intrinsics.checkNotNull(c0573e);
|
||||
C0573e c0573e2 = c0573e.f8279f;
|
||||
if (c0573e2 == null) {
|
||||
long nanoTime = System.nanoTime();
|
||||
C0573e.i.await(C0573e.f8275j, TimeUnit.MILLISECONDS);
|
||||
C0573e c0573e3 = C0573e.f8277l;
|
||||
Intrinsics.checkNotNull(c0573e3);
|
||||
if (c0573e3.f8279f != null || System.nanoTime() - nanoTime < C0573e.f8276k) {
|
||||
return null;
|
||||
}
|
||||
return C0573e.f8277l;
|
||||
}
|
||||
long nanoTime2 = c0573e2.f8280g - System.nanoTime();
|
||||
if (nanoTime2 > 0) {
|
||||
C0573e.i.await(nanoTime2, TimeUnit.NANOSECONDS);
|
||||
return null;
|
||||
}
|
||||
C0573e c0573e4 = C0573e.f8277l;
|
||||
Intrinsics.checkNotNull(c0573e4);
|
||||
c0573e4.f8279f = c0573e2.f8279f;
|
||||
c0573e2.f8279f = null;
|
||||
return c0573e2;
|
||||
}
|
||||
|
||||
public static void g(Throwable throwable) {
|
||||
Intrinsics.checkNotNullParameter(throwable, "throwable");
|
||||
StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
|
||||
Intrinsics.checkNotNullExpressionValue(stackTrace, "getStackTrace(...)");
|
||||
StackTraceElement[] stackTraceElementArr = (StackTraceElement[]) ArraysKt.drop(stackTrace, 3).toArray(new StackTraceElement[0]);
|
||||
Throwable th = new Throwable(throwable.getClass() + ": " + throwable.getMessage(), throwable);
|
||||
th.setStackTrace(stackTraceElementArr);
|
||||
t3.c.f8551a.b(th);
|
||||
}
|
||||
|
||||
public static int h(Context context, String str, String str2, int i, int i4) {
|
||||
int c4;
|
||||
if (context.checkPermission(str, i, i4) != -1) {
|
||||
String d4 = AbstractC0045i.d(str);
|
||||
if (d4 != null) {
|
||||
if (str2 == null) {
|
||||
String[] packagesForUid = context.getPackageManager().getPackagesForUid(i4);
|
||||
if (packagesForUid != null && packagesForUid.length > 0) {
|
||||
str2 = packagesForUid[0];
|
||||
}
|
||||
}
|
||||
int myUid = Process.myUid();
|
||||
String packageName = context.getPackageName();
|
||||
if (myUid == i4 && Objects.equals(packageName, str2)) {
|
||||
AppOpsManager c5 = AbstractC0046j.c(context);
|
||||
c4 = AbstractC0046j.a(c5, d4, Binder.getCallingUid(), str2);
|
||||
if (c4 == 0) {
|
||||
c4 = AbstractC0046j.a(c5, d4, i4, AbstractC0046j.b(context));
|
||||
}
|
||||
} else {
|
||||
c4 = AbstractC0045i.c((AppOpsManager) AbstractC0045i.a(context, AppOpsManager.class), d4, str2);
|
||||
}
|
||||
if (c4 != 0) {
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static int i(Context context, String str) {
|
||||
return h(context, str, context.getPackageName(), Process.myPid(), Process.myUid());
|
||||
}
|
||||
|
||||
public static final Flow l(u uVar, boolean z3, String[] strArr, Callable callable) {
|
||||
return FlowKt.flow(new androidx.room.e(z3, uVar, strArr, callable, null));
|
||||
}
|
||||
|
||||
public static final Object m(u uVar, Callable callable, Continuation continuation) {
|
||||
if (uVar.isOpenInternal() && uVar.inTransaction()) {
|
||||
return callable.call();
|
||||
}
|
||||
if (continuation.getContext().get(A.f3944a) != null) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
Map<String, Object> backingFieldMap = uVar.getBackingFieldMap();
|
||||
Object obj = backingFieldMap.get("TransactionDispatcher");
|
||||
if (obj == null) {
|
||||
obj = ExecutorsKt.from(uVar.getTransactionExecutor());
|
||||
backingFieldMap.put("TransactionDispatcher", obj);
|
||||
}
|
||||
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type kotlinx.coroutines.CoroutineDispatcher");
|
||||
return BuildersKt.withContext((CoroutineDispatcher) obj, new androidx.room.f(callable, null), continuation);
|
||||
}
|
||||
|
||||
public static final AbstractC0544v n(androidx.fragment.app.K fragment) {
|
||||
Dialog dialog;
|
||||
Window window;
|
||||
Intrinsics.checkNotNullParameter(fragment, "<this>");
|
||||
Intrinsics.checkNotNullParameter(fragment, "fragment");
|
||||
for (androidx.fragment.app.K k4 = fragment; k4 != null; k4 = k4.getParentFragment()) {
|
||||
if (k4 instanceof NavHostFragment) {
|
||||
I i = ((NavHostFragment) k4).f3454a;
|
||||
if (i != null) {
|
||||
return i;
|
||||
}
|
||||
throw new NullPointerException("null cannot be cast to non-null type androidx.navigation.NavController");
|
||||
}
|
||||
androidx.fragment.app.K k5 = k4.getParentFragmentManager().f3180z;
|
||||
if (k5 instanceof NavHostFragment) {
|
||||
I i4 = ((NavHostFragment) k5).f3454a;
|
||||
if (i4 != null) {
|
||||
return i4;
|
||||
}
|
||||
throw new NullPointerException("null cannot be cast to non-null type androidx.navigation.NavController");
|
||||
}
|
||||
}
|
||||
View view = fragment.getView();
|
||||
if (view != null) {
|
||||
return AbstractC0106b.g(view);
|
||||
}
|
||||
View view2 = null;
|
||||
DialogInterfaceOnCancelListenerC0174y dialogInterfaceOnCancelListenerC0174y = fragment instanceof DialogInterfaceOnCancelListenerC0174y ? (DialogInterfaceOnCancelListenerC0174y) fragment : null;
|
||||
if (dialogInterfaceOnCancelListenerC0174y != null && (dialog = dialogInterfaceOnCancelListenerC0174y.getDialog()) != null && (window = dialog.getWindow()) != null) {
|
||||
view2 = window.getDecorView();
|
||||
}
|
||||
if (view2 != null) {
|
||||
return AbstractC0106b.g(view2);
|
||||
}
|
||||
throw new IllegalStateException(w.m("Fragment ", fragment, " does not have a NavController set"));
|
||||
}
|
||||
|
||||
public static C0332s o(SSLSession sSLSession) {
|
||||
List emptyList;
|
||||
Intrinsics.checkNotNullParameter(sSLSession, "<this>");
|
||||
String cipherSuite = sSLSession.getCipherSuite();
|
||||
if (cipherSuite == null) {
|
||||
throw new IllegalStateException("cipherSuite == null");
|
||||
}
|
||||
if (Intrinsics.areEqual(cipherSuite, "TLS_NULL_WITH_NULL_NULL") ? true : Intrinsics.areEqual(cipherSuite, "SSL_NULL_WITH_NULL_NULL")) {
|
||||
throw new IOException("cipherSuite == ".concat(cipherSuite));
|
||||
}
|
||||
C0324j c4 = C0324j.f6349b.c(cipherSuite);
|
||||
String protocol = sSLSession.getProtocol();
|
||||
if (protocol == null) {
|
||||
throw new IllegalStateException("tlsVersion == null");
|
||||
}
|
||||
if (Intrinsics.areEqual("NONE", protocol)) {
|
||||
throw new IOException("tlsVersion == NONE");
|
||||
}
|
||||
V p = d.p(protocol);
|
||||
try {
|
||||
Certificate[] peerCertificates = sSLSession.getPeerCertificates();
|
||||
emptyList = peerCertificates != null ? f3.c.k(Arrays.copyOf(peerCertificates, peerCertificates.length)) : CollectionsKt.emptyList();
|
||||
} catch (SSLPeerUnverifiedException unused) {
|
||||
emptyList = CollectionsKt.emptyList();
|
||||
}
|
||||
Certificate[] localCertificates = sSLSession.getLocalCertificates();
|
||||
return new C0332s(p, c4, localCertificates != null ? f3.c.k(Arrays.copyOf(localCertificates, localCertificates.length)) : CollectionsKt.emptyList(), new J0.e(emptyList, 8));
|
||||
}
|
||||
|
||||
public static ColorStateList p(Drawable drawable) {
|
||||
if (drawable instanceof ColorDrawable) {
|
||||
return ColorStateList.valueOf(((ColorDrawable) drawable).getColor());
|
||||
}
|
||||
if (drawable instanceof ColorStateListDrawable) {
|
||||
return ((ColorStateListDrawable) drawable).getColorStateList();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final int q(Cursor c4, String name) {
|
||||
Intrinsics.checkNotNullParameter(c4, "c");
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
int columnIndex = c4.getColumnIndex(name);
|
||||
if (columnIndex >= 0) {
|
||||
return columnIndex;
|
||||
}
|
||||
int columnIndex2 = c4.getColumnIndex("`" + name + '`');
|
||||
if (columnIndex2 >= 0) {
|
||||
return columnIndex2;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static final int r(Cursor c4, String name) {
|
||||
String str;
|
||||
Intrinsics.checkNotNullParameter(c4, "c");
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
int q4 = q(c4, name);
|
||||
if (q4 >= 0) {
|
||||
return q4;
|
||||
}
|
||||
try {
|
||||
String[] columnNames = c4.getColumnNames();
|
||||
Intrinsics.checkNotNullExpressionValue(columnNames, "c.columnNames");
|
||||
str = ArraysKt___ArraysKt.joinToString$default(columnNames, (CharSequence) null, (CharSequence) null, (CharSequence) null, 0, (CharSequence) null, (Function1) null, 63, (Object) null);
|
||||
} catch (Exception e4) {
|
||||
Log.d("RoomCursorUtil", "Cannot collect column names for debug purposes", e4);
|
||||
str = "unknown";
|
||||
}
|
||||
throw new IllegalArgumentException("column '" + name + "' does not exist. Available columns: " + str);
|
||||
}
|
||||
|
||||
public static C0545w w(C0 store) {
|
||||
Intrinsics.checkNotNullParameter(store, "viewModelStore");
|
||||
C0164o0 factory = C0545w.f8071b;
|
||||
C0435a defaultCreationExtras = C0435a.f7312b;
|
||||
Intrinsics.checkNotNullParameter(store, "store");
|
||||
Intrinsics.checkNotNullParameter(factory, "factory");
|
||||
Intrinsics.checkNotNullParameter(defaultCreationExtras, "defaultCreationExtras");
|
||||
R0.h hVar = new R0.h(store, (y0) factory, (l0.c) defaultCreationExtras);
|
||||
Intrinsics.checkNotNullParameter(C0545w.class, "modelClass");
|
||||
KClass modelClass = JvmClassMappingKt.getKotlinClass(C0545w.class);
|
||||
Intrinsics.checkNotNullParameter(modelClass, "modelClass");
|
||||
Intrinsics.checkNotNullParameter(modelClass, "modelClass");
|
||||
Intrinsics.checkNotNullParameter(modelClass, "<this>");
|
||||
String qualifiedName = modelClass.getQualifiedName();
|
||||
if (qualifiedName != null) {
|
||||
return (C0545w) hVar.i(modelClass, "androidx.lifecycle.ViewModelProvider.DefaultKey:".concat(qualifiedName));
|
||||
}
|
||||
throw new IllegalArgumentException("Local and anonymous classes can not be ViewModels");
|
||||
}
|
||||
|
||||
public abstract int A(CoordinatorLayout coordinatorLayout);
|
||||
|
||||
public abstract int B();
|
||||
|
||||
public int C(View view) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int D() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public abstract boolean F();
|
||||
|
||||
public abstract boolean G(float f2);
|
||||
|
||||
public abstract boolean H(View view);
|
||||
|
||||
public abstract boolean I(float f2, float f4);
|
||||
|
||||
public abstract void L(Throwable th);
|
||||
|
||||
public abstract void M(A.j jVar);
|
||||
|
||||
public void N(View view, int i) {
|
||||
}
|
||||
|
||||
public abstract void O(int i);
|
||||
|
||||
public abstract void P(View view, int i, int i4);
|
||||
|
||||
public abstract void Q(View view, float f2, float f4);
|
||||
|
||||
public abstract void W(boolean z3);
|
||||
|
||||
public abstract void X(boolean z3);
|
||||
|
||||
public abstract boolean Y(View view, float f2);
|
||||
|
||||
@Override // O.i0
|
||||
public void b() {
|
||||
}
|
||||
|
||||
public abstract boolean b0(View view, int i);
|
||||
|
||||
@Override // O.i0
|
||||
public void c() {
|
||||
}
|
||||
|
||||
public abstract void c0(ViewGroup.MarginLayoutParams marginLayoutParams, int i);
|
||||
|
||||
public abstract void d0(ViewGroup.MarginLayoutParams marginLayoutParams, int i, int i4);
|
||||
|
||||
public abstract int e(ViewGroup.MarginLayoutParams marginLayoutParams);
|
||||
|
||||
public abstract TransformationMethod e0(TransformationMethod transformationMethod);
|
||||
|
||||
public abstract float f(int i);
|
||||
|
||||
public abstract int j(View view, int i);
|
||||
|
||||
public abstract int k(View view, int i);
|
||||
|
||||
public abstract int s(ViewGroup.MarginLayoutParams marginLayoutParams);
|
||||
|
||||
public abstract int t();
|
||||
|
||||
public abstract InputFilter[] u(InputFilter[] inputFilterArr);
|
||||
|
||||
public abstract int v();
|
||||
|
||||
public abstract int x();
|
||||
|
||||
public abstract int y();
|
||||
|
||||
public abstract int z(View view);
|
||||
}
|
||||
74
apk_decompiled/sources/m3/m.java
Normal file
74
apk_decompiled/sources/m3/m.java
Normal file
@@ -0,0 +1,74 @@
|
||||
package m3;
|
||||
|
||||
import java.security.KeyStore;
|
||||
import java.security.Provider;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.SSLSocket;
|
||||
import javax.net.ssl.TrustManager;
|
||||
import javax.net.ssl.TrustManagerFactory;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import org.openjsse.net.ssl.OpenJSSE;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class m extends n {
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public static final boolean f7827d;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final Provider f7828c = new OpenJSSE();
|
||||
|
||||
static {
|
||||
boolean z3 = false;
|
||||
try {
|
||||
Class.forName("org.openjsse.net.ssl.OpenJSSE", false, l.class.getClassLoader());
|
||||
z3 = true;
|
||||
} catch (ClassNotFoundException unused) {
|
||||
}
|
||||
f7827d = z3;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final void d(SSLSocket sslSocket, String str, List protocols) {
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
super.d(sslSocket, str, protocols);
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final String f(SSLSocket sslSocket) {
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final SSLContext k() {
|
||||
SSLContext sSLContext = SSLContext.getInstance("TLSv1.3", this.f7828c);
|
||||
Intrinsics.checkNotNullExpressionValue(sSLContext, "getInstance(\"TLSv1.3\", provider)");
|
||||
return sSLContext;
|
||||
}
|
||||
|
||||
@Override // m3.n
|
||||
public final X509TrustManager m() {
|
||||
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm(), this.f7828c);
|
||||
trustManagerFactory.init((KeyStore) null);
|
||||
TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
|
||||
Intrinsics.checkNotNull(trustManagers);
|
||||
if (trustManagers.length == 1) {
|
||||
TrustManager trustManager = trustManagers[0];
|
||||
if (trustManager instanceof X509TrustManager) {
|
||||
Intrinsics.checkNotNull(trustManager, "null cannot be cast to non-null type javax.net.ssl.X509TrustManager");
|
||||
return (X509TrustManager) trustManager;
|
||||
}
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("Unexpected default trust managers: ");
|
||||
String arrays = Arrays.toString(trustManagers);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays, "toString(this)");
|
||||
sb.append(arrays);
|
||||
throw new IllegalStateException(sb.toString().toString());
|
||||
}
|
||||
}
|
||||
176
apk_decompiled/sources/m3/n.java
Normal file
176
apk_decompiled/sources/m3/n.java
Normal file
@@ -0,0 +1,176 @@
|
||||
package m3;
|
||||
|
||||
import C.w;
|
||||
import a.AbstractC0105a;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.Socket;
|
||||
import java.security.GeneralSecurityException;
|
||||
import java.security.KeyStore;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.SSLSocket;
|
||||
import javax.net.ssl.SSLSocketFactory;
|
||||
import javax.net.ssl.TrustManager;
|
||||
import javax.net.ssl.TrustManagerFactory;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class n {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static volatile n f7829a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public static final Logger f7830b;
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:39:0x0091, code lost:
|
||||
|
||||
if (r0 != 0) goto L68;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:46:0x00b2, code lost:
|
||||
|
||||
if (r0 != 0) goto L68;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:53:0x00d3, code lost:
|
||||
|
||||
if (r0 != 0) goto L68;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:63:0x00fb, code lost:
|
||||
|
||||
if (java.lang.Integer.parseInt(r2) >= 9) goto L65;
|
||||
*/
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:71:0x0158 */
|
||||
/* JADX WARN: Type inference failed for: r0v14 */
|
||||
/* JADX WARN: Type inference failed for: r0v15 */
|
||||
/* JADX WARN: Type inference failed for: r0v17, types: [java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r0v26 */
|
||||
/* JADX WARN: Type inference failed for: r0v27 */
|
||||
/* JADX WARN: Type inference failed for: r0v30 */
|
||||
/* JADX WARN: Type inference failed for: r0v31 */
|
||||
/* JADX WARN: Type inference failed for: r0v34 */
|
||||
/* JADX WARN: Type inference failed for: r0v35 */
|
||||
/* JADX WARN: Type inference failed for: r0v37, types: [m3.n] */
|
||||
/* JADX WARN: Type inference failed for: r0v41 */
|
||||
/* JADX WARN: Type inference failed for: r0v46 */
|
||||
/* JADX WARN: Type inference failed for: r0v47 */
|
||||
/* JADX WARN: Type inference failed for: r0v50 */
|
||||
/* JADX WARN: Type inference failed for: r0v51 */
|
||||
/* JADX WARN: Type inference failed for: r0v52 */
|
||||
/* JADX WARN: Type inference failed for: r0v53 */
|
||||
/* JADX WARN: Type inference failed for: r0v54 */
|
||||
static {
|
||||
/*
|
||||
Method dump skipped, instructions count: 364
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: m3.n.<clinit>():void");
|
||||
}
|
||||
|
||||
public static void i(int i, String message, Throwable th) {
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
f7830b.log(i == 5 ? Level.WARNING : Level.INFO, message, th);
|
||||
}
|
||||
|
||||
public void a(SSLSocket sslSocket) {
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
}
|
||||
|
||||
public AbstractC0105a b(X509TrustManager trustManager) {
|
||||
Intrinsics.checkNotNullParameter(trustManager, "trustManager");
|
||||
return new q3.a(c(trustManager));
|
||||
}
|
||||
|
||||
public q3.d c(X509TrustManager trustManager) {
|
||||
Intrinsics.checkNotNullParameter(trustManager, "trustManager");
|
||||
X509Certificate[] acceptedIssuers = trustManager.getAcceptedIssuers();
|
||||
Intrinsics.checkNotNullExpressionValue(acceptedIssuers, "trustManager.acceptedIssuers");
|
||||
return new q3.b((X509Certificate[]) Arrays.copyOf(acceptedIssuers, acceptedIssuers.length));
|
||||
}
|
||||
|
||||
public void d(SSLSocket sslSocket, String str, List protocols) {
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
||||
}
|
||||
|
||||
public void e(Socket socket, InetSocketAddress address, int i) {
|
||||
Intrinsics.checkNotNullParameter(socket, "socket");
|
||||
Intrinsics.checkNotNullParameter(address, "address");
|
||||
socket.connect(address, i);
|
||||
}
|
||||
|
||||
public String f(SSLSocket sslSocket) {
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
return null;
|
||||
}
|
||||
|
||||
public Object g() {
|
||||
Intrinsics.checkNotNullParameter("response.body().close()", "closer");
|
||||
if (f7830b.isLoggable(Level.FINE)) {
|
||||
return new Throwable("response.body().close()");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean h(String hostname) {
|
||||
Intrinsics.checkNotNullParameter(hostname, "hostname");
|
||||
return true;
|
||||
}
|
||||
|
||||
public void j(Object obj, String message) {
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
if (obj == null) {
|
||||
message = w.n(message, " To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);");
|
||||
}
|
||||
i(5, message, (Throwable) obj);
|
||||
}
|
||||
|
||||
public SSLContext k() {
|
||||
SSLContext sSLContext = SSLContext.getInstance("TLS");
|
||||
Intrinsics.checkNotNullExpressionValue(sSLContext, "getInstance(\"TLS\")");
|
||||
return sSLContext;
|
||||
}
|
||||
|
||||
public SSLSocketFactory l(X509TrustManager trustManager) {
|
||||
Intrinsics.checkNotNullParameter(trustManager, "trustManager");
|
||||
try {
|
||||
SSLContext k4 = k();
|
||||
k4.init(null, new TrustManager[]{trustManager}, null);
|
||||
SSLSocketFactory socketFactory = k4.getSocketFactory();
|
||||
Intrinsics.checkNotNullExpressionValue(socketFactory, "newSSLContext().apply {\n…ll)\n }.socketFactory");
|
||||
return socketFactory;
|
||||
} catch (GeneralSecurityException e4) {
|
||||
throw new AssertionError("No System TLS: " + e4, e4);
|
||||
}
|
||||
}
|
||||
|
||||
public X509TrustManager m() {
|
||||
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
|
||||
trustManagerFactory.init((KeyStore) null);
|
||||
TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
|
||||
Intrinsics.checkNotNull(trustManagers);
|
||||
if (trustManagers.length == 1) {
|
||||
TrustManager trustManager = trustManagers[0];
|
||||
if (trustManager instanceof X509TrustManager) {
|
||||
Intrinsics.checkNotNull(trustManager, "null cannot be cast to non-null type javax.net.ssl.X509TrustManager");
|
||||
return (X509TrustManager) trustManager;
|
||||
}
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("Unexpected default trust managers: ");
|
||||
String arrays = Arrays.toString(trustManagers);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays, "toString(this)");
|
||||
sb.append(arrays);
|
||||
throw new IllegalStateException(sb.toString().toString());
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
String simpleName = getClass().getSimpleName();
|
||||
Intrinsics.checkNotNullExpressionValue(simpleName, "javaClass.simpleName");
|
||||
return simpleName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user