* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1008 lines
22 KiB
Smali
1008 lines
22 KiB
Smali
.class public final Lokhttp3/internal/platform/AndroidPlatform;
|
|
.super Lokhttp3/internal/platform/Platform;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lokhttp3/internal/platform/ContextAwarePlatform;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/internal/platform/AndroidPlatform$Companion;,
|
|
Lokhttp3/internal/platform/AndroidPlatform$CustomTrustRootIndex;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\u0008\u0007\u0018\u00002\u00020\u00012\u00020\u0002:\u0002\u0003\u0004\u00a8\u0006\u0005"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/internal/platform/AndroidPlatform;",
|
|
"Lokhttp3/internal/platform/Platform;",
|
|
"Lokhttp3/internal/platform/ContextAwarePlatform;",
|
|
"CustomTrustRootIndex",
|
|
"Companion",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nAndroidPlatform.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AndroidPlatform.kt\nokhttp3/internal/platform/AndroidPlatform\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,186:1\n774#2:187\n865#2,2:188\n1#3:190\n*S KotlinDebug\n*F\n+ 1 AndroidPlatform.kt\nokhttp3/internal/platform/AndroidPlatform\n*L\n60#1:187\n60#1:188,2\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lokhttp3/internal/SuppressSignatureCheck;
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final e:Z
|
|
|
|
|
|
# instance fields
|
|
.field public c:Landroid/content/Context;
|
|
|
|
.field public final d:Ljava/util/ArrayList;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 2
|
|
.line 3
|
|
const/16 v1, 0x1d
|
|
|
|
.line 4
|
|
.line 5
|
|
if-ge v0, v1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 v0, 0x1
|
|
|
|
.line 8
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 10
|
|
:goto_0
|
|
sput-boolean v0, Lokhttp3/internal/platform/AndroidPlatform;->e:Z
|
|
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 6
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
sget v0, Lokhttp3/internal/platform/android/StandardAndroidSocketAdapter;->g:I
|
|
|
|
.line 5
|
|
.line 6
|
|
const-string v0, "com.android.org.conscrypt"
|
|
|
|
.line 7
|
|
.line 8
|
|
const-string v1, "packageName"
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
:try_start_0
|
|
const-string v0, "com.android.org.conscrypt.OpenSSLSocketImpl"
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object v0
|
|
|
|
.line 19
|
|
const-string v1, "null cannot be cast to non-null type java.lang.Class<in javax.net.ssl.SSLSocket>"
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
const-string v1, "com.android.org.conscrypt.OpenSSLSocketFactoryImpl"
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object v1
|
|
|
|
.line 30
|
|
const-string v2, "null cannot be cast to non-null type java.lang.Class<in javax.net.ssl.SSLSocketFactory>"
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
const-string v2, "com.android.org.conscrypt.SSLParametersImpl"
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-static {v2}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result-object v2
|
|
|
|
.line 41
|
|
new-instance v3, Lokhttp3/internal/platform/android/StandardAndroidSocketAdapter;
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
const-string v4, "sslSocketClass"
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-static {v0, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
const-string v4, "sslSocketFactoryClass"
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-static {v1, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
const-string v1, "paramClass"
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-static {v2, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
invoke-direct {v3, v0}, Lokhttp3/internal/platform/android/AndroidSocketAdapter;-><init>(Ljava/lang/Class;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
goto :goto_0
|
|
|
|
.line 65
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 66
|
|
sget-object v1, Lokhttp3/internal/platform/android/AndroidLog;->a:Ljava/util/concurrent/CopyOnWriteArraySet;
|
|
|
|
.line 67
|
|
.line 68
|
|
const-class v1, Lokhttp3/OkHttpClient;
|
|
|
|
.line 69
|
|
.line 70
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
.line 71
|
|
.line 72
|
|
.line 73
|
|
move-result-object v1
|
|
|
|
.line 74
|
|
const-string v2, "getName(...)"
|
|
|
|
.line 75
|
|
.line 76
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
const/4 v2, 0x5
|
|
|
|
.line 80
|
|
const-string v3, "unable to load android socket classes"
|
|
|
|
.line 81
|
|
.line 82
|
|
invoke-static {v1, v2, v3, v0}, Lokhttp3/internal/platform/android/AndroidLog;->a(Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
const/4 v3, 0x0
|
|
|
|
.line 86
|
|
:goto_0
|
|
new-instance v0, Lokhttp3/internal/platform/android/DeferredSocketAdapter;
|
|
|
|
.line 87
|
|
.line 88
|
|
sget-object v1, Lokhttp3/internal/platform/android/AndroidSocketAdapter;->f:Lokhttp3/internal/platform/android/AndroidSocketAdapter$Companion$factory$1;
|
|
|
|
.line 89
|
|
.line 90
|
|
invoke-direct {v0, v1}, Lokhttp3/internal/platform/android/DeferredSocketAdapter;-><init>(Lokhttp3/internal/platform/android/DeferredSocketAdapter$Factory;)V
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
new-instance v1, Lokhttp3/internal/platform/android/DeferredSocketAdapter;
|
|
|
|
.line 94
|
|
.line 95
|
|
sget-object v2, Lokhttp3/internal/platform/android/ConscryptSocketAdapter;->a:Lokhttp3/internal/platform/android/ConscryptSocketAdapter$Companion$factory$1;
|
|
|
|
.line 96
|
|
.line 97
|
|
invoke-direct {v1, v2}, Lokhttp3/internal/platform/android/DeferredSocketAdapter;-><init>(Lokhttp3/internal/platform/android/DeferredSocketAdapter$Factory;)V
|
|
|
|
.line 98
|
|
.line 99
|
|
.line 100
|
|
new-instance v2, Lokhttp3/internal/platform/android/DeferredSocketAdapter;
|
|
|
|
.line 101
|
|
.line 102
|
|
sget-object v4, Lokhttp3/internal/platform/android/BouncyCastleSocketAdapter;->a:Lokhttp3/internal/platform/android/BouncyCastleSocketAdapter$Companion$factory$1;
|
|
|
|
.line 103
|
|
.line 104
|
|
invoke-direct {v2, v4}, Lokhttp3/internal/platform/android/DeferredSocketAdapter;-><init>(Lokhttp3/internal/platform/android/DeferredSocketAdapter$Factory;)V
|
|
|
|
.line 105
|
|
.line 106
|
|
.line 107
|
|
const/4 v4, 0x4
|
|
|
|
.line 108
|
|
new-array v4, v4, [Lokhttp3/internal/platform/android/SocketAdapter;
|
|
|
|
.line 109
|
|
.line 110
|
|
const/4 v5, 0x0
|
|
|
|
.line 111
|
|
aput-object v3, v4, v5
|
|
|
|
.line 112
|
|
.line 113
|
|
const/4 v3, 0x1
|
|
|
|
.line 114
|
|
aput-object v0, v4, v3
|
|
|
|
.line 115
|
|
.line 116
|
|
const/4 v0, 0x2
|
|
|
|
.line 117
|
|
aput-object v1, v4, v0
|
|
|
|
.line 118
|
|
.line 119
|
|
const/4 v0, 0x3
|
|
|
|
.line 120
|
|
aput-object v2, v4, v0
|
|
|
|
.line 121
|
|
.line 122
|
|
invoke-static {v4}, Lkotlin/collections/CollectionsKt;->listOfNotNull([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
.line 123
|
|
.line 124
|
|
.line 125
|
|
move-result-object v0
|
|
|
|
.line 126
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
.line 127
|
|
.line 128
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 129
|
|
.line 130
|
|
.line 131
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 132
|
|
.line 133
|
|
.line 134
|
|
move-result-object v0
|
|
|
|
.line 135
|
|
:cond_0
|
|
:goto_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 136
|
|
.line 137
|
|
.line 138
|
|
move-result v2
|
|
|
|
.line 139
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 140
|
|
.line 141
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 142
|
|
.line 143
|
|
.line 144
|
|
move-result-object v2
|
|
|
|
.line 145
|
|
move-object v3, v2
|
|
|
|
.line 146
|
|
check-cast v3, Lokhttp3/internal/platform/android/SocketAdapter;
|
|
|
|
.line 147
|
|
.line 148
|
|
invoke-interface {v3}, Lokhttp3/internal/platform/android/SocketAdapter;->a()Z
|
|
|
|
.line 149
|
|
.line 150
|
|
.line 151
|
|
move-result v3
|
|
|
|
.line 152
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 153
|
|
.line 154
|
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 155
|
|
.line 156
|
|
.line 157
|
|
goto :goto_1
|
|
|
|
.line 158
|
|
:cond_1
|
|
iput-object v1, p0, Lokhttp3/internal/platform/AndroidPlatform;->d:Ljava/util/ArrayList;
|
|
|
|
.line 159
|
|
.line 160
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lokhttp3/internal/platform/AndroidPlatform;->c:Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b()Landroid/content/Context;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/internal/platform/AndroidPlatform;->c:Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final c(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/CertificateChainCleaner;
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "trustManager"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
const/4 v0, 0x0
|
|
|
|
.line 10
|
|
:try_start_0
|
|
new-instance v1, Landroid/net/http/X509TrustManagerExtensions;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-direct {v1, p1}, Landroid/net/http/X509TrustManagerExtensions;-><init>(Ljavax/net/ssl/X509TrustManager;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
goto :goto_0
|
|
|
|
.line 16
|
|
:catch_0
|
|
move-object v1, v0
|
|
|
|
.line 17
|
|
:goto_0
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 18
|
|
.line 19
|
|
new-instance v0, Lokhttp3/internal/platform/android/AndroidCertificateChainCleaner;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {v0, p1, v1}, Lokhttp3/internal/platform/android/AndroidCertificateChainCleaner;-><init>(Ljavax/net/ssl/X509TrustManager;Landroid/net/http/X509TrustManagerExtensions;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
:cond_0
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 25
|
|
.line 26
|
|
return-object v0
|
|
|
|
.line 27
|
|
:cond_1
|
|
invoke-super {p0, p1}, Lokhttp3/internal/platform/Platform;->c(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/CertificateChainCleaner;
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result-object p1
|
|
|
|
.line 31
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final d(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/TrustRootIndex;
|
|
.locals 6
|
|
|
|
.line 1
|
|
const-string v0, "trustManager"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
:try_start_0
|
|
const-string v0, "buildTrustRootIndex"
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {v0}, Landroid/os/StrictMode;->noteSlowCall(Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v0
|
|
|
|
.line 15
|
|
const-string v1, "findTrustAnchorByIssuerAndSignature"
|
|
|
|
.line 16
|
|
.line 17
|
|
const/4 v2, 0x1
|
|
|
|
.line 18
|
|
new-array v3, v2, [Ljava/lang/Class;
|
|
|
|
.line 19
|
|
.line 20
|
|
const-class v4, Ljava/security/cert/X509Certificate;
|
|
|
|
.line 21
|
|
.line 22
|
|
const/4 v5, 0x0
|
|
|
|
.line 23
|
|
aput-object v4, v3, v5
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {v0, v1, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object v0
|
|
|
|
.line 29
|
|
invoke-virtual {v0, v2}, Ljava/lang/reflect/AccessibleObject;->setAccessible(Z)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
new-instance v1, Lokhttp3/internal/platform/AndroidPlatform$CustomTrustRootIndex;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
invoke-direct {v1, p1, v0}, Lokhttp3/internal/platform/AndroidPlatform$CustomTrustRootIndex;-><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
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
return-object v1
|
|
|
|
.line 41
|
|
:catch_0
|
|
invoke-super {p0, p1}, Lokhttp3/internal/platform/Platform;->d(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/TrustRootIndex;
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result-object p1
|
|
|
|
.line 45
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final e(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
|
|
.locals 5
|
|
|
|
.line 1
|
|
const-string v0, "sslSocket"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const-string v0, "protocols"
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
iget-object v0, p0, Lokhttp3/internal/platform/AndroidPlatform;->d:Ljava/util/ArrayList;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result v1
|
|
|
|
.line 17
|
|
const/4 v2, 0x0
|
|
|
|
.line 18
|
|
:cond_0
|
|
if-ge v2, v1, :cond_1
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v3
|
|
|
|
.line 24
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 25
|
|
.line 26
|
|
move-object v4, v3
|
|
|
|
.line 27
|
|
check-cast v4, Lokhttp3/internal/platform/android/SocketAdapter;
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-interface {v4, p1}, Lokhttp3/internal/platform/android/SocketAdapter;->b(Ljavax/net/ssl/SSLSocket;)Z
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
move-result v4
|
|
|
|
.line 33
|
|
if-eqz v4, :cond_0
|
|
|
|
.line 34
|
|
.line 35
|
|
goto :goto_0
|
|
|
|
.line 36
|
|
:cond_1
|
|
const/4 v3, 0x0
|
|
|
|
.line 37
|
|
:goto_0
|
|
check-cast v3, Lokhttp3/internal/platform/android/SocketAdapter;
|
|
|
|
.line 38
|
|
.line 39
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 40
|
|
.line 41
|
|
invoke-interface {v3, p1, p2, p3}, Lokhttp3/internal/platform/android/SocketAdapter;->d(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public final f(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "socket"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const-string v0, "address"
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
:try_start_0
|
|
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
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
return-void
|
|
|
|
.line 15
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 16
|
|
sget p2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 17
|
|
.line 18
|
|
const/16 p3, 0x1a
|
|
|
|
.line 19
|
|
.line 20
|
|
if-ne p2, p3, :cond_0
|
|
|
|
.line 21
|
|
.line 22
|
|
new-instance p2, Ljava/io/IOException;
|
|
|
|
.line 23
|
|
.line 24
|
|
const-string p3, "Exception in connect"
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-direct {p2, p3, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
throw p2
|
|
|
|
.line 30
|
|
:cond_0
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final g(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
|
|
.locals 6
|
|
|
|
.line 1
|
|
const-string v0, "sslSocket"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, p0, Lokhttp3/internal/platform/AndroidPlatform;->d:Ljava/util/ArrayList;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result v1
|
|
|
|
.line 12
|
|
const/4 v2, 0x0
|
|
|
|
.line 13
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
.line 14
|
|
if-ge v2, v1, :cond_1
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v4
|
|
|
|
.line 20
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 21
|
|
.line 22
|
|
move-object v5, v4
|
|
|
|
.line 23
|
|
check-cast v5, Lokhttp3/internal/platform/android/SocketAdapter;
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-interface {v5, p1}, Lokhttp3/internal/platform/android/SocketAdapter;->b(Ljavax/net/ssl/SSLSocket;)Z
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result v5
|
|
|
|
.line 29
|
|
if-eqz v5, :cond_0
|
|
|
|
.line 30
|
|
.line 31
|
|
goto :goto_0
|
|
|
|
.line 32
|
|
:cond_1
|
|
move-object v4, v3
|
|
|
|
.line 33
|
|
:goto_0
|
|
check-cast v4, Lokhttp3/internal/platform/android/SocketAdapter;
|
|
|
|
.line 34
|
|
.line 35
|
|
if-eqz v4, :cond_2
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-interface {v4, p1}, Lokhttp3/internal/platform/android/SocketAdapter;->c(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result-object p1
|
|
|
|
.line 41
|
|
return-object p1
|
|
|
|
.line 42
|
|
:cond_2
|
|
return-object v3
|
|
.end method
|
|
|
|
.method public final i(Ljava/lang/String;)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "hostname"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 7
|
|
.line 8
|
|
const/16 v1, 0x18
|
|
|
|
.line 9
|
|
.line 10
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-static {}, Landroid/security/NetworkSecurityPolicy;->getInstance()Landroid/security/NetworkSecurityPolicy;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v0
|
|
|
|
.line 16
|
|
invoke-virtual {v0, p1}, Landroid/security/NetworkSecurityPolicy;->isCleartextTrafficPermitted(Ljava/lang/String;)Z
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result p1
|
|
|
|
.line 20
|
|
return p1
|
|
|
|
.line 21
|
|
:cond_0
|
|
invoke-static {}, Landroid/security/NetworkSecurityPolicy;->getInstance()Landroid/security/NetworkSecurityPolicy;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object p1
|
|
|
|
.line 25
|
|
invoke-virtual {p1}, Landroid/security/NetworkSecurityPolicy;->isCleartextTrafficPermitted()Z
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result p1
|
|
|
|
.line 29
|
|
return p1
|
|
.end method
|
|
|
|
.method public final j(ILjava/lang/String;Ljava/lang/Throwable;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "message"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const/4 v0, 0x5
|
|
|
|
.line 7
|
|
const-string v1, "OkHttp"
|
|
|
|
.line 8
|
|
.line 9
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-static {v1, p2, p3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
return-void
|
|
|
|
.line 15
|
|
:cond_0
|
|
invoke-static {v1, p2, p3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
return-void
|
|
.end method
|
|
|
|
.method public final l()Ljavax/net/ssl/SSLContext;
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "newSSLContext"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {v0}, Landroid/os/StrictMode;->noteSlowCall(Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-super {p0}, Lokhttp3/internal/platform/Platform;->l()Ljavax/net/ssl/SSLContext;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v0
|
|
|
|
.line 10
|
|
return-object v0
|
|
.end method
|