soul-browser/app/smali_classes4/kotlin/text/StringsKt__AppendableKt.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

409 lines
11 KiB
Smali

.class Lkotlin/text/StringsKt__AppendableKt;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000<\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\r\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0003\n\u0002\u0010\u0011\n\u0002\u0008\u0004\n\u0002\u0010\u000c\n\u0002\u0008\u0002\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u001a7\u0010\u0000\u001a\u0002H\u0001\"\u000c\u0008\u0000\u0010\u0001*\u00060\u0002j\u0002`\u0003*\u0002H\u00012\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\u0008\u001a\u00020\u0007H\u0007\u00a2\u0006\u0002\u0010\t\u001a5\u0010\n\u001a\u0002H\u0001\"\u000c\u0008\u0000\u0010\u0001*\u00060\u0002j\u0002`\u0003*\u0002H\u00012\u0016\u0010\u0004\u001a\u000c\u0012\u0008\u0008\u0001\u0012\u0004\u0018\u00010\u00050\u000b\"\u0004\u0018\u00010\u0005\u00a2\u0006\u0002\u0010\u000c\u001a\u001a\u0010\r\u001a\u00060\u0002j\u0002`\u0003*\u00060\u0002j\u0002`\u0003H\u0087\u0008\u00a2\u0006\u0002\u0010\u000e\u001a$\u0010\r\u001a\u00060\u0002j\u0002`\u0003*\u00060\u0002j\u0002`\u00032\u0008\u0010\u0004\u001a\u0004\u0018\u00010\u0005H\u0087\u0008\u00a2\u0006\u0002\u0010\u000f\u001a\"\u0010\r\u001a\u00060\u0002j\u0002`\u0003*\u00060\u0002j\u0002`\u00032\u0006\u0010\u0004\u001a\u00020\u0010H\u0087\u0008\u00a2\u0006\u0002\u0010\u0011\u001a9\u0010\u0012\u001a\u00020\u0013\"\u0004\u0008\u0000\u0010\u0001*\u00060\u0002j\u0002`\u00032\u0006\u0010\u0014\u001a\u0002H\u00012\u0014\u0010\u0015\u001a\u0010\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u00020\u0005\u0018\u00010\u0016H\u0000\u00a2\u0006\u0002\u0010\u0017\u00a8\u0006\u0018"
}
d2 = {
"appendRange",
"T",
"Ljava/lang/Appendable;",
"Lkotlin/text/Appendable;",
"value",
"",
"startIndex",
"",
"endIndex",
"(Ljava/lang/Appendable;Ljava/lang/CharSequence;II)Ljava/lang/Appendable;",
"append",
"",
"(Ljava/lang/Appendable;[Ljava/lang/CharSequence;)Ljava/lang/Appendable;",
"appendLine",
"(Ljava/lang/Appendable;)Ljava/lang/Appendable;",
"(Ljava/lang/Appendable;Ljava/lang/CharSequence;)Ljava/lang/Appendable;",
"",
"(Ljava/lang/Appendable;C)Ljava/lang/Appendable;",
"appendElement",
"",
"element",
"transform",
"Lkotlin/Function1;",
"(Ljava/lang/Appendable;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)V",
"kotlin-stdlib"
}
k = 0x5
mv = {
0x2,
0x2,
0x0
}
xi = 0x31
xs = "kotlin/text/StringsKt"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static final varargs append(Ljava/lang/Appendable;[Ljava/lang/CharSequence;)Ljava/lang/Appendable;
.locals 3
.param p0 # Ljava/lang/Appendable;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p1 # [Ljava/lang/CharSequence;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Ljava/lang/Appendable;",
">(TT;[",
"Ljava/lang/CharSequence;",
")TT;"
}
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.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
const-string v0, "value"
.line 7
.line 8
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 9
.line 10
.line 11
array-length v0, p1
.line 12
const/4 v1, 0x0
.line 13
:goto_0
if-ge v1, v0, :cond_0
.line 14
.line 15
aget-object v2, p1, v1
.line 16
.line 17
invoke-interface {p0, v2}, Ljava/lang/Appendable;->append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;
.line 18
.line 19
.line 20
add-int/lit8 v1, v1, 0x1
.line 21
.line 22
goto :goto_0
.line 23
:cond_0
return-object p0
.end method
.method public static appendElement(Ljava/lang/Appendable;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)V
.locals 1
.param p0 # Ljava/lang/Appendable;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p2 # Lkotlin/jvm/functions/Function1;
.annotation build Lorg/jetbrains/annotations/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Appendable;",
"TT;",
"Lkotlin/jvm/functions/Function1<",
"-TT;+",
"Ljava/lang/CharSequence;",
">;)V"
}
.end annotation
.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
if-eqz p2, :cond_0
.line 7
.line 8
invoke-interface {p2, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
.line 9
.line 10
.line 11
move-result-object p1
.line 12
check-cast p1, Ljava/lang/CharSequence;
.line 13
.line 14
invoke-interface {p0, p1}, Ljava/lang/Appendable;->append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;
.line 15
.line 16
.line 17
return-void
.line 18
:cond_0
if-nez p1, :cond_1
.line 19
.line 20
const/4 p2, 0x1
.line 21
goto :goto_0
.line 22
:cond_1
instance-of p2, p1, Ljava/lang/CharSequence;
.line 23
.line 24
:goto_0
if-eqz p2, :cond_2
.line 25
.line 26
check-cast p1, Ljava/lang/CharSequence;
.line 27
.line 28
invoke-interface {p0, p1}, Ljava/lang/Appendable;->append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;
.line 29
.line 30
.line 31
return-void
.line 32
:cond_2
instance-of p2, p1, Ljava/lang/Character;
.line 33
.line 34
if-eqz p2, :cond_3
.line 35
.line 36
check-cast p1, Ljava/lang/Character;
.line 37
.line 38
invoke-virtual {p1}, Ljava/lang/Character;->charValue()C
.line 39
.line 40
.line 41
move-result p1
.line 42
invoke-interface {p0, p1}, Ljava/lang/Appendable;->append(C)Ljava/lang/Appendable;
.line 43
.line 44
.line 45
return-void
.line 46
:cond_3
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
.line 47
.line 48
.line 49
move-result-object p1
.line 50
invoke-interface {p0, p1}, Ljava/lang/Appendable;->append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;
.line 51
.line 52
.line 53
return-void
.end method
.method private static final appendLine(Ljava/lang/Appendable;)Ljava/lang/Appendable;
.locals 1
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/16 v0, 0xa
.line 1
invoke-interface {p0, v0}, Ljava/lang/Appendable;->append(C)Ljava/lang/Appendable;
move-result-object p0
return-object p0
.end method
.method private static final appendLine(Ljava/lang/Appendable;C)Ljava/lang/Appendable;
.locals 1
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 3
invoke-interface {p0, p1}, Ljava/lang/Appendable;->append(C)Ljava/lang/Appendable;
move-result-object p0
const/16 p1, 0xa
invoke-interface {p0, p1}, Ljava/lang/Appendable;->append(C)Ljava/lang/Appendable;
move-result-object p0
return-object p0
.end method
.method private static final appendLine(Ljava/lang/Appendable;Ljava/lang/CharSequence;)Ljava/lang/Appendable;
.locals 1
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lkotlin/internal/InlineOnly;
.end annotation
const-string v0, "<this>"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 2
invoke-interface {p0, p1}, Ljava/lang/Appendable;->append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;
move-result-object p0
const/16 p1, 0xa
invoke-interface {p0, p1}, Ljava/lang/Appendable;->append(C)Ljava/lang/Appendable;
move-result-object p0
return-object p0
.end method
.method public static final appendRange(Ljava/lang/Appendable;Ljava/lang/CharSequence;II)Ljava/lang/Appendable;
.locals 1
.param p0 # Ljava/lang/Appendable;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p1 # Ljava/lang/CharSequence;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Ljava/lang/Appendable;",
">(TT;",
"Ljava/lang/CharSequence;",
"II)TT;"
}
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "1.4"
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.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
const-string v0, "value"
.line 7
.line 8
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 9
.line 10
.line 11
invoke-interface {p0, p1, p2, p3}, Ljava/lang/Appendable;->append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;
.line 12
.line 13
.line 14
move-result-object p0
.line 15
const-string p1, "null cannot be cast to non-null type T of kotlin.text.StringsKt__AppendableKt.appendRange"
.line 16
.line 17
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 18
.line 19
.line 20
return-object p0
.end method