soul-browser/app/smali_classes4/okhttp3/internal/http2/c.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

306 lines
6.7 KiB
Smali

.class public final synthetic Lokhttp3/internal/http2/c;
.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/internal/http2/Http2Connection;
.field public final synthetic g:I
.field public final synthetic h:Ljava/util/List;
# direct methods
.method public synthetic constructor <init>(Lokhttp3/internal/http2/Http2Connection;ILjava/util/List;)V
.locals 1
.line 1
const/4 v0, 0x0
iput v0, p0, Lokhttp3/internal/http2/c;->c:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lokhttp3/internal/http2/c;->f:Lokhttp3/internal/http2/Http2Connection;
iput p2, p0, Lokhttp3/internal/http2/c;->g:I
iput-object p3, p0, Lokhttp3/internal/http2/c;->h:Ljava/util/List;
return-void
.end method
.method public synthetic constructor <init>(Lokhttp3/internal/http2/Http2Connection;ILjava/util/List;Z)V
.locals 0
.line 2
const/4 p4, 0x1
iput p4, p0, Lokhttp3/internal/http2/c;->c:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lokhttp3/internal/http2/c;->f:Lokhttp3/internal/http2/Http2Connection;
iput p2, p0, Lokhttp3/internal/http2/c;->g:I
iput-object p3, p0, Lokhttp3/internal/http2/c;->h:Ljava/util/List;
return-void
.end method
.method private final a()Ljava/lang/Object;
.locals 4
.line 1
iget-object v0, p0, Lokhttp3/internal/http2/c;->f:Lokhttp3/internal/http2/Http2Connection;
.line 2
.line 3
iget v1, p0, Lokhttp3/internal/http2/c;->g:I
.line 4
.line 5
iget-object v2, p0, Lokhttp3/internal/http2/c;->h:Ljava/util/List;
.line 6
.line 7
iget-object v3, v0, Lokhttp3/internal/http2/Http2Connection;->o:Lokhttp3/internal/http2/PushObserver;
.line 8
.line 9
check-cast v3, Lokhttp3/internal/http2/PushObserver$Companion$PushObserverCancel;
.line 10
.line 11
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 12
.line 13
.line 14
const-string v3, "requestHeaders"
.line 15
.line 16
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 17
.line 18
.line 19
:try_start_0
iget-object v2, v0, Lokhttp3/internal/http2/Http2Connection;->A:Lokhttp3/internal/http2/Http2Writer;
.line 20
.line 21
sget-object v3, Lokhttp3/internal/http2/ErrorCode;->l:Lokhttp3/internal/http2/ErrorCode;
.line 22
.line 23
invoke-virtual {v2, v1, v3}, Lokhttp3/internal/http2/Http2Writer;->j(ILokhttp3/internal/http2/ErrorCode;)V
.line 24
.line 25
.line 26
monitor-enter v0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.line 27
:try_start_1
iget-object v2, v0, Lokhttp3/internal/http2/Http2Connection;->C:Ljava/util/LinkedHashSet;
.line 28
.line 29
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
.line 30
.line 31
.line 32
move-result-object v1
.line 33
invoke-interface {v2, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
.line 34
.line 35
.line 36
sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 37
.line 38
:try_start_2
monitor-exit v0
.line 39
goto :goto_0
.line 40
:catchall_0
move-exception v1
.line 41
monitor-exit v0
.line 42
throw v1
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
.line 43
:catch_0
:goto_0
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 44
.line 45
return-object v0
.end method
# virtual methods
.method public final invoke()Ljava/lang/Object;
.locals 4
.line 1
iget v0, p0, Lokhttp3/internal/http2/c;->c:I
.line 2
.line 3
packed-switch v0, :pswitch_data_0
.line 4
.line 5
.line 6
iget-object v0, p0, Lokhttp3/internal/http2/c;->f:Lokhttp3/internal/http2/Http2Connection;
.line 7
.line 8
iget v1, p0, Lokhttp3/internal/http2/c;->g:I
.line 9
.line 10
iget-object v2, p0, Lokhttp3/internal/http2/c;->h:Ljava/util/List;
.line 11
.line 12
iget-object v3, v0, Lokhttp3/internal/http2/Http2Connection;->o:Lokhttp3/internal/http2/PushObserver;
.line 13
.line 14
check-cast v3, Lokhttp3/internal/http2/PushObserver$Companion$PushObserverCancel;
.line 15
.line 16
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 17
.line 18
.line 19
const-string v3, "responseHeaders"
.line 20
.line 21
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 22
.line 23
.line 24
:try_start_0
iget-object v2, v0, Lokhttp3/internal/http2/Http2Connection;->A:Lokhttp3/internal/http2/Http2Writer;
.line 25
.line 26
sget-object v3, Lokhttp3/internal/http2/ErrorCode;->l:Lokhttp3/internal/http2/ErrorCode;
.line 27
.line 28
invoke-virtual {v2, v1, v3}, Lokhttp3/internal/http2/Http2Writer;->j(ILokhttp3/internal/http2/ErrorCode;)V
.line 29
.line 30
.line 31
monitor-enter v0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.line 32
:try_start_1
iget-object v2, v0, Lokhttp3/internal/http2/Http2Connection;->C:Ljava/util/LinkedHashSet;
.line 33
.line 34
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
.line 35
.line 36
.line 37
move-result-object v1
.line 38
invoke-interface {v2, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
.line 39
.line 40
.line 41
sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 42
.line 43
:try_start_2
monitor-exit v0
.line 44
goto :goto_0
.line 45
:catchall_0
move-exception v1
.line 46
monitor-exit v0
.line 47
throw v1
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
.line 48
:catch_0
:goto_0
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 49
.line 50
return-object v0
.line 51
:pswitch_0
invoke-direct {p0}, Lokhttp3/internal/http2/c;->a()Ljava/lang/Object;
.line 52
.line 53
.line 54
move-result-object v0
.line 55
return-object v0
.line 56
nop
.line 57
:pswitch_data_0
.packed-switch 0x0
:pswitch_0
.end packed-switch
.end method