soul-browser/app/smali_classes4/okhttp3/internal/http1/Http1ExchangeCodec$AbstractSource.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

327 lines
7.2 KiB
Smali

.class abstract Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lokio/Source;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/internal/http1/Http1ExchangeCodec;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x401
name = "AbstractSource"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0008\u00a2\u0004\u0018\u00002\u00020\u0001\u00a8\u0006\u0002"
}
d2 = {
"Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;",
"Lokio/Source;",
"okhttp"
}
k = 0x1
mv = {
0x2,
0x2,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field public final c:Lokhttp3/HttpUrl;
.field public final f:Lokio/ForwardingTimeout;
.field public g:Z
.field public final synthetic h:Lokhttp3/internal/http1/Http1ExchangeCodec;
# direct methods
.method public constructor <init>(Lokhttp3/internal/http1/Http1ExchangeCodec;Lokhttp3/HttpUrl;)V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
.line 3
.line 4
const-string v0, "url"
.line 5
.line 6
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 7
.line 8
.line 9
iput-object p1, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->h:Lokhttp3/internal/http1/Http1ExchangeCodec;
.line 10
.line 11
iput-object p2, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->c:Lokhttp3/HttpUrl;
.line 12
.line 13
new-instance p2, Lokio/ForwardingTimeout;
.line 14
.line 15
iget-object p1, p1, Lokhttp3/internal/http1/Http1ExchangeCodec;->c:Lokhttp3/internal/connection/BufferedSocket;
.line 16
.line 17
invoke-interface {p1}, Lokhttp3/internal/connection/BufferedSocket;->a()Lokio/BufferedSource;
.line 18
.line 19
.line 20
move-result-object p1
.line 21
invoke-interface {p1}, Lokio/Source;->timeout()Lokio/Timeout;
.line 22
.line 23
.line 24
move-result-object p1
.line 25
invoke-direct {p2, p1}, Lokio/ForwardingTimeout;-><init>(Lokio/Timeout;)V
.line 26
.line 27
.line 28
iput-object p2, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->f:Lokio/ForwardingTimeout;
.line 29
.line 30
return-void
.end method
# virtual methods
.method public final a(Lokhttp3/Headers;)V
.locals 4
.line 1
const-string v0, "trailers"
.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/http1/Http1ExchangeCodec$AbstractSource;->h:Lokhttp3/internal/http1/Http1ExchangeCodec;
.line 7
.line 8
iget v1, v0, Lokhttp3/internal/http1/Http1ExchangeCodec;->d:I
.line 9
.line 10
const/4 v2, 0x6
.line 11
if-ne v1, v2, :cond_0
.line 12
.line 13
goto :goto_0
.line 14
:cond_0
const/4 v3, 0x5
.line 15
if-ne v1, v3, :cond_2
.line 16
.line 17
iget-object v1, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->f:Lokio/ForwardingTimeout;
.line 18
.line 19
invoke-static {v0, v1}, Lokhttp3/internal/http1/Http1ExchangeCodec;->k(Lokhttp3/internal/http1/Http1ExchangeCodec;Lokio/ForwardingTimeout;)V
.line 20
.line 21
.line 22
iput v2, v0, Lokhttp3/internal/http1/Http1ExchangeCodec;->d:I
.line 23
.line 24
invoke-virtual {p1}, Lokhttp3/Headers;->size()I
.line 25
.line 26
.line 27
move-result v1
.line 28
if-lez v1, :cond_1
.line 29
.line 30
iget-object v0, v0, Lokhttp3/internal/http1/Http1ExchangeCodec;->a:Lokhttp3/OkHttpClient;
.line 31
.line 32
if-eqz v0, :cond_1
.line 33
.line 34
iget-object v0, v0, Lokhttp3/OkHttpClient;->j:Lokhttp3/CookieJar;
.line 35
.line 36
if-eqz v0, :cond_1
.line 37
.line 38
iget-object v1, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->c:Lokhttp3/HttpUrl;
.line 39
.line 40
invoke-static {v0, v1, p1}, Lokhttp3/internal/http/HttpHeaders;->d(Lokhttp3/CookieJar;Lokhttp3/HttpUrl;Lokhttp3/Headers;)V
.line 41
.line 42
.line 43
:cond_1
:goto_0
return-void
.line 44
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
.line 45
.line 46
new-instance v1, Ljava/lang/StringBuilder;
.line 47
.line 48
const-string v2, "state: "
.line 49
.line 50
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
.line 51
.line 52
.line 53
iget v0, v0, Lokhttp3/internal/http1/Http1ExchangeCodec;->d:I
.line 54
.line 55
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
.line 56
.line 57
.line 58
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
.line 59
.line 60
.line 61
move-result-object v0
.line 62
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
.line 63
.line 64
.line 65
throw p1
.end method
.method public p0(JLokio/Buffer;)J
.locals 2
.line 1
iget-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->h:Lokhttp3/internal/http1/Http1ExchangeCodec;
.line 2
.line 3
const-string v1, "sink"
.line 4
.line 5
invoke-static {p3, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 6
.line 7
.line 8
:try_start_0
iget-object v1, v0, Lokhttp3/internal/http1/Http1ExchangeCodec;->c:Lokhttp3/internal/connection/BufferedSocket;
.line 9
.line 10
invoke-interface {v1}, Lokhttp3/internal/connection/BufferedSocket;->a()Lokio/BufferedSource;
.line 11
.line 12
.line 13
move-result-object v1
.line 14
invoke-interface {v1, p1, p2, p3}, Lokio/Source;->p0(JLokio/Buffer;)J
.line 15
.line 16
.line 17
move-result-wide p1
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.line 18
return-wide p1
.line 19
:catch_0
move-exception p1
.line 20
iget-object p2, v0, Lokhttp3/internal/http1/Http1ExchangeCodec;->b:Lokhttp3/internal/http/ExchangeCodec$Carrier;
.line 21
.line 22
invoke-interface {p2}, Lokhttp3/internal/http/ExchangeCodec$Carrier;->e()V
.line 23
.line 24
.line 25
sget-object p2, Lokhttp3/internal/http1/Http1ExchangeCodec;->f:Lokhttp3/Headers;
.line 26
.line 27
invoke-virtual {p0, p2}, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->a(Lokhttp3/Headers;)V
.line 28
.line 29
.line 30
throw p1
.end method
.method public final timeout()Lokio/Timeout;
.locals 1
.line 1
iget-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->f:Lokio/ForwardingTimeout;
.line 2
.line 3
return-object v0
.end method