* 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>
415 lines
7.9 KiB
Smali
415 lines
7.9 KiB
Smali
.class public final Lokhttp3/internal/http2/Http2Reader$ContinuationSource;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lokio/Source;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/internal/http2/Http2Reader;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "ContinuationSource"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0008\u0000\u0018\u00002\u00020\u0001\u00a8\u0006\u0002"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/internal/http2/Http2Reader$ContinuationSource;",
|
|
"Lokio/Source;",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final c:Lokio/BufferedSource;
|
|
|
|
.field public f:I
|
|
|
|
.field public g:I
|
|
|
|
.field public h:I
|
|
|
|
.field public i:I
|
|
|
|
.field public j:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokio/BufferedSource;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "source"
|
|
|
|
.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-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->c:Lokio/BufferedSource;
|
|
|
|
.line 10
|
|
.line 11
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final close()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final p0(JLokio/Buffer;)J
|
|
.locals 8
|
|
|
|
.line 1
|
|
const-string v0, "sink"
|
|
|
|
.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
|
|
:goto_0
|
|
iget v0, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->i:I
|
|
|
|
.line 7
|
|
.line 8
|
|
const-wide/16 v1, -0x1
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->c:Lokio/BufferedSource;
|
|
|
|
.line 11
|
|
.line 12
|
|
if-nez v0, :cond_4
|
|
|
|
.line 13
|
|
.line 14
|
|
iget v0, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->j:I
|
|
|
|
.line 15
|
|
.line 16
|
|
int-to-long v4, v0
|
|
|
|
.line 17
|
|
invoke-interface {v3, v4, v5}, Lokio/BufferedSource;->skip(J)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
const/4 v0, 0x0
|
|
|
|
.line 21
|
|
iput v0, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->j:I
|
|
|
|
.line 22
|
|
.line 23
|
|
iget v0, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->g:I
|
|
|
|
.line 24
|
|
.line 25
|
|
and-int/lit8 v0, v0, 0x4
|
|
|
|
.line 26
|
|
.line 27
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 28
|
|
.line 29
|
|
goto :goto_1
|
|
|
|
.line 30
|
|
:cond_0
|
|
iget v0, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->h:I
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-static {v3}, Lokhttp3/internal/_UtilCommonKt;->k(Lokio/BufferedSource;)I
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result v1
|
|
|
|
.line 36
|
|
iput v1, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->i:I
|
|
|
|
.line 37
|
|
.line 38
|
|
iput v1, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->f:I
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-interface {v3}, Lokio/BufferedSource;->readByte()B
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result v1
|
|
|
|
.line 44
|
|
and-int/lit16 v1, v1, 0xff
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-interface {v3}, Lokio/BufferedSource;->readByte()B
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result v2
|
|
|
|
.line 50
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
.line 51
|
|
.line 52
|
|
iput v2, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->g:I
|
|
|
|
.line 53
|
|
.line 54
|
|
sget-object v2, Lokhttp3/internal/http2/Http2Reader;->h:Ljava/util/logging/Logger;
|
|
|
|
.line 55
|
|
.line 56
|
|
sget-object v4, Ljava/util/logging/Level;->FINE:Ljava/util/logging/Level;
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {v2, v4}, Ljava/util/logging/Logger;->isLoggable(Ljava/util/logging/Level;)Z
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result v4
|
|
|
|
.line 62
|
|
if-eqz v4, :cond_1
|
|
|
|
.line 63
|
|
.line 64
|
|
sget-object v4, Lokhttp3/internal/http2/Http2;->a:Lokio/ByteString;
|
|
|
|
.line 65
|
|
.line 66
|
|
iget v4, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->h:I
|
|
|
|
.line 67
|
|
.line 68
|
|
iget v5, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->f:I
|
|
|
|
.line 69
|
|
.line 70
|
|
iget v6, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->g:I
|
|
|
|
.line 71
|
|
.line 72
|
|
const/4 v7, 0x1
|
|
|
|
.line 73
|
|
invoke-static {v7, v4, v5, v1, v6}, Lokhttp3/internal/http2/Http2;->b(ZIIII)Ljava/lang/String;
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
move-result-object v4
|
|
|
|
.line 77
|
|
invoke-virtual {v2, v4}, Ljava/util/logging/Logger;->fine(Ljava/lang/String;)V
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
:cond_1
|
|
invoke-interface {v3}, Lokio/BufferedSource;->readInt()I
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
move-result v2
|
|
|
|
.line 84
|
|
const v3, 0x7fffffff
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
and-int/2addr v2, v3
|
|
|
|
.line 88
|
|
iput v2, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->h:I
|
|
|
|
.line 89
|
|
.line 90
|
|
const/16 v3, 0x9
|
|
|
|
.line 91
|
|
.line 92
|
|
if-ne v1, v3, :cond_3
|
|
|
|
.line 93
|
|
.line 94
|
|
if-ne v2, v0, :cond_2
|
|
|
|
.line 95
|
|
.line 96
|
|
goto :goto_0
|
|
|
|
.line 97
|
|
:cond_2
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
.line 98
|
|
.line 99
|
|
const-string p2, "TYPE_CONTINUATION streamId changed"
|
|
|
|
.line 100
|
|
.line 101
|
|
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 102
|
|
.line 103
|
|
.line 104
|
|
throw p1
|
|
|
|
.line 105
|
|
:cond_3
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
.line 106
|
|
.line 107
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
.line 108
|
|
.line 109
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
.line 110
|
|
.line 111
|
|
.line 112
|
|
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
.line 113
|
|
.line 114
|
|
.line 115
|
|
const-string p3, " != TYPE_CONTINUATION"
|
|
|
|
.line 116
|
|
.line 117
|
|
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 118
|
|
.line 119
|
|
.line 120
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 121
|
|
.line 122
|
|
.line 123
|
|
move-result-object p2
|
|
|
|
.line 124
|
|
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 125
|
|
.line 126
|
|
.line 127
|
|
throw p1
|
|
|
|
.line 128
|
|
:cond_4
|
|
int-to-long v4, v0
|
|
|
|
.line 129
|
|
invoke-static {p1, p2, v4, v5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
.line 130
|
|
.line 131
|
|
.line 132
|
|
move-result-wide p1
|
|
|
|
.line 133
|
|
invoke-interface {v3, p1, p2, p3}, Lokio/Source;->p0(JLokio/Buffer;)J
|
|
|
|
.line 134
|
|
.line 135
|
|
.line 136
|
|
move-result-wide p1
|
|
|
|
.line 137
|
|
cmp-long p3, p1, v1
|
|
|
|
.line 138
|
|
.line 139
|
|
if-nez p3, :cond_5
|
|
|
|
.line 140
|
|
.line 141
|
|
:goto_1
|
|
return-wide v1
|
|
|
|
.line 142
|
|
:cond_5
|
|
iget p3, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->i:I
|
|
|
|
.line 143
|
|
.line 144
|
|
long-to-int v0, p1
|
|
|
|
.line 145
|
|
sub-int/2addr p3, v0
|
|
|
|
.line 146
|
|
iput p3, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->i:I
|
|
|
|
.line 147
|
|
.line 148
|
|
return-wide p1
|
|
.end method
|
|
|
|
.method public final timeout()Lokio/Timeout;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->c:Lokio/BufferedSource;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-interface {v0}, Lokio/Source;->timeout()Lokio/Timeout;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
return-object v0
|
|
.end method
|