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

788 lines
16 KiB
Smali

.class public final Lokhttp3/internal/http2/Http2Stream$FramingSink;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lokio/Sink;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/internal/http2/Http2Stream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "FramingSink"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0008\u0086\u0004\u0018\u00002\u00020\u0001\u00a8\u0006\u0002"
}
d2 = {
"Lokhttp3/internal/http2/Http2Stream$FramingSink;",
"Lokio/Sink;",
"okhttp"
}
k = 0x1
mv = {
0x2,
0x2,
0x0
}
xi = 0x30
.end annotation
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
value = {
"SMAP\nHttp2Stream.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Http2Stream.kt\nokhttp3/internal/http2/Http2Stream$FramingSink\n+ 2 Lockable.kt\nokhttp3/internal/concurrent/LockableKt\n*L\n1#1,743:1\n49#2,4:744\n63#2:748\n49#2,4:749\n63#2:753\n49#2,4:754\n63#2:758\n63#2:759\n38#2:760\n*S KotlinDebug\n*F\n+ 1 Http2Stream.kt\nokhttp3/internal/http2/Http2Stream$FramingSink\n*L\n582#1:744,4\n598#1:748\n628#1:749,4\n630#1:753\n644#1:754,4\n647#1:758\n676#1:759\n678#1:760\n*E\n"
}
.end annotation
# instance fields
.field public final c:Z
.field public final f:Lokio/Buffer;
.field public g:Z
.field public final synthetic h:Lokhttp3/internal/http2/Http2Stream;
# direct methods
.method public constructor <init>(Lokhttp3/internal/http2/Http2Stream;Z)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
.line 3
.line 4
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 5
.line 6
iput-boolean p2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->c:Z
.line 7
.line 8
new-instance p1, Lokio/Buffer;
.line 9
.line 10
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
.line 11
.line 12
.line 13
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->f:Lokio/Buffer;
.line 14
.line 15
return-void
.end method
# virtual methods
.method public final U(JLokio/Buffer;)V
.locals 3
.line 1
const-string v0, "source"
.line 2
.line 3
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
sget-object v0, Lokhttp3/internal/_UtilJvmKt;->a:Ljava/util/TimeZone;
.line 7
.line 8
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->f:Lokio/Buffer;
.line 9
.line 10
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->U(JLokio/Buffer;)V
.line 11
.line 12
.line 13
:goto_0
iget-wide p1, v0, Lokio/Buffer;->f:J
.line 14
.line 15
const-wide/16 v1, 0x4000
.line 16
.line 17
cmp-long p1, p1, v1
.line 18
.line 19
if-ltz p1, :cond_0
.line 20
.line 21
const/4 p1, 0x0
.line 22
invoke-virtual {p0, p1}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->a(Z)V
.line 23
.line 24
.line 25
goto :goto_0
.line 26
:cond_0
return-void
.end method
.method public final a(Z)V
.locals 12
.line 1
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 2
.line 3
monitor-enter v1
.line 4
:try_start_0
iget-object v0, v1, Lokhttp3/internal/http2/Http2Stream;->o:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.line 5
.line 6
invoke-virtual {v0}, Lokio/AsyncTimeout;->h()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
.line 7
.line 8
.line 9
:goto_0
:try_start_1
iget-wide v2, v1, Lokhttp3/internal/http2/Http2Stream;->h:J
.line 10
.line 11
iget-wide v4, v1, Lokhttp3/internal/http2/Http2Stream;->i:J
.line 12
.line 13
cmp-long v0, v2, v4
.line 14
.line 15
if-ltz v0, :cond_0
.line 16
.line 17
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->c:Z
.line 18
.line 19
if-nez v0, :cond_0
.line 20
.line 21
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->g:Z
.line 22
.line 23
if-nez v0, :cond_0
.line 24
.line 25
invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream;->h()Lokhttp3/internal/http2/ErrorCode;
.line 26
.line 27
.line 28
move-result-object v0
.line 29
if-nez v0, :cond_0
.line 30
.line 31
invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream;->m()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 32
.line 33
.line 34
goto :goto_0
.line 35
:catchall_0
move-exception v0
.line 36
move-object p1, v0
.line 37
goto :goto_3
.line 38
:cond_0
:try_start_2
iget-object v0, v1, Lokhttp3/internal/http2/Http2Stream;->o:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.line 39
.line 40
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->l()V
.line 41
.line 42
.line 43
invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream;->d()V
.line 44
.line 45
.line 46
iget-wide v2, v1, Lokhttp3/internal/http2/Http2Stream;->i:J
.line 47
.line 48
iget-wide v4, v1, Lokhttp3/internal/http2/Http2Stream;->h:J
.line 49
.line 50
sub-long/2addr v2, v4
.line 51
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->f:Lokio/Buffer;
.line 52
.line 53
iget-wide v4, v0, Lokio/Buffer;->f:J
.line 54
.line 55
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->min(JJ)J
.line 56
.line 57
.line 58
move-result-wide v10
.line 59
iget-wide v2, v1, Lokhttp3/internal/http2/Http2Stream;->h:J
.line 60
.line 61
add-long/2addr v2, v10
.line 62
iput-wide v2, v1, Lokhttp3/internal/http2/Http2Stream;->h:J
.line 63
.line 64
if-eqz p1, :cond_1
.line 65
.line 66
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->f:Lokio/Buffer;
.line 67
.line 68
iget-wide v2, p1, Lokio/Buffer;->f:J
.line 69
.line 70
cmp-long p1, v10, v2
.line 71
.line 72
if-nez p1, :cond_1
.line 73
.line 74
const/4 p1, 0x1
.line 75
:goto_1
move v8, p1
.line 76
goto :goto_2
.line 77
:catchall_1
move-exception v0
.line 78
move-object p1, v0
.line 79
goto :goto_4
.line 80
:cond_1
const/4 p1, 0x0
.line 81
goto :goto_1
.line 82
:goto_2
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
.line 83
.line 84
monitor-exit v1
.line 85
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 86
.line 87
iget-object p1, p1, Lokhttp3/internal/http2/Http2Stream;->o:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.line 88
.line 89
invoke-virtual {p1}, Lokio/AsyncTimeout;->h()V
.line 90
.line 91
.line 92
:try_start_3
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 93
.line 94
iget-object v6, p1, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Connection;
.line 95
.line 96
iget v7, p1, Lokhttp3/internal/http2/Http2Stream;->c:I
.line 97
.line 98
iget-object v9, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->f:Lokio/Buffer;
.line 99
.line 100
invoke-virtual/range {v6 .. v11}, Lokhttp3/internal/http2/Http2Connection;->j(IZLokio/Buffer;J)V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_2
.line 101
.line 102
.line 103
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 104
.line 105
iget-object p1, p1, Lokhttp3/internal/http2/Http2Stream;->o:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.line 106
.line 107
invoke-virtual {p1}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->l()V
.line 108
.line 109
.line 110
return-void
.line 111
:catchall_2
move-exception v0
.line 112
move-object p1, v0
.line 113
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 114
.line 115
iget-object v0, v0, Lokhttp3/internal/http2/Http2Stream;->o:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.line 116
.line 117
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->l()V
.line 118
.line 119
.line 120
throw p1
.line 121
:goto_3
:try_start_4
iget-object v0, v1, Lokhttp3/internal/http2/Http2Stream;->o:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.line 122
.line 123
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->l()V
.line 124
.line 125
.line 126
throw p1
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
.line 127
:goto_4
monitor-exit v1
.line 128
throw p1
.end method
.method public final close()V
.locals 13
.line 1
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 2
.line 3
sget-object v0, Lokhttp3/internal/_UtilJvmKt;->a:Ljava/util/TimeZone;
.line 4
.line 5
monitor-enter v1
.line 6
:try_start_0
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->g:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
.line 7
.line 8
if-eqz v0, :cond_0
.line 9
.line 10
monitor-exit v1
.line 11
return-void
.line 12
:cond_0
:try_start_1
invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream;->h()Lokhttp3/internal/http2/ErrorCode;
.line 13
.line 14
.line 15
move-result-object v0
.line 16
const/4 v2, 0x1
.line 17
if-nez v0, :cond_1
.line 18
.line 19
move v0, v2
.line 20
goto :goto_0
.line 21
:cond_1
const/4 v0, 0x0
.line 22
:goto_0
sget-object v3, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
.line 23
.line 24
monitor-exit v1
.line 25
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 26
.line 27
iget-object v3, v1, Lokhttp3/internal/http2/Http2Stream;->m:Lokhttp3/internal/http2/Http2Stream$FramingSink;
.line 28
.line 29
iget-boolean v3, v3, Lokhttp3/internal/http2/Http2Stream$FramingSink;->c:Z
.line 30
.line 31
if-nez v3, :cond_3
.line 32
.line 33
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->f:Lokio/Buffer;
.line 34
.line 35
iget-wide v3, v3, Lokio/Buffer;->f:J
.line 36
.line 37
const-wide/16 v5, 0x0
.line 38
.line 39
cmp-long v3, v3, v5
.line 40
.line 41
if-lez v3, :cond_2
.line 42
.line 43
:goto_1
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->f:Lokio/Buffer;
.line 44
.line 45
iget-wide v0, v0, Lokio/Buffer;->f:J
.line 46
.line 47
cmp-long v0, v0, v5
.line 48
.line 49
if-lez v0, :cond_3
.line 50
.line 51
invoke-virtual {p0, v2}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->a(Z)V
.line 52
.line 53
.line 54
goto :goto_1
.line 55
:cond_2
if-eqz v0, :cond_3
.line 56
.line 57
iget-object v7, v1, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Connection;
.line 58
.line 59
iget v8, v1, Lokhttp3/internal/http2/Http2Stream;->c:I
.line 60
.line 61
const/4 v10, 0x0
.line 62
const-wide/16 v11, 0x0
.line 63
.line 64
const/4 v9, 0x1
.line 65
invoke-virtual/range {v7 .. v12}, Lokhttp3/internal/http2/Http2Connection;->j(IZLokio/Buffer;J)V
.line 66
.line 67
.line 68
:cond_3
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 69
.line 70
monitor-enter v1
.line 71
:try_start_2
iput-boolean v2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->g:Z
.line 72
.line 73
const-string v0, "null cannot be cast to non-null type java.lang.Object"
.line 74
.line 75
invoke-static {v1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 76
.line 77
.line 78
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
.line 79
.line 80
.line 81
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
.line 82
.line 83
monitor-exit v1
.line 84
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 85
.line 86
iget-object v0, v0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Connection;
.line 87
.line 88
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Connection;->flush()V
.line 89
.line 90
.line 91
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 92
.line 93
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream;->c()V
.line 94
.line 95
.line 96
return-void
.line 97
:catchall_0
move-exception v0
.line 98
monitor-exit v1
.line 99
throw v0
.line 100
:catchall_1
move-exception v0
.line 101
monitor-exit v1
.line 102
throw v0
.end method
.method public final flush()V
.locals 4
.line 1
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 2
.line 3
sget-object v1, Lokhttp3/internal/_UtilJvmKt;->a:Ljava/util/TimeZone;
.line 4
.line 5
monitor-enter v0
.line 6
:try_start_0
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream;->d()V
.line 7
.line 8
.line 9
sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 10
.line 11
monitor-exit v0
.line 12
:goto_0
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->f:Lokio/Buffer;
.line 13
.line 14
iget-wide v0, v0, Lokio/Buffer;->f:J
.line 15
.line 16
const-wide/16 v2, 0x0
.line 17
.line 18
cmp-long v0, v0, v2
.line 19
.line 20
if-lez v0, :cond_0
.line 21
.line 22
const/4 v0, 0x0
.line 23
invoke-virtual {p0, v0}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->a(Z)V
.line 24
.line 25
.line 26
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 27
.line 28
iget-object v0, v0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Connection;
.line 29
.line 30
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Connection;->flush()V
.line 31
.line 32
.line 33
goto :goto_0
.line 34
:cond_0
return-void
.line 35
:catchall_0
move-exception v1
.line 36
monitor-exit v0
.line 37
throw v1
.end method
.method public final timeout()Lokio/Timeout;
.locals 1
.line 1
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->h:Lokhttp3/internal/http2/Http2Stream;
.line 2
.line 3
iget-object v0, v0, Lokhttp3/internal/http2/Http2Stream;->o:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.line 4
.line 5
return-object v0
.end method