* 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>
828 lines
17 KiB
Smali
828 lines
17 KiB
Smali
.class public final Lokhttp3/internal/platform/Android10Platform;
|
|
.super Lokhttp3/internal/platform/Platform;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lokhttp3/internal/platform/ContextAwarePlatform;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/internal/platform/Android10Platform$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0007\u0018\u00002\u00020\u00012\u00020\u0002:\u0001\u0003\u00a8\u0006\u0004"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/internal/platform/Android10Platform;",
|
|
"Lokhttp3/internal/platform/Platform;",
|
|
"Lokhttp3/internal/platform/ContextAwarePlatform;",
|
|
"Companion",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nAndroid10Platform.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Android10Platform.kt\nokhttp3/internal/platform/Android10Platform\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,133:1\n774#2:134\n865#2,2:135\n1#3:137\n*S KotlinDebug\n*F\n+ 1 Android10Platform.kt\nokhttp3/internal/platform/Android10Platform\n*L\n55#1:134\n55#1:135,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-lt 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/Android10Platform;->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, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 5
|
|
.line 6
|
|
const/16 v1, 0x1d
|
|
|
|
.line 7
|
|
.line 8
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
new-instance v0, Lokhttp3/internal/platform/android/Android10SocketAdapter;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
goto :goto_0
|
|
|
|
.line 16
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 17
|
|
:goto_0
|
|
new-instance v1, Lokhttp3/internal/platform/android/DeferredSocketAdapter;
|
|
|
|
.line 18
|
|
.line 19
|
|
sget-object v2, Lokhttp3/internal/platform/android/AndroidSocketAdapter;->f:Lokhttp3/internal/platform/android/AndroidSocketAdapter$Companion$factory$1;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {v1, v2}, Lokhttp3/internal/platform/android/DeferredSocketAdapter;-><init>(Lokhttp3/internal/platform/android/DeferredSocketAdapter$Factory;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
new-instance v2, Lokhttp3/internal/platform/android/DeferredSocketAdapter;
|
|
|
|
.line 25
|
|
.line 26
|
|
sget-object v3, Lokhttp3/internal/platform/android/ConscryptSocketAdapter;->a:Lokhttp3/internal/platform/android/ConscryptSocketAdapter$Companion$factory$1;
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-direct {v2, v3}, Lokhttp3/internal/platform/android/DeferredSocketAdapter;-><init>(Lokhttp3/internal/platform/android/DeferredSocketAdapter$Factory;)V
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
new-instance v3, Lokhttp3/internal/platform/android/DeferredSocketAdapter;
|
|
|
|
.line 32
|
|
.line 33
|
|
sget-object v4, Lokhttp3/internal/platform/android/BouncyCastleSocketAdapter;->a:Lokhttp3/internal/platform/android/BouncyCastleSocketAdapter$Companion$factory$1;
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-direct {v3, v4}, Lokhttp3/internal/platform/android/DeferredSocketAdapter;-><init>(Lokhttp3/internal/platform/android/DeferredSocketAdapter$Factory;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
const/4 v4, 0x4
|
|
|
|
.line 39
|
|
new-array v4, v4, [Lokhttp3/internal/platform/android/SocketAdapter;
|
|
|
|
.line 40
|
|
.line 41
|
|
const/4 v5, 0x0
|
|
|
|
.line 42
|
|
aput-object v0, v4, v5
|
|
|
|
.line 43
|
|
.line 44
|
|
const/4 v0, 0x1
|
|
|
|
.line 45
|
|
aput-object v1, v4, v0
|
|
|
|
.line 46
|
|
.line 47
|
|
const/4 v0, 0x2
|
|
|
|
.line 48
|
|
aput-object v2, v4, v0
|
|
|
|
.line 49
|
|
.line 50
|
|
const/4 v0, 0x3
|
|
|
|
.line 51
|
|
aput-object v3, v4, v0
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-static {v4}, Lkotlin/collections/CollectionsKt;->listOfNotNull([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result-object v0
|
|
|
|
.line 57
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
.line 58
|
|
.line 59
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
move-result-object v0
|
|
|
|
.line 66
|
|
:cond_1
|
|
:goto_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result v2
|
|
|
|
.line 70
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 71
|
|
.line 72
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
move-result-object v2
|
|
|
|
.line 76
|
|
move-object v3, v2
|
|
|
|
.line 77
|
|
check-cast v3, Lokhttp3/internal/platform/android/SocketAdapter;
|
|
|
|
.line 78
|
|
.line 79
|
|
invoke-interface {v3}, Lokhttp3/internal/platform/android/SocketAdapter;->a()Z
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
move-result v3
|
|
|
|
.line 83
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 84
|
|
.line 85
|
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
goto :goto_1
|
|
|
|
.line 89
|
|
:cond_2
|
|
iput-object v1, p0, Lokhttp3/internal/platform/Android10Platform;->d:Ljava/util/ArrayList;
|
|
|
|
.line 90
|
|
.line 91
|
|
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/Android10Platform;->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/Android10Platform;->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 1
|
|
|
|
.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
|
|
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-super {p0, p1}, Lokhttp3/internal/platform/Platform;->d(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/TrustRootIndex;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p1
|
|
|
|
.line 15
|
|
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/Android10Platform;->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 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/Android10Platform;->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 h()Ljava/lang/Object;
|
|
.locals 3
|
|
|
|
.line 1
|
|
const-string v0, "closer"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v1, "response.body().close()"
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {v1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 9
|
|
.line 10
|
|
const/16 v2, 0x1e
|
|
|
|
.line 11
|
|
.line 12
|
|
if-lt v0, v2, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
new-instance v0, Landroid/util/CloseGuard;
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-direct {v0}, Landroid/util/CloseGuard;-><init>()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {v0, v1}, Landroid/util/CloseGuard;->open(Ljava/lang/String;)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
return-object v0
|
|
|
|
.line 23
|
|
:cond_0
|
|
invoke-super {p0}, Lokhttp3/internal/platform/Platform;->h()Ljava/lang/Object;
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result-object v0
|
|
|
|
.line 27
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final i(Ljava/lang/String;)Z
|
|
.locals 1
|
|
|
|
.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
|
|
invoke-static {}, Landroid/security/NetworkSecurityPolicy;->getInstance()Landroid/security/NetworkSecurityPolicy;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v0
|
|
|
|
.line 10
|
|
invoke-virtual {v0, p1}, Landroid/security/NetworkSecurityPolicy;->isCleartextTrafficPermitted(Ljava/lang/String;)Z
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result p1
|
|
|
|
.line 14
|
|
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
|
|
sget-boolean p1, Lokhttp3/internal/platform/AndroidPlatform;->e:Z
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {v1, p2, p3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
|
|
.line 17
|
|
:cond_0
|
|
sget-boolean p1, Lokhttp3/internal/platform/AndroidPlatform;->e:Z
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-static {v1, p2, p3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
return-void
|
|
.end method
|
|
|
|
.method public final k(Ljava/lang/Object;Ljava/lang/String;)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
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 7
|
|
.line 8
|
|
const/16 v1, 0x1e
|
|
|
|
.line 9
|
|
.line 10
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
const-string p2, "null cannot be cast to non-null type android.util.CloseGuard"
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
check-cast p1, Landroid/util/CloseGuard;
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {p1}, Landroid/util/CloseGuard;->warnIfOpen()V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
return-void
|
|
|
|
.line 23
|
|
:cond_0
|
|
invoke-super {p0, p1, p2}, Lokhttp3/internal/platform/Platform;->k(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
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
|