apkfuckery/com.discord/smali/okhttp3/internal/h/a.smali
2019-02-27 01:16:35 +01:00

1021 lines
25 KiB
Smali

.class final Lokhttp3/internal/h/a;
.super Lokhttp3/internal/h/e;
.source "AndroidPlatform.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/internal/h/a$c;,
Lokhttp3/internal/h/a$b;,
Lokhttp3/internal/h/a$a;
}
.end annotation
# instance fields
.field private final bsf:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.end field
.field private final bsg:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.end field
.field private final bsh:Ljava/lang/reflect/Method;
.field private final bsi:Ljava/lang/reflect/Method;
.field private final bsj:Ljava/lang/reflect/Method;
.field private final bsk:Ljava/lang/reflect/Method;
.field private final bsl:Lokhttp3/internal/h/a$b;
# direct methods
.method private constructor <init>(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;",
"Ljava/lang/Class<",
"*>;",
"Ljava/lang/reflect/Method;",
"Ljava/lang/reflect/Method;",
"Ljava/lang/reflect/Method;",
"Ljava/lang/reflect/Method;",
")V"
}
.end annotation
invoke-direct {p0}, Lokhttp3/internal/h/e;-><init>()V
invoke-static {}, Lokhttp3/internal/h/a$b;->BS()Lokhttp3/internal/h/a$b;
move-result-object v0
iput-object v0, p0, Lokhttp3/internal/h/a;->bsl:Lokhttp3/internal/h/a$b;
iput-object p1, p0, Lokhttp3/internal/h/a;->bsf:Ljava/lang/Class;
iput-object p2, p0, Lokhttp3/internal/h/a;->bsg:Ljava/lang/Class;
iput-object p3, p0, Lokhttp3/internal/h/a;->bsh:Ljava/lang/reflect/Method;
iput-object p4, p0, Lokhttp3/internal/h/a;->bsi:Ljava/lang/reflect/Method;
iput-object p5, p0, Lokhttp3/internal/h/a;->bsj:Ljava/lang/reflect/Method;
iput-object p6, p0, Lokhttp3/internal/h/a;->bsk:Ljava/lang/reflect/Method;
return-void
.end method
.method public static BQ()Lokhttp3/internal/h/e;
.locals 9
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
:try_start_0
const-string v0, "com.android.org.conscrypt.SSLParametersImpl"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v2
const-string v0, "com.android.org.conscrypt.OpenSSLSocketImpl"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v3
:try_end_0
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-lt v0, v1, :cond_0
:try_start_1
const-string v0, "setUseSessionTickets"
const/4 v1, 0x1
new-array v4, v1, [Ljava/lang/Class;
sget-object v5, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
const/4 v6, 0x0
aput-object v5, v4, v6
invoke-virtual {v3, v0, v4}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v4
const-string v0, "setHostname"
new-array v5, v1, [Ljava/lang/Class;
const-class v7, Ljava/lang/String;
aput-object v7, v5, v6
invoke-virtual {v3, v0, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v5
const-string v0, "getAlpnSelectedProtocol"
new-array v7, v6, [Ljava/lang/Class;
invoke-virtual {v3, v0, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
const-string v7, "setAlpnProtocols"
new-array v1, v1, [Ljava/lang/Class;
const-class v8, [B
aput-object v8, v1, v6
invoke-virtual {v3, v7, v1}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v7
new-instance v8, Lokhttp3/internal/h/a;
move-object v1, v8
move-object v6, v0
invoke-direct/range {v1 .. v7}, Lokhttp3/internal/h/a;-><init>(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)V
:try_end_1
.catch Ljava/lang/NoSuchMethodException; {:try_start_1 .. :try_end_1} :catch_0
return-object v8
:catch_0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Expected Android API level 21+ but was "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:catch_1
const/4 v0, 0x0
return-object v0
.end method
.method private a(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Class<",
"*>;",
"Ljava/lang/Object;",
")Z"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/reflect/InvocationTargetException;,
Ljava/lang/IllegalAccessException;
}
.end annotation
:try_start_0
const-string v0, "isCleartextTrafficPermitted"
const/4 v1, 0x1
new-array v2, v1, [Ljava/lang/Class;
const-class v3, Ljava/lang/String;
const/4 v4, 0x0
aput-object v3, v2, v4
invoke-virtual {p2, v0, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
new-array v1, v1, [Ljava/lang/Object;
aput-object p1, v1, v4
invoke-virtual {v0, p3, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result p1
:try_end_0
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
return p1
:catch_0
invoke-direct {p0, p1, p2, p3}, Lokhttp3/internal/h/a;->b(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method private b(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Class<",
"*>;",
"Ljava/lang/Object;",
")Z"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/reflect/InvocationTargetException;,
Ljava/lang/IllegalAccessException;
}
.end annotation
:try_start_0
const-string v0, "isCleartextTrafficPermitted"
const/4 v1, 0x0
new-array v2, v1, [Ljava/lang/Class;
invoke-virtual {p2, v0, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object p2
new-array v0, v1, [Ljava/lang/Object;
invoke-virtual {p2, p3, v0}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/lang/Boolean;
invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z
move-result p1
:try_end_0
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
return p1
:catch_0
invoke-super {p0, p1}, Lokhttp3/internal/h/e;->isCleartextTrafficPermitted(Ljava/lang/String;)Z
move-result p1
return p1
.end method
# virtual methods
.method public final BR()Ljavax/net/ssl/SSLContext;
.locals 3
const/4 v0, 0x1
:try_start_0
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x10
if-lt v1, v2, :cond_0
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
:try_end_0
.catch Ljava/lang/NoClassDefFoundError; {:try_start_0 .. :try_end_0} :catch_0
const/16 v2, 0x16
if-ge v1, v2, :cond_0
goto :goto_0
:cond_0
const/4 v0, 0x0
:catch_0
:goto_0
if-eqz v0, :cond_1
:try_start_1
const-string v0, "TLSv1.2"
invoke-static {v0}, Ljavax/net/ssl/SSLContext;->getInstance(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;
move-result-object v0
:try_end_1
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_1 .. :try_end_1} :catch_1
return-object v0
:catch_1
:cond_1
:try_start_2
const-string v0, "TLS"
invoke-static {v0}, Ljavax/net/ssl/SSLContext;->getInstance(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;
move-result-object v0
:try_end_2
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_2 .. :try_end_2} :catch_2
return-object v0
:catch_2
move-exception v0
new-instance v1, Ljava/lang/IllegalStateException;
const-string v2, "No TLS provider"
invoke-direct {v1, v2, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
.method public final a(ILjava/lang/String;Ljava/lang/Throwable;)V
.locals 5
.param p3 # Ljava/lang/Throwable;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
const/4 v0, 0x5
if-ne p1, v0, :cond_0
goto :goto_0
:cond_0
const/4 v0, 0x3
:goto_0
const/16 p1, 0xa
if-eqz p3, :cond_1
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-static {p3}, Landroid/util/Log;->getStackTraceString(Ljava/lang/Throwable;)Ljava/lang/String;
move-result-object p2
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
:cond_1
const/4 p3, 0x0
invoke-virtual {p2}, Ljava/lang/String;->length()I
move-result v1
:goto_1
if-ge p3, v1, :cond_4
invoke-virtual {p2, p1, p3}, Ljava/lang/String;->indexOf(II)I
move-result v2
const/4 v3, -0x1
if-eq v2, v3, :cond_2
goto :goto_2
:cond_2
move v2, v1
:goto_2
add-int/lit16 v3, p3, 0xfa0
invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I
move-result v3
const-string v4, "OkHttp"
invoke-virtual {p2, p3, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p3
invoke-static {v0, v4, p3}, Landroid/util/Log;->println(ILjava/lang/String;Ljava/lang/String;)I
if-lt v3, v2, :cond_3
add-int/lit8 p3, v3, 0x1
goto :goto_1
:cond_3
move p3, v3
goto :goto_2
:cond_4
return-void
.end method
.method public final a(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:try_start_0
invoke-virtual {p1, p2, p3}, Ljava/net/Socket;->connect(Ljava/net/SocketAddress;I)V
:try_end_0
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
sget p2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 p3, 0x1a
if-ne p2, p3, :cond_0
new-instance p2, Ljava/io/IOException;
const-string p3, "Exception in connect"
invoke-direct {p2, p3, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p2
:cond_0
throw p1
:catch_1
move-exception p1
invoke-static {p1}, Lokhttp3/internal/c;->a(Ljava/lang/AssertionError;)Z
move-result p2
if-eqz p2, :cond_1
new-instance p2, Ljava/io/IOException;
invoke-direct {p2, p1}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
throw p2
:cond_1
throw p1
.end method
.method public final a(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljavax/net/ssl/SSLSocket;",
"Ljava/lang/String;",
"Ljava/util/List<",
"Lokhttp3/u;",
">;)V"
}
.end annotation
iget-object v0, p0, Lokhttp3/internal/h/a;->bsg:Ljava/lang/Class;
invoke-virtual {v0, p1}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_0
return-void
:cond_0
const/4 v0, 0x0
const/4 v1, 0x1
if-eqz p2, :cond_1
:try_start_0
iget-object v2, p0, Lokhttp3/internal/h/a;->bsh:Ljava/lang/reflect/Method;
new-array v3, v1, [Ljava/lang/Object;
sget-object v4, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
aput-object v4, v3, v0
invoke-virtual {v2, p1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
iget-object v2, p0, Lokhttp3/internal/h/a;->bsi:Ljava/lang/reflect/Method;
new-array v3, v1, [Ljava/lang/Object;
aput-object p2, v3, v0
invoke-virtual {v2, p1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:cond_1
iget-object p2, p0, Lokhttp3/internal/h/a;->bsk:Ljava/lang/reflect/Method;
new-array v1, v1, [Ljava/lang/Object;
new-instance v2, Lokio/c;
invoke-direct {v2}, Lokio/c;-><init>()V
invoke-interface {p3}, Ljava/util/List;->size()I
move-result v3
const/4 v4, 0x0
:goto_0
if-ge v4, v3, :cond_3
invoke-interface {p3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lokhttp3/u;
sget-object v6, Lokhttp3/u;->bnm:Lokhttp3/u;
if-eq v5, v6, :cond_2
invoke-virtual {v5}, Lokhttp3/u;->toString()Ljava/lang/String;
move-result-object v6
invoke-virtual {v6}, Ljava/lang/String;->length()I
move-result v6
invoke-virtual {v2, v6}, Lokio/c;->dk(I)Lokio/c;
invoke-virtual {v5}, Lokhttp3/u;->toString()Ljava/lang/String;
move-result-object v5
invoke-virtual {v2, v5}, Lokio/c;->ek(Ljava/lang/String;)Lokio/c;
:cond_2
add-int/lit8 v4, v4, 0x1
goto :goto_0
:cond_3
invoke-virtual {v2}, Lokio/c;->readByteArray()[B
move-result-object p3
aput-object p3, v1, v0
invoke-virtual {p2, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
goto :goto_1
:catch_1
move-exception p1
:goto_1
new-instance p2, Ljava/lang/AssertionError;
invoke-direct {p2, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw p2
return-void
.end method
.method protected final b(Ljavax/net/ssl/SSLSocketFactory;)Ljavax/net/ssl/X509TrustManager;
.locals 3
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
iget-object v0, p0, Lokhttp3/internal/h/a;->bsf:Ljava/lang/Class;
const-string v1, "sslParameters"
invoke-static {p1, v0, v1}, Lokhttp3/internal/h/a;->a(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
if-nez v0, :cond_0
:try_start_0
const-string v0, "com.google.android.gms.org.conscrypt.SSLParametersImpl"
const/4 v1, 0x0
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v2
invoke-static {v0, v1, v2}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
move-result-object v0
const-string v1, "sslParameters"
invoke-static {p1, v0, v1}, Lokhttp3/internal/h/a;->a(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
:try_end_0
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
invoke-super {p0, p1}, Lokhttp3/internal/h/e;->b(Ljavax/net/ssl/SSLSocketFactory;)Ljavax/net/ssl/X509TrustManager;
move-result-object p1
return-object p1
:cond_0
:goto_0
const-class p1, Ljavax/net/ssl/X509TrustManager;
const-string v1, "x509TrustManager"
invoke-static {v0, p1, v1}, Lokhttp3/internal/h/a;->a(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljavax/net/ssl/X509TrustManager;
if-eqz p1, :cond_1
return-object p1
:cond_1
const-class p1, Ljavax/net/ssl/X509TrustManager;
const-string v1, "trustManager"
invoke-static {v0, p1, v1}, Lokhttp3/internal/h/a;->a(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljavax/net/ssl/X509TrustManager;
return-object p1
.end method
.method public final b(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/j/c;
.locals 7
:try_start_0
const-string v0, "android.net.http.X509TrustManagerExtensions"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
const/4 v1, 0x1
new-array v2, v1, [Ljava/lang/Class;
const-class v3, Ljavax/net/ssl/X509TrustManager;
const/4 v4, 0x0
aput-object v3, v2, v4
invoke-virtual {v0, v2}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
move-result-object v2
new-array v3, v1, [Ljava/lang/Object;
aput-object p1, v3, v4
invoke-virtual {v2, v3}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
const-string v3, "checkServerTrusted"
const/4 v5, 0x3
new-array v5, v5, [Ljava/lang/Class;
const-class v6, [Ljava/security/cert/X509Certificate;
aput-object v6, v5, v4
const-class v4, Ljava/lang/String;
aput-object v4, v5, v1
const/4 v1, 0x2
const-class v4, Ljava/lang/String;
aput-object v4, v5, v1
invoke-virtual {v0, v3, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
new-instance v1, Lokhttp3/internal/h/a$a;
invoke-direct {v1, v2, v0}, Lokhttp3/internal/h/a$a;-><init>(Ljava/lang/Object;Ljava/lang/reflect/Method;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object v1
:catch_0
invoke-super {p0, p1}, Lokhttp3/internal/h/e;->b(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/j/c;
move-result-object p1
return-object p1
.end method
.method public final c(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/j/e;
.locals 6
:try_start_0
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
const-string v1, "findTrustAnchorByIssuerAndSignature"
const/4 v2, 0x1
new-array v3, v2, [Ljava/lang/Class;
const/4 v4, 0x0
const-class v5, Ljava/security/cert/X509Certificate;
aput-object v5, v3, v4
invoke-virtual {v0, v1, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
invoke-virtual {v0, v2}, Ljava/lang/reflect/Method;->setAccessible(Z)V
new-instance v1, Lokhttp3/internal/h/a$c;
invoke-direct {v1, p1, v0}, Lokhttp3/internal/h/a$c;-><init>(Ljavax/net/ssl/X509TrustManager;Ljava/lang/reflect/Method;)V
:try_end_0
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
return-object v1
:catch_0
invoke-super {p0, p1}, Lokhttp3/internal/h/e;->c(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/j/e;
move-result-object p1
return-object p1
.end method
.method public final e(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
.locals 3
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
iget-object v0, p0, Lokhttp3/internal/h/a;->bsg:Ljava/lang/Class;
invoke-virtual {v0, p1}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
return-object v1
:cond_0
:try_start_0
iget-object v0, p0, Lokhttp3/internal/h/a;->bsj:Ljava/lang/reflect/Method;
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
invoke-virtual {v0, p1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, [B
if-eqz p1, :cond_1
new-instance v0, Ljava/lang/String;
sget-object v1, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-direct {v0, p1, v1}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
:try_end_0
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:cond_1
return-object v1
:catch_0
move-exception p1
goto :goto_0
:catch_1
move-exception p1
:goto_0
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw v0
.end method
.method public final ef(Ljava/lang/String;)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lokhttp3/internal/h/a;->bsl:Lokhttp3/internal/h/a$b;
invoke-virtual {v0, p1}, Lokhttp3/internal/h/a$b;->eg(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final isCleartextTrafficPermitted(Ljava/lang/String;)Z
.locals 4
:try_start_0
const-string v0, "android.security.NetworkSecurityPolicy"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
const-string v1, "getInstance"
const/4 v2, 0x0
new-array v3, v2, [Ljava/lang/Class;
invoke-virtual {v0, v1, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
const/4 v3, 0x0
new-array v2, v2, [Ljava/lang/Object;
invoke-virtual {v1, v3, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
invoke-direct {p0, p1, v0, v1}, Lokhttp3/internal/h/a;->a(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z
move-result p1
:try_end_0
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_3
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_3
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_2
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
return p1
:catch_0
move-exception p1
goto :goto_0
:catch_1
move-exception p1
goto :goto_0
:catch_2
move-exception p1
:goto_0
new-instance v0, Ljava/lang/AssertionError;
const-string v1, "unable to determine cleartext support"
invoke-direct {v0, v1, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
:catch_3
invoke-super {p0, p1}, Lokhttp3/internal/h/e;->isCleartextTrafficPermitted(Ljava/lang/String;)Z
move-result p1
return p1
.end method
.method public final s(Ljava/lang/String;Ljava/lang/Object;)V
.locals 1
iget-object v0, p0, Lokhttp3/internal/h/a;->bsl:Lokhttp3/internal/h/a$b;
invoke-virtual {v0, p2}, Lokhttp3/internal/h/a$b;->bs(Ljava/lang/Object;)Z
move-result p2
if-nez p2, :cond_0
const/4 p2, 0x5
const/4 v0, 0x0
invoke-virtual {p0, p2, p1, v0}, Lokhttp3/internal/h/a;->a(ILjava/lang/String;Ljava/lang/Throwable;)V
:cond_0
return-void
.end method