839 lines
20 KiB
Smali
839 lines
20 KiB
Smali
.class public final Lokhttp3/internal/g/a;
|
|
.super Lokhttp3/internal/g/f;
|
|
.source "AndroidPlatform.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/internal/g/a$a;,
|
|
Lokhttp3/internal/g/a$c;,
|
|
Lokhttp3/internal/g/a$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final bzn:Z
|
|
|
|
.field public static final bzo:Lokhttp3/internal/g/a$b;
|
|
|
|
|
|
# instance fields
|
|
.field private final bzl:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/internal/g/a/e;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final bzm:Lokhttp3/internal/g/a/b;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 4
|
|
|
|
new-instance v0, Lokhttp3/internal/g/a$b;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lokhttp3/internal/g/a$b;-><init>(B)V
|
|
|
|
sput-object v0, Lokhttp3/internal/g/a;->bzo:Lokhttp3/internal/g/a$b;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:try_start_0
|
|
const-string v2, "com.android.org.conscrypt.OpenSSLSocketImpl"
|
|
|
|
invoke-static {v2}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v3, 0x15
|
|
|
|
if-lt v2, v3, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Expected Android API level 21+ but was "
|
|
|
|
invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v2, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v2, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v2, Ljava/lang/Throwable;
|
|
|
|
throw v2
|
|
:try_end_0
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
sput-boolean v0, Lokhttp3/internal/g/a;->bzn:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 4
|
|
|
|
invoke-direct {p0}, Lokhttp3/internal/g/f;-><init>()V
|
|
|
|
const/4 v0, 0x3
|
|
|
|
new-array v0, v0, [Lokhttp3/internal/g/a/e;
|
|
|
|
sget-object v1, Lokhttp3/internal/g/a/f;->bzX:Lokhttp3/internal/g/a/f$a;
|
|
|
|
const-string v1, "com.android.org.conscrypt"
|
|
|
|
invoke-static {v1}, Lokhttp3/internal/g/a/f$a;->ep(Ljava/lang/String;)Lokhttp3/internal/g/a/e;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sget-object v1, Lokhttp3/internal/g/a/c;->bzS:Lokhttp3/internal/g/a/c;
|
|
|
|
invoke-static {}, Lokhttp3/internal/g/a/c;->HT()Lokhttp3/internal/g/a/e;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
new-instance v1, Lokhttp3/internal/g/a/d;
|
|
|
|
const-string v2, "com.google.android.gms.org.conscrypt"
|
|
|
|
invoke-direct {v1, v2}, Lokhttp3/internal/g/a/d;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v1, Lokhttp3/internal/g/a/e;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
invoke-static {v0}, Lkotlin/a/m;->listOfNotNull([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Iterable;
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
check-cast v1, Ljava/util/Collection;
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
move-object v3, v2
|
|
|
|
check-cast v3, Lokhttp3/internal/g/a/e;
|
|
|
|
invoke-interface {v3}, Lokhttp3/internal/g/a/e;->HR()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
iput-object v1, p0, Lokhttp3/internal/g/a;->bzl:Ljava/util/List;
|
|
|
|
sget-object v0, Lokhttp3/internal/g/a/b;->bzR:Lokhttp3/internal/g/a/b$a;
|
|
|
|
invoke-static {}, Lokhttp3/internal/g/a/b$a;->HS()Lokhttp3/internal/g/a/b;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/g/a;->bzm:Lokhttp3/internal/g/a/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic HJ()Z
|
|
.locals 1
|
|
|
|
sget-boolean v0, Lokhttp3/internal/g/a;->bzn:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private final 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
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
check-cast v0, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Lkotlin/r;
|
|
|
|
const-string v1, "null cannot be cast to non-null type kotlin.Boolean"
|
|
|
|
invoke-direct {v0, v1}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
:try_end_0
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
invoke-direct {p0, p1, p2, p3}, Lokhttp3/internal/g/a;->b(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method private final 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
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
check-cast p2, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p2, Lkotlin/r;
|
|
|
|
const-string p3, "null cannot be cast to non-null type kotlin.Boolean"
|
|
|
|
invoke-direct {p2, p3}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p2
|
|
:try_end_0
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
invoke-super {p0, p1}, Lokhttp3/internal/g/f;->en(Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(ILjava/lang/String;Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
|
|
const-string v0, "message"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p1, p2, p3}, Lokhttp3/internal/g/a/g;->b(ILjava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "socket"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "address"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:try_start_0
|
|
check-cast p2, Ljava/net/SocketAddress;
|
|
|
|
invoke-virtual {p1, p2, p3}, Ljava/net/Socket;->connect(Ljava/net/SocketAddress;I)V
|
|
:try_end_0
|
|
.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;
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
const-string p3, "Exception in connect"
|
|
|
|
invoke-direct {p2, p3, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
check-cast p2, Ljava/lang/Throwable;
|
|
|
|
throw p2
|
|
|
|
:cond_0
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final a(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljavax/net/ssl/SSLSocket;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lokhttp3/x;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "sslSocket"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "protocols"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/g/a;->bzl:Ljava/util/List;
|
|
|
|
check-cast v0, Ljava/lang/Iterable;
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
move-object v2, v1
|
|
|
|
check-cast v2, Lokhttp3/internal/g/a/e;
|
|
|
|
invoke-interface {v2, p1}, Lokhttp3/internal/g/a/e;->g(Ljavax/net/ssl/SSLSocket;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
check-cast v1, Lokhttp3/internal/g/a/e;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {v1, p1, p2, p3}, Lokhttp3/internal/g/a/e;->a(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/c;
|
|
.locals 7
|
|
|
|
const-string v0, "checkServerTrusted"
|
|
|
|
const-string v1, "trustManager"
|
|
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:try_start_0
|
|
const-string v1, "android.net.http.X509TrustManagerExtensions"
|
|
|
|
invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v3, v2, [Ljava/lang/Class;
|
|
|
|
const-class v4, Ljavax/net/ssl/X509TrustManager;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aput-object v4, v3, v5
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
|
|
|
|
move-result-object v3
|
|
|
|
new-array v4, v2, [Ljava/lang/Object;
|
|
|
|
aput-object p1, v4, v5
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x3
|
|
|
|
new-array v4, v4, [Ljava/lang/Class;
|
|
|
|
const-class v6, [Ljava/security/cert/X509Certificate;
|
|
|
|
aput-object v6, v4, v5
|
|
|
|
const-class v5, Ljava/lang/String;
|
|
|
|
aput-object v5, v4, v2
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const-class v5, Ljava/lang/String;
|
|
|
|
aput-object v5, v4, v2
|
|
|
|
invoke-virtual {v1, v0, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lokhttp3/internal/g/a$a;
|
|
|
|
const-string v4, "extensions"
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v1, v0}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {v2, v3, v1}, Lokhttp3/internal/g/a$a;-><init>(Ljava/lang/Object;Ljava/lang/reflect/Method;)V
|
|
|
|
check-cast v2, Lokhttp3/internal/i/c;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
invoke-super {p0, p1}, Lokhttp3/internal/g/f;->b(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/c;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_0
|
|
return-object v2
|
|
.end method
|
|
|
|
.method public final c(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/e;
|
|
.locals 6
|
|
|
|
const-string v0, "trustManager"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
: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
|
|
|
|
const-string v1, "method"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/reflect/Method;->setAccessible(Z)V
|
|
|
|
new-instance v1, Lokhttp3/internal/g/a$c;
|
|
|
|
invoke-direct {v1, p1, v0}, Lokhttp3/internal/g/a$c;-><init>(Ljavax/net/ssl/X509TrustManager;Ljava/lang/reflect/Method;)V
|
|
|
|
check-cast v1, Lokhttp3/internal/i/e;
|
|
:try_end_0
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
invoke-super {p0, p1}, Lokhttp3/internal/g/f;->c(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/e;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final e(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
|
|
.locals 4
|
|
|
|
const-string v0, "sslSocket"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/g/a;->bzl:Ljava/util/List;
|
|
|
|
check-cast v0, Ljava/lang/Iterable;
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
move-object v3, v1
|
|
|
|
check-cast v3, Lokhttp3/internal/g/a/e;
|
|
|
|
invoke-interface {v3, p1}, Lokhttp3/internal/g/a/e;->g(Ljavax/net/ssl/SSLSocket;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v1, v2
|
|
|
|
:goto_0
|
|
check-cast v1, Lokhttp3/internal/g/a/e;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {v1, p1}, Lokhttp3/internal/g/a/e;->e(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_2
|
|
return-object v2
|
|
.end method
|
|
|
|
.method public final em(Ljava/lang/String;)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
const-string v0, "closer"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/g/a;->bzm:Lokhttp3/internal/g/a/b;
|
|
|
|
invoke-virtual {v0, p1}, Lokhttp3/internal/g/a/b;->eo(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final en(Ljava/lang/String;)Z
|
|
.locals 5
|
|
|
|
const-string v0, "unable to determine cleartext support"
|
|
|
|
const-string v1, "hostname"
|
|
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:try_start_0
|
|
const-string v1, "android.security.NetworkSecurityPolicy"
|
|
|
|
invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "getInstance"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
new-array v4, v3, [Ljava/lang/Class;
|
|
|
|
invoke-virtual {v1, v2, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v2, v4, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "networkPolicyClass"
|
|
|
|
invoke-static {v1, v3}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v3, "networkSecurityPolicy"
|
|
|
|
invoke-static {v2, v3}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0, p1, v1, v2}, Lokhttp3/internal/g/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_4
|
|
.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
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
new-instance v1, Ljava/lang/AssertionError;
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
invoke-direct {v1, v0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
throw v1
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
new-instance v1, Ljava/lang/AssertionError;
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
invoke-direct {v1, v0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
throw v1
|
|
|
|
:catch_2
|
|
move-exception p1
|
|
|
|
new-instance v1, Ljava/lang/AssertionError;
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
invoke-direct {v1, v0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
throw v1
|
|
|
|
:catch_3
|
|
invoke-super {p0, p1}, Lokhttp3/internal/g/f;->en(Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_4
|
|
invoke-super {p0, p1}, Lokhttp3/internal/g/f;->en(Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public final u(Ljava/lang/String;Ljava/lang/Object;)V
|
|
.locals 1
|
|
|
|
const-string v0, "message"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/g/a;->bzm:Lokhttp3/internal/g/a/b;
|
|
|
|
invoke-virtual {v0, p2}, Lokhttp3/internal/g/a/b;->bj(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/g/a;->a(ILjava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|