* 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>
330 lines
6.8 KiB
Smali
330 lines
6.8 KiB
Smali
.class public final Lokio/internal/-Buffer;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u0002\n\u0000\u00a8\u0006\u0000"
|
|
}
|
|
d2 = {
|
|
"okio"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-Buffer"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nBuffer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Buffer.kt\nokio/internal/-Buffer\n+ 2 Util.kt\nokio/-SegmentedByteString\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,1712:1\n110#1,20:1735\n110#1,20:1768\n110#1:1788\n112#1,18:1790\n110#1,20:1808\n73#2:1713\n73#2:1714\n73#2:1715\n73#2:1716\n73#2:1717\n73#2:1718\n73#2:1719\n73#2:1720\n73#2:1721\n73#2:1722\n73#2:1723\n73#2:1724\n82#2:1725\n82#2:1726\n76#2:1727\n76#2:1728\n76#2:1729\n76#2:1730\n76#2:1731\n76#2:1732\n76#2:1733\n76#2:1734\n85#2:1755\n88#2:1757\n73#2:1758\n73#2:1759\n73#2:1760\n73#2:1761\n73#2:1762\n73#2:1763\n73#2:1764\n73#2:1765\n73#2:1766\n73#2:1767\n88#2:1789\n85#2:1828\n1#3:1756\n*S KotlinDebug\n*F\n+ 1 Buffer.kt\nokio/internal/-Buffer\n*L\n413#1:1735,20\n1262#1:1768,20\n1305#1:1788\n1305#1:1790,18\n1341#1:1808,20\n176#1:1713\n200#1:1714\n319#1:1715\n324#1:1716\n347#1:1717\n348#1:1718\n349#1:1719\n350#1:1720\n356#1:1721\n357#1:1722\n358#1:1723\n359#1:1724\n383#1:1725\n384#1:1726\n390#1:1727\n391#1:1728\n392#1:1729\n393#1:1730\n394#1:1731\n395#1:1732\n396#1:1733\n397#1:1734\n425#1:1755\n858#1:1757\n876#1:1758\n878#1:1759\n882#1:1760\n884#1:1761\n888#1:1762\n890#1:1763\n894#1:1764\n896#1:1765\n916#1:1766\n919#1:1767\n1317#1:1789\n1658#1:1828\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final a:[B
|
|
|
|
.field public static final b:[J
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v1, "0123456789abcdef"
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {v1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
sget-object v0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v0
|
|
|
|
.line 14
|
|
const-string v1, "getBytes(...)"
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
sput-object v0, Lokio/internal/-Buffer;->a:[B
|
|
|
|
.line 20
|
|
.line 21
|
|
const/16 v0, 0x14
|
|
|
|
.line 22
|
|
.line 23
|
|
new-array v0, v0, [J
|
|
|
|
.line 24
|
|
.line 25
|
|
fill-array-data v0, :array_0
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
sput-object v0, Lokio/internal/-Buffer;->b:[J
|
|
|
|
.line 29
|
|
.line 30
|
|
return-void
|
|
|
|
.line 31
|
|
:array_0
|
|
.array-data 8
|
|
-0x1
|
|
0x9
|
|
0x63
|
|
0x3e7
|
|
0x270f
|
|
0x1869f
|
|
0xf423f
|
|
0x98967f
|
|
0x5f5e0ff
|
|
0x3b9ac9ff
|
|
0x2540be3ffL
|
|
0x174876e7ffL
|
|
0xe8d4a50fffL
|
|
0x9184e729fffL
|
|
0x5af3107a3fffL
|
|
0x38d7ea4c67fffL
|
|
0x2386f26fc0ffffL
|
|
0x16345785d89ffffL
|
|
0xde0b6b3a763ffffL
|
|
0x7fffffffffffffffL
|
|
.end array-data
|
|
.end method
|
|
|
|
.method public static final a(Lokio/Segment;I[BII)Z
|
|
.locals 5
|
|
|
|
.line 1
|
|
const-string v0, "segment"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const-string v0, "bytes"
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
iget v0, p0, Lokio/Segment;->c:I
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-object v1, p0, Lokio/Segment;->a:[B
|
|
|
|
.line 14
|
|
.line 15
|
|
:goto_0
|
|
if-ge p3, p4, :cond_2
|
|
|
|
.line 16
|
|
.line 17
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 18
|
|
.line 19
|
|
iget-object p0, p0, Lokio/Segment;->f:Lokio/Segment;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
iget-object p1, p0, Lokio/Segment;->a:[B
|
|
|
|
.line 25
|
|
.line 26
|
|
iget v0, p0, Lokio/Segment;->b:I
|
|
|
|
.line 27
|
|
.line 28
|
|
iget v1, p0, Lokio/Segment;->c:I
|
|
|
|
.line 29
|
|
.line 30
|
|
move v4, v1
|
|
|
|
.line 31
|
|
move-object v1, p1
|
|
|
|
.line 32
|
|
move p1, v0
|
|
|
|
.line 33
|
|
move v0, v4
|
|
|
|
.line 34
|
|
:cond_0
|
|
aget-byte v2, v1, p1
|
|
|
|
.line 35
|
|
.line 36
|
|
aget-byte v3, p2, p3
|
|
|
|
.line 37
|
|
.line 38
|
|
if-eq v2, v3, :cond_1
|
|
|
|
.line 39
|
|
.line 40
|
|
const/4 p0, 0x0
|
|
|
|
.line 41
|
|
return p0
|
|
|
|
.line 42
|
|
:cond_1
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
.line 43
|
|
.line 44
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
.line 45
|
|
.line 46
|
|
goto :goto_0
|
|
|
|
.line 47
|
|
:cond_2
|
|
const/4 p0, 0x1
|
|
|
|
.line 48
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final b(JLokio/Buffer;)Ljava/lang/String;
|
|
.locals 6
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 7
|
|
.line 8
|
|
cmp-long v0, p0, v0
|
|
|
|
.line 9
|
|
.line 10
|
|
const-wide/16 v1, 0x1
|
|
|
|
.line 11
|
|
.line 12
|
|
if-lez v0, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
sub-long v3, p0, v1
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p2, v3, v4}, Lokio/Buffer;->d(J)B
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result v0
|
|
|
|
.line 20
|
|
const/16 v5, 0xd
|
|
|
|
.line 21
|
|
.line 22
|
|
if-ne v0, v5, :cond_0
|
|
|
|
.line 23
|
|
.line 24
|
|
sget-object p0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {p2, v3, v4, p0}, Lokio/Buffer;->j(JLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object p0
|
|
|
|
.line 30
|
|
const-wide/16 v0, 0x2
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {p2, v0, v1}, Lokio/Buffer;->skip(J)V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
return-object p0
|
|
|
|
.line 36
|
|
:cond_0
|
|
sget-object v0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
.line 37
|
|
.line 38
|
|
invoke-virtual {p2, p0, p1, v0}, Lokio/Buffer;->j(JLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
move-result-object p0
|
|
|
|
.line 42
|
|
invoke-virtual {p2, v1, v2}, Lokio/Buffer;->skip(J)V
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
return-object p0
|
|
.end method
|