2019-02-27 21:13:14 +00:00
|
|
|
.class final Lokhttp3/internal/g/a;
|
|
|
|
.super Lokhttp3/internal/g/f;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "AndroidPlatform.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
2019-02-27 21:13:14 +00:00
|
|
|
Lokhttp3/internal/g/a$b;,
|
|
|
|
Lokhttp3/internal/g/a$c;,
|
|
|
|
Lokhttp3/internal/g/a$a;
|
2019-02-04 20:08:30 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-03-14 20:04:00 +00:00
|
|
|
.field private final bsS:Ljava/lang/Class;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2019-02-21 02:16:48 +00:00
|
|
|
"Ljava/lang/Class<",
|
|
|
|
"*>;"
|
2019-02-04 20:08:30 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
.field private final bsT:Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2019-02-27 21:13:14 +00:00
|
|
|
"Lokhttp3/internal/g/e<",
|
|
|
|
"Ljava/net/Socket;",
|
|
|
|
">;"
|
2019-02-04 20:08:30 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
.field private final bsU:Lokhttp3/internal/g/e;
|
2019-02-27 21:13:14 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lokhttp3/internal/g/e<",
|
|
|
|
"Ljava/net/Socket;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
.field private final bsV:Lokhttp3/internal/g/e;
|
2019-02-27 21:13:14 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lokhttp3/internal/g/e<",
|
|
|
|
"Ljava/net/Socket;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
2019-02-27 00:16:35 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
.field private final bsW:Lokhttp3/internal/g/e;
|
2019-02-27 21:13:14 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lokhttp3/internal/g/e<",
|
|
|
|
"Ljava/net/Socket;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
.field private final bsX:Lokhttp3/internal/g/a$c;
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# direct methods
|
2019-02-27 21:13:14 +00:00
|
|
|
.method private constructor <init>(Ljava/lang/Class;Lokhttp3/internal/g/e;Lokhttp3/internal/g/e;Lokhttp3/internal/g/e;Lokhttp3/internal/g/e;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/Class<",
|
|
|
|
"*>;",
|
2019-02-27 21:13:14 +00:00
|
|
|
"Lokhttp3/internal/g/e<",
|
|
|
|
"Ljava/net/Socket;",
|
|
|
|
">;",
|
|
|
|
"Lokhttp3/internal/g/e<",
|
|
|
|
"Ljava/net/Socket;",
|
|
|
|
">;",
|
|
|
|
"Lokhttp3/internal/g/e<",
|
|
|
|
"Ljava/net/Socket;",
|
|
|
|
">;",
|
|
|
|
"Lokhttp3/internal/g/e<",
|
|
|
|
"Ljava/net/Socket;",
|
|
|
|
">;)V"
|
2019-02-04 20:08:30 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {p0}, Lokhttp3/internal/g/f;-><init>()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-static {}, Lokhttp3/internal/g/a$c;->BE()Lokhttp3/internal/g/a$c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iput-object v0, p0, Lokhttp3/internal/g/a;->bsX:Lokhttp3/internal/g/a$c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iput-object p1, p0, Lokhttp3/internal/g/a;->bsS:Ljava/lang/Class;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iput-object p2, p0, Lokhttp3/internal/g/a;->bsT:Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iput-object p3, p0, Lokhttp3/internal/g/a;->bsU:Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iput-object p4, p0, Lokhttp3/internal/g/a;->bsV:Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iput-object p5, p0, Lokhttp3/internal/g/a;->bsW:Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
.method private static BB()Z
|
2019-02-27 21:13:14 +00:00
|
|
|
.locals 2
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v0, "GMSCore_OpenSSL"
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/security/Security;->getProvider(Ljava/lang/String;)Ljava/security/Provider;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-21 02:16:48 +00:00
|
|
|
:try_start_0
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v0, "android.net.Network"
|
2019-02-21 02:16:48 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
2019-02-27 21:13:14 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
2019-02-21 02:16:48 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
return v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:catch_0
|
|
|
|
const/4 v0, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
return v0
|
|
|
|
.end method
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
.method public static BC()Lokhttp3/internal/g/f;
|
2019-02-27 21:13:14 +00:00
|
|
|
.locals 10
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const/4 v0, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:try_start_0
|
|
|
|
const-string v1, "com.android.org.conscrypt.SSLParametersImpl"
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object v1
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-object v3, v1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
2019-02-27 00:16:35 +00:00
|
|
|
:try_start_1
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v1, "org.apache.harmony.xnet.provider.jsse.SSLParametersImpl"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-object v3, v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:goto_0
|
|
|
|
new-instance v4, Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v1, "setUseSessionTickets"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const/4 v2, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-array v5, v2, [Ljava/lang/Class;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
sget-object v6, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const/4 v7, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
aput-object v6, v5, v7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {v4, v0, v1, v5}, Lokhttp3/internal/g/e;-><init>(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-instance v5, Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v1, "setHostname"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-array v6, v2, [Ljava/lang/Class;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-class v8, Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
aput-object v8, v6, v7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {v5, v0, v1, v6}, Lokhttp3/internal/g/e;-><init>(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-static {}, Lokhttp3/internal/g/a;->BB()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-eqz v1, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-instance v1, Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-class v6, [B
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v8, "getAlpnSelectedProtocol"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-array v9, v7, [Ljava/lang/Class;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {v1, v6, v8, v9}, Lokhttp3/internal/g/e;-><init>(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-instance v6, Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v8, "setAlpnProtocols"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-array v2, v2, [Ljava/lang/Class;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const-class v9, [B
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
aput-object v9, v2, v7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {v6, v0, v8, v2}, Lokhttp3/internal/g/e;-><init>(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-object v7, v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-object v6, v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
goto :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_0
|
|
|
|
move-object v6, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-object v7, v6
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
new-instance v1, Lokhttp3/internal/g/a;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-object v2, v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct/range {v2 .. v7}, Lokhttp3/internal/g/a;-><init>(Ljava/lang/Class;Lokhttp3/internal/g/e;Lokhttp3/internal/g/e;Lokhttp3/internal/g/e;Lokhttp3/internal/g/e;)V
|
|
|
|
:try_end_1
|
|
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_1} :catch_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
return-object v1
|
2019-02-27 00:16:35 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:catch_1
|
2019-02-04 20:08:30 +00:00
|
|
|
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
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result p1
|
2019-02-04 20:08:30 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
return p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:catch_0
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {p0, p1, p2, p3}, Lokhttp3/internal/g/a;->b(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result p1
|
2019-02-04 20:08:30 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
return p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:catch_0
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-super {p0, p1}, Lokhttp3/internal/g/f;->isCleartextTrafficPermitted(Ljava/lang/String;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-03-08 06:19:26 +00:00
|
|
|
.method public final BD()Ljavax/net/ssl/SSLContext;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 3
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
const/4 v0, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
:try_start_0
|
|
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
const/16 v2, 0x10
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
if-lt v1, v2, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/NoClassDefFoundError; {:try_start_0 .. :try_end_0} :catch_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
const/16 v2, 0x16
|
2019-02-06 20:30:57 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
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
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v0, "TLSv1.2"
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljavax/net/ssl/SSLContext;->getInstance(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;
|
|
|
|
|
|
|
|
move-result-object v0
|
2019-02-17 02:24:41 +00:00
|
|
|
:try_end_1
|
|
|
|
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_1 .. :try_end_1} :catch_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
:catch_1
|
|
|
|
:cond_1
|
|
|
|
:try_start_2
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v0, "TLS"
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljavax/net/ssl/SSLContext;->getInstance(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;
|
|
|
|
|
|
|
|
move-result-object v0
|
2019-02-17 02:24:41 +00:00
|
|
|
:try_end_2
|
|
|
|
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_2 .. :try_end_2} :catch_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
:catch_2
|
2019-02-04 20:08:30 +00:00
|
|
|
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
|
2019-02-17 02:24:41 +00:00
|
|
|
.param p3 # Ljava/lang/Throwable;
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
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
|
2019-02-27 21:13:14 +00:00
|
|
|
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_2
|
|
|
|
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_1
|
2019-02-04 20:08:30 +00:00
|
|
|
.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"
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {p2, p3}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Ljava/io/IOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception p1
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-instance p2, Ljava/io/IOException;
|
|
|
|
|
|
|
|
const-string p3, "Exception in connect"
|
|
|
|
|
|
|
|
invoke-direct {p2, p3}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Ljava/io/IOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:catch_2
|
|
|
|
move-exception p1
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
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
|
2019-02-27 21:13:14 +00:00
|
|
|
.locals 6
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljavax/net/ssl/SSLSocket;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lokhttp3/u;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-eqz p2, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iget-object v2, p0, Lokhttp3/internal/g/a;->bsT:Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-array v3, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
sget-object v4, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
aput-object v4, v3, v0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {v2, p1, v3}, Lokhttp3/internal/g/e;->b(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iget-object v2, p0, Lokhttp3/internal/g/a;->bsU:Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-array v3, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object p2, v3, v0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {v2, p1, v3}, Lokhttp3/internal/g/e;->b(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_0
|
2019-03-14 20:04:00 +00:00
|
|
|
iget-object p2, p0, Lokhttp3/internal/g/a;->bsW:Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-eqz p2, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {p2, p1}, Lokhttp3/internal/g/e;->bu(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-eqz p2, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-array p2, v1, [Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-instance v1, Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {v1}, Lokio/c;-><init>()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p3}, Ljava/util/List;->size()I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
const/4 v3, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:goto_0
|
|
|
|
if-ge v3, v2, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-interface {p3, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
2019-02-27 00:16:35 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
check-cast v4, Lokhttp3/u;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
sget-object v5, Lokhttp3/u;->bnV:Lokhttp3/u;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-eq v4, v5, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {v4}, Lokhttp3/u;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {v5}, Ljava/lang/String;->length()I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {v1, v5}, Lokio/c;->dk(I)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {v4}, Lokhttp3/u;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {v1, v4}, Lokio/c;->ed(Ljava/lang/String;)Lokio/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_1
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v1}, Lokio/c;->readByteArray()[B
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object p3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
aput-object p3, p2, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iget-object p3, p0, Lokhttp3/internal/g/a;->bsW:Lokhttp3/internal/g/e;
|
2019-02-27 00:16:35 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {p3, p1, p2}, Lokhttp3/internal/g/e;->c(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected final b(Ljavax/net/ssl/SSLSocketFactory;)Ljavax/net/ssl/X509TrustManager;
|
|
|
|
.locals 3
|
2019-02-17 02:24:41 +00:00
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/internal/g/a;->bsS:Ljava/lang/Class;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v1, "sslParameters"
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {p1, v0, v1}, Lokhttp3/internal/g/a;->a(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {p1, v0, v1}, Lokhttp3/internal/g/a;->a(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-super {p0, p1}, Lokhttp3/internal/g/f;->b(Ljavax/net/ssl/SSLSocketFactory;)Ljavax/net/ssl/X509TrustManager;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
|
|
|
const-class p1, Ljavax/net/ssl/X509TrustManager;
|
|
|
|
|
|
|
|
const-string v1, "x509TrustManager"
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v0, p1, v1}, Lokhttp3/internal/g/a;->a(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v0, p1, v1}, Lokhttp3/internal/g/a;->a(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Ljavax/net/ssl/X509TrustManager;
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method public final b(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
.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
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-instance v1, Lokhttp3/internal/g/a$a;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {v1, v2, v0}, Lokhttp3/internal/g/a$a;-><init>(Ljava/lang/Object;Ljava/lang/reflect/Method;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:catch_0
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-super {p0, p1}, Lokhttp3/internal/g/f;->b(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method public final c(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
.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
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
new-instance v1, Lokhttp3/internal/g/a$b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {v1, p1, v0}, Lokhttp3/internal/g/a$b;-><init>(Ljavax/net/ssl/X509TrustManager;Ljava/lang/reflect/Method;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:catch_0
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-super {p0, p1}, Lokhttp3/internal/g/f;->c(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/e;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final dZ(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.locals 1
|
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/internal/g/a;->bsX:Lokhttp3/internal/g/a$c;
|
2019-02-27 21:13:14 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lokhttp3/internal/g/a$c;->ea(Ljava/lang/String;)Ljava/lang/Object;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
.method public final e(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/internal/g/a;->bsV:Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_0
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {v0, p1}, Lokhttp3/internal/g/e;->bu(Ljava/lang/Object;)Z
|
2019-02-27 21:13:14 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_1
|
2019-03-14 20:04:00 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/internal/g/a;->bsV:Lokhttp3/internal/g/e;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {v0, p1, v2}, Lokhttp3/internal/g/e;->c(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, [B
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
if-eqz p1, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/String;
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
sget-object v1, Lokhttp3/internal/c;->UTF_8:Ljava/nio/charset/Charset;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {v0, p1, v1}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
:cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
return-object v1
|
|
|
|
.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
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-direct {p0, p1, v0, v1}, Lokhttp3/internal/g/a;->a(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result p1
|
2019-02-04 20:08:30 +00:00
|
|
|
:try_end_0
|
2019-02-17 02:24:41 +00:00
|
|
|
.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
|
2019-02-04 20:08:30 +00:00
|
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
return p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p1
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_2
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
:goto_0
|
2019-02-27 21:13:14 +00:00
|
|
|
const-string v0, "unable to determine cleartext support"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v0, p1}, Lokhttp3/internal/c;->a(Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/AssertionError;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
:catch_3
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-super {p0, p1}, Lokhttp3/internal/g/f;->isCleartextTrafficPermitted(Ljava/lang/String;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final s(Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
.locals 1
|
|
|
|
|
2019-03-14 20:04:00 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/internal/g/a;->bsX:Lokhttp3/internal/g/a$c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {v0, p2}, Lokhttp3/internal/g/a$c;->bt(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
|
|
|
|
const/4 p2, 0x5
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {p0, p2, p1, v0}, Lokhttp3/internal/g/a;->a(ILjava/lang/String;Ljava/lang/Throwable;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|