* 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>
514 lines
11 KiB
Smali
514 lines
11 KiB
Smali
.class Lkotlin/text/CharsKt__CharKt;
|
|
.super Lkotlin/text/CharsKt__CharJVMKt;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u001e\n\u0000\n\u0002\u0010\u0008\n\u0002\u0010\u000c\n\u0002\u0008\u0006\n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0002\u0008\u0003\u001a\u000c\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0007\u001a\u0014\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0001H\u0007\u001a\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0001*\u00020\u0002H\u0007\u00a2\u0006\u0002\u0010\u0005\u001a\u001b\u0010\u0004\u001a\u0004\u0018\u00010\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0001H\u0007\u00a2\u0006\u0002\u0010\u0006\u001a\u000c\u0010\u0007\u001a\u00020\u0002*\u00020\u0001H\u0007\u001a\u0014\u0010\u0007\u001a\u00020\u0002*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0001H\u0007\u001a\u000c\u0010\u0008\u001a\u00020\t*\u00020\u0002H\u0007\u001a\u0015\u0010\n\u001a\u00020\t*\u00020\u00022\u0006\u0010\u000b\u001a\u00020\tH\u0087\n\u001a\u001c\u0010\u000c\u001a\u00020\r*\u00020\u00022\u0006\u0010\u000b\u001a\u00020\u00022\u0008\u0008\u0002\u0010\u000e\u001a\u00020\r\u001a\n\u0010\u000f\u001a\u00020\r*\u00020\u0002\u00a8\u0006\u0010"
|
|
}
|
|
d2 = {
|
|
"digitToInt",
|
|
"",
|
|
"",
|
|
"radix",
|
|
"digitToIntOrNull",
|
|
"(C)Ljava/lang/Integer;",
|
|
"(CI)Ljava/lang/Integer;",
|
|
"digitToChar",
|
|
"titlecase",
|
|
"",
|
|
"plus",
|
|
"other",
|
|
"equals",
|
|
"",
|
|
"ignoreCase",
|
|
"isSurrogate",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x5
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x31
|
|
xs = "kotlin/text/CharsKt"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nChar.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Char.kt\nkotlin/text/CharsKt__CharKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,339:1\n1#2:340\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lkotlin/text/CharsKt__CharJVMKt;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final digitToChar(I)C
|
|
.locals 3
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
if-ltz p0, :cond_0
|
|
|
|
const/16 v0, 0xa
|
|
|
|
if-ge p0, v0, :cond_0
|
|
|
|
add-int/lit8 p0, p0, 0x30
|
|
|
|
int-to-char p0, p0
|
|
|
|
return p0
|
|
|
|
.line 1
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Int "
|
|
|
|
const-string v2, " is not a decimal digit"
|
|
|
|
.line 2
|
|
invoke-static {p0, v1, v2}, Landroid/support/v4/media/a;->f(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 3
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final digitToChar(II)C
|
|
.locals 3
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-gt v0, p1, :cond_2
|
|
|
|
const/16 v0, 0x25
|
|
|
|
if-ge p1, v0, :cond_2
|
|
|
|
if-ltz p0, :cond_1
|
|
|
|
if-ge p0, p1, :cond_1
|
|
|
|
const/16 p1, 0xa
|
|
|
|
if-ge p0, p1, :cond_0
|
|
|
|
add-int/lit8 p0, p0, 0x30
|
|
|
|
:goto_0
|
|
int-to-char p0, p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
add-int/lit8 p0, p0, 0x41
|
|
|
|
int-to-char p0, p0
|
|
|
|
sub-int/2addr p0, p1
|
|
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Digit "
|
|
|
|
const-string v2, " does not represent a valid digit in radix "
|
|
|
|
.line 10
|
|
invoke-static {v1, p0, p1, v2}, Landroidx/work/impl/workers/a;->s(Ljava/lang/String;IILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 11
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 12
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Invalid radix: "
|
|
|
|
const-string v1, ". Valid radix values are in range 2..36"
|
|
|
|
.line 13
|
|
invoke-static {p1, v0, v1}, Landroid/support/v4/media/a;->f(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 14
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final digitToInt(C)I
|
|
.locals 3
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 1
|
|
invoke-static {p0, v0}, Lkotlin/text/CharsKt__CharJVMKt;->digitOf(CI)I
|
|
|
|
move-result v0
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Char "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, " is not a decimal digit"
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final digitToInt(CI)I
|
|
.locals 3
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.line 3
|
|
invoke-static {p0, p1}, Lkotlin/text/CharsKt__CharKt;->digitToIntOrNull(CI)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Char "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, " is not a digit in the given radix="
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final digitToIntOrNull(C)Ljava/lang/Integer;
|
|
.locals 1
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 1
|
|
invoke-static {p0, v0}, Lkotlin/text/CharsKt__CharJVMKt;->digitOf(CI)I
|
|
|
|
move-result p0
|
|
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result v0
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final digitToIntOrNull(CI)Ljava/lang/Integer;
|
|
.locals 0
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
.line 2
|
|
invoke-static {p1}, Lkotlin/text/CharsKt__CharJVMKt;->checkRadix(I)I
|
|
|
|
.line 3
|
|
invoke-static {p0, p1}, Lkotlin/text/CharsKt__CharJVMKt;->digitOf(CI)I
|
|
|
|
move-result p0
|
|
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result p1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final equals(CCZ)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
if-ne p0, p1, :cond_0
|
|
|
|
.line 3
|
|
.line 4
|
|
return v0
|
|
|
|
.line 5
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 6
|
|
if-nez p2, :cond_1
|
|
|
|
.line 7
|
|
.line 8
|
|
return v1
|
|
|
|
.line 9
|
|
:cond_1
|
|
invoke-static {p0}, Ljava/lang/Character;->toUpperCase(C)C
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result p0
|
|
|
|
.line 13
|
|
invoke-static {p1}, Ljava/lang/Character;->toUpperCase(C)C
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result p1
|
|
|
|
.line 17
|
|
if-eq p0, p1, :cond_3
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-static {p0}, Ljava/lang/Character;->toLowerCase(C)C
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result p0
|
|
|
|
.line 23
|
|
invoke-static {p1}, Ljava/lang/Character;->toLowerCase(C)C
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result p1
|
|
|
|
.line 27
|
|
if-ne p0, p1, :cond_2
|
|
|
|
.line 28
|
|
.line 29
|
|
goto :goto_0
|
|
|
|
.line 30
|
|
:cond_2
|
|
return v1
|
|
|
|
.line 31
|
|
:cond_3
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public static synthetic equals$default(CCZILjava/lang/Object;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
const/4 p2, 0x0
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-static {p0, p1, p2}, Lkotlin/text/CharsKt__CharKt;->equals(CCZ)Z
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result p0
|
|
|
|
.line 10
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isSurrogate(C)Z
|
|
.locals 2
|
|
|
|
const v0, 0xd800
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-gt v0, p0, :cond_0
|
|
|
|
const v0, 0xe000
|
|
|
|
if-ge p0, v0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
return v1
|
|
.end method
|
|
|
|
.method private static final plus(CLjava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Lkotlin/internal/InlineOnly;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "other"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object p0
|
|
|
|
.line 21
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final titlecase(C)Ljava/lang/String;
|
|
.locals 0
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.5"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lkotlin/text/_OneToManyTitlecaseMappingsKt;->titlecaseImpl(C)Ljava/lang/String;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
return-object p0
|
|
.end method
|