soul-browser/app/smali_classes4/okhttp3/a.smali
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

241 lines
4.8 KiB
Smali

.class public final synthetic Lokhttp3/a;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function0;
# instance fields
.field public final synthetic c:I
.field public final synthetic f:Lokhttp3/CertificatePinner;
.field public final synthetic g:Ljava/lang/Object;
.field public final synthetic h:Ljava/lang/Object;
# direct methods
.method public synthetic constructor <init>(Lokhttp3/CertificatePinner;Ljava/lang/Object;Ljava/lang/Object;I)V
.locals 0
.line 1
iput p4, p0, Lokhttp3/a;->c:I
iput-object p1, p0, Lokhttp3/a;->f:Lokhttp3/CertificatePinner;
iput-object p2, p0, Lokhttp3/a;->g:Ljava/lang/Object;
iput-object p3, p0, Lokhttp3/a;->h:Ljava/lang/Object;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final invoke()Ljava/lang/Object;
.locals 4
.line 1
iget v0, p0, Lokhttp3/a;->c:I
.line 2
.line 3
packed-switch v0, :pswitch_data_0
.line 4
.line 5
.line 6
iget-object v0, p0, Lokhttp3/a;->g:Ljava/lang/Object;
.line 7
.line 8
check-cast v0, Lokhttp3/Handshake;
.line 9
.line 10
iget-object v1, p0, Lokhttp3/a;->h:Ljava/lang/Object;
.line 11
.line 12
check-cast v1, Lokhttp3/Address;
.line 13
.line 14
iget-object v2, p0, Lokhttp3/a;->f:Lokhttp3/CertificatePinner;
.line 15
.line 16
iget-object v2, v2, Lokhttp3/CertificatePinner;->b:Lokhttp3/internal/tls/CertificateChainCleaner;
.line 17
.line 18
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
.line 19
.line 20
.line 21
invoke-virtual {v0}, Lokhttp3/Handshake;->a()Ljava/util/List;
.line 22
.line 23
.line 24
move-result-object v0
.line 25
iget-object v1, v1, Lokhttp3/Address;->h:Lokhttp3/HttpUrl;
.line 26
.line 27
iget-object v1, v1, Lokhttp3/HttpUrl;->d:Ljava/lang/String;
.line 28
.line 29
invoke-virtual {v2, v1, v0}, Lokhttp3/internal/tls/CertificateChainCleaner;->a(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;
.line 30
.line 31
.line 32
move-result-object v0
.line 33
return-object v0
.line 34
:pswitch_0
iget-object v0, p0, Lokhttp3/a;->g:Ljava/lang/Object;
.line 35
.line 36
check-cast v0, Ljava/util/List;
.line 37
.line 38
iget-object v1, p0, Lokhttp3/a;->h:Ljava/lang/Object;
.line 39
.line 40
check-cast v1, Ljava/lang/String;
.line 41
.line 42
iget-object v2, p0, Lokhttp3/a;->f:Lokhttp3/CertificatePinner;
.line 43
.line 44
iget-object v2, v2, Lokhttp3/CertificatePinner;->b:Lokhttp3/internal/tls/CertificateChainCleaner;
.line 45
.line 46
if-eqz v2, :cond_1
.line 47
.line 48
invoke-virtual {v2, v1, v0}, Lokhttp3/internal/tls/CertificateChainCleaner;->a(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;
.line 49
.line 50
.line 51
move-result-object v1
.line 52
if-nez v1, :cond_0
.line 53
.line 54
goto :goto_0
.line 55
:cond_0
move-object v0, v1
.line 56
:cond_1
:goto_0
new-instance v1, Ljava/util/ArrayList;
.line 57
.line 58
const/16 v2, 0xa
.line 59
.line 60
invoke-static {v0, v2}, Lkotlin/collections/CollectionsKt;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
.line 61
.line 62
.line 63
move-result v2
.line 64
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
.line 65
.line 66
.line 67
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
.line 68
.line 69
.line 70
move-result-object v0
.line 71
:goto_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
.line 72
.line 73
.line 74
move-result v2
.line 75
if-eqz v2, :cond_2
.line 76
.line 77
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
.line 78
.line 79
.line 80
move-result-object v2
.line 81
check-cast v2, Ljava/security/cert/Certificate;
.line 82
.line 83
const-string v3, "null cannot be cast to non-null type java.security.cert.X509Certificate"
.line 84
.line 85
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 86
.line 87
.line 88
check-cast v2, Ljava/security/cert/X509Certificate;
.line 89
.line 90
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 91
.line 92
.line 93
goto :goto_1
.line 94
:cond_2
return-object v1
.line 95
:pswitch_data_0
.packed-switch 0x0
:pswitch_0
.end packed-switch
.end method