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

678 lines
15 KiB
Smali

.class Lkotlin/text/StringsKt__StringNumberConversionsKt;
.super Lkotlin/text/StringsKt__StringNumberConversionsJVMKt;
.source "SourceFile"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000.\n\u0000\n\u0002\u0010\u0005\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0010\n\n\u0002\u0008\u0006\n\u0002\u0010\t\n\u0002\u0008\u0003\n\u0002\u0010\u0001\n\u0002\u0008\u0002\u001a\u0013\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\u00020\u0002H\u0007\u00a2\u0006\u0002\u0010\u0003\u001a\u001b\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0005H\u0007\u00a2\u0006\u0002\u0010\u0006\u001a\u0013\u0010\u0007\u001a\u0004\u0018\u00010\u0008*\u00020\u0002H\u0007\u00a2\u0006\u0002\u0010\t\u001a\u001b\u0010\u0007\u001a\u0004\u0018\u00010\u0008*\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0005H\u0007\u00a2\u0006\u0002\u0010\n\u001a\u0013\u0010\u000b\u001a\u0004\u0018\u00010\u0005*\u00020\u0002H\u0007\u00a2\u0006\u0002\u0010\u000c\u001a\u001b\u0010\u000b\u001a\u0004\u0018\u00010\u0005*\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0005H\u0007\u00a2\u0006\u0002\u0010\r\u001a\u0013\u0010\u000e\u001a\u0004\u0018\u00010\u000f*\u00020\u0002H\u0007\u00a2\u0006\u0002\u0010\u0010\u001a\u001b\u0010\u000e\u001a\u0004\u0018\u00010\u000f*\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0005H\u0007\u00a2\u0006\u0002\u0010\u0011\u001a\u0010\u0010\u0012\u001a\u00020\u00132\u0006\u0010\u0014\u001a\u00020\u0002H\u0000\u00a8\u0006\u0015"
}
d2 = {
"toByteOrNull",
"",
"",
"(Ljava/lang/String;)Ljava/lang/Byte;",
"radix",
"",
"(Ljava/lang/String;I)Ljava/lang/Byte;",
"toShortOrNull",
"",
"(Ljava/lang/String;)Ljava/lang/Short;",
"(Ljava/lang/String;I)Ljava/lang/Short;",
"toIntOrNull",
"(Ljava/lang/String;)Ljava/lang/Integer;",
"(Ljava/lang/String;I)Ljava/lang/Integer;",
"toLongOrNull",
"",
"(Ljava/lang/String;)Ljava/lang/Long;",
"(Ljava/lang/String;I)Ljava/lang/Long;",
"numberFormatError",
"",
"input",
"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}, Lkotlin/text/StringsKt__StringNumberConversionsJVMKt;-><init>()V
return-void
.end method
.method public static final numberFormatError(Ljava/lang/String;)Ljava/lang/Void;
.locals 3
.param p0 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.line 1
const-string v0, "input"
.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 v0, Ljava/lang/NumberFormatException;
.line 7
.line 8
new-instance v1, Ljava/lang/StringBuilder;
.line 9
.line 10
const-string v2, "Invalid number format: \'"
.line 11
.line 12
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
.line 13
.line 14
.line 15
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 16
.line 17
.line 18
const/16 p0, 0x27
.line 19
.line 20
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 21
.line 22
.line 23
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
.line 24
.line 25
.line 26
move-result-object p0
.line 27
invoke-direct {v0, p0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
.line 28
.line 29
.line 30
throw v0
.end method
.method public static final toByteOrNull(Ljava/lang/String;)Ljava/lang/Byte;
.locals 1
.param p0 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.1"
.end annotation
.annotation build Lorg/jetbrains/annotations/Nullable;
.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-static {p0, v0}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->toByteOrNull(Ljava/lang/String;I)Ljava/lang/Byte;
move-result-object p0
return-object p0
.end method
.method public static final toByteOrNull(Ljava/lang/String;I)Ljava/lang/Byte;
.locals 1
.param p0 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.1"
.end annotation
.annotation build Lorg/jetbrains/annotations/Nullable;
.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-static {p0, p1}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->toIntOrNull(Ljava/lang/String;I)Ljava/lang/Integer;
move-result-object p0
const/4 p1, 0x0
if-eqz p0, :cond_1
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
const/16 v0, -0x80
if-lt p0, v0, :cond_1
const/16 v0, 0x7f
if-le p0, v0, :cond_0
goto :goto_0
:cond_0
int-to-byte p0, p0
.line 3
invoke-static {p0}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
move-result-object p0
return-object p0
:cond_1
:goto_0
return-object p1
.end method
.method public static toIntOrNull(Ljava/lang/String;)Ljava/lang/Integer;
.locals 1
.param p0 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.1"
.end annotation
.annotation build Lorg/jetbrains/annotations/Nullable;
.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-static {p0, v0}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->toIntOrNull(Ljava/lang/String;I)Ljava/lang/Integer;
move-result-object p0
return-object p0
.end method
.method public static final toIntOrNull(Ljava/lang/String;I)Ljava/lang/Integer;
.locals 10
.param p0 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.1"
.end annotation
.annotation build Lorg/jetbrains/annotations/Nullable;
.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-static {p1}, Lkotlin/text/CharsKt__CharJVMKt;->checkRadix(I)I
.line 3
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
return-object v1
:cond_0
const/4 v2, 0x0
.line 4
invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C
move-result v3
const/16 v4, 0x30
.line 5
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->compare(II)I
move-result v4
const v5, -0x7fffffff
if-gez v4, :cond_4
const/4 v4, 0x1
if-ne v0, v4, :cond_1
return-object v1
:cond_1
const/16 v6, 0x2b
if-eq v3, v6, :cond_3
const/16 v5, 0x2d
if-eq v3, v5, :cond_2
return-object v1
:cond_2
const/high16 v5, -0x80000000
move v3, v4
goto :goto_0
:cond_3
move v3, v2
goto :goto_0
:cond_4
move v3, v2
move v4, v3
:goto_0
const v6, -0x38e38e3
move v7, v6
:goto_1
if-ge v4, v0, :cond_9
.line 6
invoke-virtual {p0, v4}, Ljava/lang/String;->charAt(I)C
move-result v8
invoke-static {v8, p1}, Lkotlin/text/CharsKt__CharJVMKt;->digitOf(CI)I
move-result v8
if-gez v8, :cond_5
return-object v1
:cond_5
if-ge v2, v7, :cond_7
if-ne v7, v6, :cond_6
.line 7
div-int v7, v5, p1
if-ge v2, v7, :cond_7
:cond_6
return-object v1
:cond_7
mul-int/2addr v2, p1
add-int v9, v5, v8
if-ge v2, v9, :cond_8
return-object v1
:cond_8
sub-int/2addr v2, v8
add-int/lit8 v4, v4, 0x1
goto :goto_1
:cond_9
if-eqz v3, :cond_a
.line 8
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
:cond_a
neg-int p0, v2
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
.end method
.method public static toLongOrNull(Ljava/lang/String;)Ljava/lang/Long;
.locals 1
.param p0 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.1"
.end annotation
.annotation build Lorg/jetbrains/annotations/Nullable;
.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-static {p0, v0}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->toLongOrNull(Ljava/lang/String;I)Ljava/lang/Long;
move-result-object p0
return-object p0
.end method
.method public static final toLongOrNull(Ljava/lang/String;I)Ljava/lang/Long;
.locals 20
.param p0 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.1"
.end annotation
.annotation build Lorg/jetbrains/annotations/Nullable;
.end annotation
move-object/from16 v0, p0
move/from16 v1, p1
const-string v2, "<this>"
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 2
invoke-static {v1}, Lkotlin/text/CharsKt__CharJVMKt;->checkRadix(I)I
.line 3
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v2
const/4 v3, 0x0
if-nez v2, :cond_0
return-object v3
:cond_0
const/4 v4, 0x0
.line 4
invoke-virtual {v0, v4}, Ljava/lang/String;->charAt(I)C
move-result v5
const/16 v6, 0x30
.line 5
invoke-static {v5, v6}, Lkotlin/jvm/internal/Intrinsics;->compare(II)I
move-result v6
const-wide v7, -0x7fffffffffffffffL # -4.9E-324
if-gez v6, :cond_4
const/4 v6, 0x1
if-ne v2, v6, :cond_1
return-object v3
:cond_1
const/16 v9, 0x2b
if-eq v5, v9, :cond_3
const/16 v4, 0x2d
if-eq v5, v4, :cond_2
return-object v3
:cond_2
const-wide/high16 v7, -0x8000000000000000L
move v4, v6
goto :goto_0
:cond_3
move/from16 v19, v6
move v6, v4
move/from16 v4, v19
goto :goto_0
:cond_4
move v6, v4
:goto_0
const-wide v9, -0x38e38e38e38e38eL # -2.772000429909333E291
const-wide/16 v11, 0x0
move-wide v13, v9
:goto_1
if-ge v4, v2, :cond_9
.line 6
invoke-virtual {v0, v4}, Ljava/lang/String;->charAt(I)C
move-result v5
invoke-static {v5, v1}, Lkotlin/text/CharsKt__CharJVMKt;->digitOf(CI)I
move-result v5
if-gez v5, :cond_5
return-object v3
:cond_5
cmp-long v15, v11, v13
if-gez v15, :cond_6
cmp-long v13, v13, v9
if-nez v13, :cond_7
int-to-long v13, v1
.line 7
div-long v13, v7, v13
cmp-long v15, v11, v13
if-gez v15, :cond_6
return-object v3
:cond_6
move-object v15, v3
move/from16 v16, v4
goto :goto_2
:cond_7
return-object v3
:goto_2
int-to-long v3, v1
mul-long/2addr v11, v3
int-to-long v3, v5
add-long v17, v7, v3
cmp-long v5, v11, v17
if-gez v5, :cond_8
return-object v15
:cond_8
sub-long/2addr v11, v3
add-int/lit8 v4, v16, 0x1
move-object v3, v15
goto :goto_1
:cond_9
if-eqz v6, :cond_a
.line 8
invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
return-object v0
:cond_a
neg-long v0, v11
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
return-object v0
.end method
.method public static final toShortOrNull(Ljava/lang/String;)Ljava/lang/Short;
.locals 1
.param p0 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.1"
.end annotation
.annotation build Lorg/jetbrains/annotations/Nullable;
.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-static {p0, v0}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->toShortOrNull(Ljava/lang/String;I)Ljava/lang/Short;
move-result-object p0
return-object p0
.end method
.method public static final toShortOrNull(Ljava/lang/String;I)Ljava/lang/Short;
.locals 1
.param p0 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation build Lkotlin/SinceKotlin;
version = "1.1"
.end annotation
.annotation build Lorg/jetbrains/annotations/Nullable;
.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-static {p0, p1}, Lkotlin/text/StringsKt__StringNumberConversionsKt;->toIntOrNull(Ljava/lang/String;I)Ljava/lang/Integer;
move-result-object p0
const/4 p1, 0x0
if-eqz p0, :cond_1
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
const/16 v0, -0x8000
if-lt p0, v0, :cond_1
const/16 v0, 0x7fff
if-le p0, v0, :cond_0
goto :goto_0
:cond_0
int-to-short p0, p0
.line 3
invoke-static {p0}, Ljava/lang/Short;->valueOf(S)Ljava/lang/Short;
move-result-object p0
return-object p0
:cond_1
:goto_0
return-object p1
.end method