* 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>
565 lines
11 KiB
Smali
565 lines
11 KiB
Smali
.class public final Lokio/RealBufferedSource$inputStream$1;
|
|
.super Ljava/io/InputStream;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u0008\n\u0000\n\u0002\u0018\u0002\n\u0000\u0008\n\u0018\u00002\u00020\u0001\u00a8\u0006\u0002"
|
|
}
|
|
d2 = {
|
|
"okio/RealBufferedSource$inputStream$1",
|
|
"Ljava/io/InputStream;",
|
|
"okio"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nRealBufferedSource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RealBufferedSource.kt\nokio/RealBufferedSource$inputStream$1\n+ 2 RealBufferedSource.kt\nokio/RealBufferedSource\n+ 3 Util.kt\nokio/-SegmentedByteString\n*L\n1#1,207:1\n63#2:208\n63#2:209\n63#2:210\n63#2:212\n63#2:213\n63#2:214\n63#2:215\n63#2:217\n63#2:218\n63#2:219\n63#2:220\n73#3:211\n85#3:216\n*S KotlinDebug\n*F\n+ 1 RealBufferedSource.kt\nokio/RealBufferedSource$inputStream$1\n*L\n157#1:208\n158#1:209\n161#1:210\n168#1:212\n169#1:213\n173#1:214\n178#1:215\n189#1:217\n190#1:218\n193#1:219\n194#1:220\n161#1:211\n178#1:216\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic c:Lokio/RealBufferedSource;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokio/RealBufferedSource;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lokio/RealBufferedSource$inputStream$1;->c:Lokio/RealBufferedSource;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final available()I
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/RealBufferedSource$inputStream$1;->c:Lokio/RealBufferedSource;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-boolean v1, v0, Lokio/RealBufferedSource;->g:Z
|
|
|
|
.line 4
|
|
.line 5
|
|
if-nez v1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, v0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-wide v0, v0, Lokio/Buffer;->f:J
|
|
|
|
.line 10
|
|
.line 11
|
|
const v2, 0x7fffffff
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
int-to-long v2, v2
|
|
|
|
.line 15
|
|
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-wide v0
|
|
|
|
.line 19
|
|
long-to-int v0, v0
|
|
|
|
.line 20
|
|
return v0
|
|
|
|
.line 21
|
|
:cond_0
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
.line 22
|
|
.line 23
|
|
const-string v1, "closed"
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final close()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/RealBufferedSource$inputStream$1;->c:Lokio/RealBufferedSource;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Lokio/RealBufferedSource;->close()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final read()I
|
|
.locals 6
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/RealBufferedSource$inputStream$1;->c:Lokio/RealBufferedSource;
|
|
|
|
iget-object v1, v0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
iget-boolean v2, v0, Lokio/RealBufferedSource;->g:Z
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
.line 2
|
|
iget-wide v2, v1, Lokio/Buffer;->f:J
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long v2, v2, v4
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
.line 3
|
|
iget-object v0, v0, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
const-wide/16 v2, 0x2000
|
|
|
|
invoke-interface {v0, v2, v3, v1}, Lokio/Source;->p0(JLokio/Buffer;)J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, -0x1
|
|
|
|
return v0
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-virtual {v1}, Lokio/Buffer;->readByte()B
|
|
|
|
move-result v0
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
return v0
|
|
|
|
.line 5
|
|
:cond_1
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v1, "closed"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final read([BII)I
|
|
.locals 9
|
|
|
|
const-string v0, "data"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
iget-object v0, p0, Lokio/RealBufferedSource$inputStream$1;->c:Lokio/RealBufferedSource;
|
|
|
|
iget-object v1, v0, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
iget-boolean v2, v0, Lokio/RealBufferedSource;->g:Z
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
.line 7
|
|
array-length v2, p1
|
|
|
|
int-to-long v3, v2
|
|
|
|
int-to-long v5, p2
|
|
|
|
int-to-long v7, p3
|
|
|
|
invoke-static/range {v3 .. v8}, Lokio/-SegmentedByteString;->b(JJJ)V
|
|
|
|
.line 8
|
|
iget-wide v2, v1, Lokio/Buffer;->f:J
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long v2, v2, v4
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
.line 9
|
|
iget-object v0, v0, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
const-wide/16 v2, 0x2000
|
|
|
|
invoke-interface {v0, v2, v3, v1}, Lokio/Source;->p0(JLokio/Buffer;)J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, -0x1
|
|
|
|
return p1
|
|
|
|
.line 10
|
|
:cond_0
|
|
invoke-virtual {v1, p1, p2, p3}, Lokio/Buffer;->read([BII)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
.line 11
|
|
:cond_1
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
const-string p2, "closed"
|
|
|
|
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object v1, p0, Lokio/RealBufferedSource$inputStream$1;->c:Lokio/RealBufferedSource;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
const-string v1, ".inputStream()"
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v0
|
|
|
|
.line 20
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final transferTo(Ljava/io/OutputStream;)J
|
|
.locals 16
|
|
|
|
.line 1
|
|
move-object/from16 v0, p1
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v1, "out"
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-object/from16 v2, p0
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-object v3, v2, Lokio/RealBufferedSource$inputStream$1;->c:Lokio/RealBufferedSource;
|
|
|
|
.line 11
|
|
.line 12
|
|
iget-object v4, v3, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 13
|
|
.line 14
|
|
iget-boolean v5, v3, Lokio/RealBufferedSource;->g:Z
|
|
|
|
.line 15
|
|
.line 16
|
|
if-nez v5, :cond_4
|
|
|
|
.line 17
|
|
.line 18
|
|
const-wide/16 v5, 0x0
|
|
|
|
.line 19
|
|
.line 20
|
|
move-wide v7, v5
|
|
|
|
.line 21
|
|
:cond_0
|
|
iget-wide v9, v4, Lokio/Buffer;->f:J
|
|
|
|
.line 22
|
|
.line 23
|
|
cmp-long v9, v9, v5
|
|
|
|
.line 24
|
|
.line 25
|
|
if-nez v9, :cond_2
|
|
|
|
.line 26
|
|
.line 27
|
|
iget-object v9, v3, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
.line 28
|
|
.line 29
|
|
const-wide/16 v10, 0x2000
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-interface {v9, v10, v11, v4}, Lokio/Source;->p0(JLokio/Buffer;)J
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-wide v9
|
|
|
|
.line 35
|
|
const-wide/16 v11, -0x1
|
|
|
|
.line 36
|
|
.line 37
|
|
cmp-long v9, v9, v11
|
|
|
|
.line 38
|
|
.line 39
|
|
if-eqz v9, :cond_1
|
|
|
|
.line 40
|
|
.line 41
|
|
goto :goto_0
|
|
|
|
.line 42
|
|
:cond_1
|
|
return-wide v7
|
|
|
|
.line 43
|
|
:cond_2
|
|
:goto_0
|
|
iget-wide v14, v4, Lokio/Buffer;->f:J
|
|
|
|
.line 44
|
|
.line 45
|
|
add-long/2addr v7, v14
|
|
|
|
.line 46
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
iget-wide v10, v4, Lokio/Buffer;->f:J
|
|
|
|
.line 50
|
|
.line 51
|
|
const-wide/16 v12, 0x0
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-static/range {v10 .. v15}, Lokio/-SegmentedByteString;->b(JJJ)V
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
iget-object v9, v4, Lokio/Buffer;->c:Lokio/Segment;
|
|
|
|
.line 57
|
|
.line 58
|
|
:goto_1
|
|
cmp-long v10, v14, v5
|
|
|
|
.line 59
|
|
.line 60
|
|
if-lez v10, :cond_0
|
|
|
|
.line 61
|
|
.line 62
|
|
invoke-static {v9}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
iget v10, v9, Lokio/Segment;->c:I
|
|
|
|
.line 66
|
|
.line 67
|
|
iget v11, v9, Lokio/Segment;->b:I
|
|
|
|
.line 68
|
|
.line 69
|
|
sub-int/2addr v10, v11
|
|
|
|
.line 70
|
|
int-to-long v10, v10
|
|
|
|
.line 71
|
|
invoke-static {v14, v15, v10, v11}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
move-result-wide v10
|
|
|
|
.line 75
|
|
long-to-int v10, v10
|
|
|
|
.line 76
|
|
iget-object v11, v9, Lokio/Segment;->a:[B
|
|
|
|
.line 77
|
|
.line 78
|
|
iget v12, v9, Lokio/Segment;->b:I
|
|
|
|
.line 79
|
|
.line 80
|
|
invoke-virtual {v0, v11, v12, v10}, Ljava/io/OutputStream;->write([BII)V
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
iget v11, v9, Lokio/Segment;->b:I
|
|
|
|
.line 84
|
|
.line 85
|
|
add-int/2addr v11, v10
|
|
|
|
.line 86
|
|
iput v11, v9, Lokio/Segment;->b:I
|
|
|
|
.line 87
|
|
.line 88
|
|
iget-wide v12, v4, Lokio/Buffer;->f:J
|
|
|
|
.line 89
|
|
.line 90
|
|
int-to-long v5, v10
|
|
|
|
.line 91
|
|
sub-long/2addr v12, v5
|
|
|
|
.line 92
|
|
iput-wide v12, v4, Lokio/Buffer;->f:J
|
|
|
|
.line 93
|
|
.line 94
|
|
sub-long/2addr v14, v5
|
|
|
|
.line 95
|
|
iget v5, v9, Lokio/Segment;->c:I
|
|
|
|
.line 96
|
|
.line 97
|
|
if-ne v11, v5, :cond_3
|
|
|
|
.line 98
|
|
.line 99
|
|
invoke-virtual {v9}, Lokio/Segment;->a()Lokio/Segment;
|
|
|
|
.line 100
|
|
.line 101
|
|
.line 102
|
|
move-result-object v5
|
|
|
|
.line 103
|
|
iput-object v5, v4, Lokio/Buffer;->c:Lokio/Segment;
|
|
|
|
.line 104
|
|
.line 105
|
|
invoke-static {v9}, Lokio/SegmentPool;->a(Lokio/Segment;)V
|
|
|
|
.line 106
|
|
.line 107
|
|
.line 108
|
|
move-object v9, v5
|
|
|
|
.line 109
|
|
:cond_3
|
|
const-wide/16 v5, 0x0
|
|
|
|
.line 110
|
|
.line 111
|
|
goto :goto_1
|
|
|
|
.line 112
|
|
:cond_4
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
.line 113
|
|
.line 114
|
|
const-string v1, "closed"
|
|
|
|
.line 115
|
|
.line 116
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 117
|
|
.line 118
|
|
.line 119
|
|
throw v0
|
|
.end method
|