* 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>
326 lines
6.7 KiB
Smali
326 lines
6.7 KiB
Smali
.class public final Lokio/ByteString$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokio/ByteString;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\u0008\u0086\u0003\u0018\u00002\u00020\u0001R\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082T\u00a2\u0006\u0006\n\u0004\u0008\u0003\u0010\u0004R\u0014\u0010\u0006\u001a\u00020\u00058\u0006X\u0087\u0004\u00a2\u0006\u0006\n\u0004\u0008\u0006\u0010\u0007\u00a8\u0006\u0008"
|
|
}
|
|
d2 = {
|
|
"Lokio/ByteString$Companion;",
|
|
"",
|
|
"",
|
|
"serialVersionUID",
|
|
"J",
|
|
"Lokio/ByteString;",
|
|
"EMPTY",
|
|
"Lokio/ByteString;",
|
|
"okio"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nByteString.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ByteString.kt\nokio/ByteString$Companion\n+ 2 ByteString.kt\nokio/internal/-ByteString\n+ 3 ByteStringNonJs.kt\nokio/internal/-ByteStringNonJs\n+ 4 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,364:1\n269#2:365\n273#2,3:366\n280#2,3:369\n287#2,2:372\n25#3:374\n27#3,7:376\n1#4:375\n1#4:383\n*S KotlinDebug\n*F\n+ 1 ByteString.kt\nokio/ByteString$Companion\n*L\n234#1:365\n239#1:366,3\n251#1:369,3\n259#1:372,2\n262#1:374\n262#1:376,7\n262#1:375\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static a(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 5
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.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
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v0
|
|
|
|
.line 10
|
|
rem-int/lit8 v0, v0, 0x2
|
|
|
|
.line 11
|
|
.line 12
|
|
if-nez v0, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result v0
|
|
|
|
.line 18
|
|
div-int/lit8 v0, v0, 0x2
|
|
|
|
.line 19
|
|
.line 20
|
|
new-array v1, v0, [B
|
|
|
|
.line 21
|
|
.line 22
|
|
const/4 v2, 0x0
|
|
|
|
.line 23
|
|
:goto_0
|
|
if-ge v2, v0, :cond_0
|
|
|
|
.line 24
|
|
.line 25
|
|
mul-int/lit8 v3, v2, 0x2
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {p0, v3}, Ljava/lang/String;->charAt(I)C
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result v4
|
|
|
|
.line 31
|
|
invoke-static {v4}, Lokio/internal/-ByteStringNonJs;->a(C)I
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result v4
|
|
|
|
.line 35
|
|
shl-int/lit8 v4, v4, 0x4
|
|
|
|
.line 36
|
|
.line 37
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {p0, v3}, Ljava/lang/String;->charAt(I)C
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
move-result v3
|
|
|
|
.line 43
|
|
invoke-static {v3}, Lokio/internal/-ByteStringNonJs;->a(C)I
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result v3
|
|
|
|
.line 47
|
|
add-int/2addr v3, v4
|
|
|
|
.line 48
|
|
int-to-byte v3, v3
|
|
|
|
.line 49
|
|
aput-byte v3, v1, v2
|
|
|
|
.line 50
|
|
.line 51
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 52
|
|
.line 53
|
|
goto :goto_0
|
|
|
|
.line 54
|
|
:cond_0
|
|
new-instance p0, Lokio/ByteString;
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-direct {p0, v1}, Lokio/ByteString;-><init>([B)V
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
return-object p0
|
|
|
|
.line 60
|
|
:cond_1
|
|
const-string v0, "Unexpected hex string: "
|
|
|
|
.line 61
|
|
.line 62
|
|
invoke-virtual {v0, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
move-result-object p0
|
|
|
|
.line 66
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 67
|
|
.line 68
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
move-result-object p0
|
|
|
|
.line 72
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static b(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 3
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.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
|
|
new-instance v1, Lokio/ByteString;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
sget-object v0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object v0
|
|
|
|
.line 17
|
|
const-string v2, "getBytes(...)"
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
invoke-direct {v1, v0}, Lokio/ByteString;-><init>([B)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
iput-object p0, v1, Lokio/ByteString;->g:Ljava/lang/String;
|
|
|
|
.line 26
|
|
.line 27
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public static c([B)Lokio/ByteString;
|
|
.locals 8
|
|
|
|
.line 1
|
|
sget-object v0, Lokio/ByteString;->h:Lokio/ByteString;
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v0, "<this>"
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
array-length v0, p0
|
|
|
|
.line 12
|
|
array-length v1, p0
|
|
|
|
.line 13
|
|
int-to-long v2, v1
|
|
|
|
.line 14
|
|
const/4 v1, 0x0
|
|
|
|
.line 15
|
|
int-to-long v4, v1
|
|
|
|
.line 16
|
|
int-to-long v6, v0
|
|
|
|
.line 17
|
|
invoke-static/range {v2 .. v7}, Lokio/-SegmentedByteString;->b(JJJ)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
new-instance v2, Lokio/ByteString;
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-static {p0, v1, v0}, Lkotlin/collections/ArraysKt;->copyOfRange([BII)[B
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object p0
|
|
|
|
.line 26
|
|
invoke-direct {v2, p0}, Lokio/ByteString;-><init>([B)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
return-object v2
|
|
.end method
|