soul-browser/app/smali_classes4/kotlin/text/HexFormat$NumberHexFormat$Builder.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

512 lines
12 KiB
Smali

.class public final Lkotlin/text/HexFormat$NumberHexFormat$Builder;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lkotlin/text/HexFormat$NumberHexFormat;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0003\n\u0002\u0010\u000e\n\u0002\u0008\t\n\u0002\u0010\u000b\n\u0002\u0008\u0004\n\u0002\u0010\u0008\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0018\u00002\u00020\u0001B\t\u0008\u0000\u00a2\u0006\u0004\u0008\u0002\u0010\u0003J\r\u0010\u001b\u001a\u00020\u001cH\u0000\u00a2\u0006\u0002\u0008\u001dR$\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u0005@FX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0007\u0010\u0008\"\u0004\u0008\t\u0010\nR$\u0010\u000b\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u0005@FX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u000c\u0010\u0008\"\u0004\u0008\r\u0010\nR\u001a\u0010\u000e\u001a\u00020\u000fX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0010\u0010\u0011\"\u0004\u0008\u0012\u0010\u0013R,\u0010\u0015\u001a\u00020\u00142\u0006\u0010\u0004\u001a\u00020\u00148\u0006@FX\u0087\u000e\u00a2\u0006\u0014\n\u0000\u0012\u0004\u0008\u0016\u0010\u0003\u001a\u0004\u0008\u0017\u0010\u0018\"\u0004\u0008\u0019\u0010\u001a\u00a8\u0006\u001e"
}
d2 = {
"Lkotlin/text/HexFormat$NumberHexFormat$Builder;",
"",
"<init>",
"()V",
"value",
"",
"prefix",
"getPrefix",
"()Ljava/lang/String;",
"setPrefix",
"(Ljava/lang/String;)V",
"suffix",
"getSuffix",
"setSuffix",
"removeLeadingZeros",
"",
"getRemoveLeadingZeros",
"()Z",
"setRemoveLeadingZeros",
"(Z)V",
"",
"minLength",
"getMinLength$annotations",
"getMinLength",
"()I",
"setMinLength",
"(I)V",
"build",
"Lkotlin/text/HexFormat$NumberHexFormat;",
"build$kotlin_stdlib",
"kotlin-stdlib"
}
k = 0x1
mv = {
0x2,
0x2,
0x0
}
xi = 0x30
.end annotation
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
value = {
"SMAP\nHexFormat.kt\nKotlin\n*S Kotlin\n*F\n+ 1 HexFormat.kt\nkotlin/text/HexFormat$NumberHexFormat$Builder\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,845:1\n1#2:846\n*E\n"
}
.end annotation
# instance fields
.field private minLength:I
.field private prefix:Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private removeLeadingZeros:Z
.field private suffix:Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
.line 3
.line 4
sget-object v0, Lkotlin/text/HexFormat$NumberHexFormat;->Companion:Lkotlin/text/HexFormat$NumberHexFormat$Companion;
.line 5
.line 6
invoke-virtual {v0}, Lkotlin/text/HexFormat$NumberHexFormat$Companion;->getDefault$kotlin_stdlib()Lkotlin/text/HexFormat$NumberHexFormat;
.line 7
.line 8
.line 9
move-result-object v1
.line 10
invoke-virtual {v1}, Lkotlin/text/HexFormat$NumberHexFormat;->getPrefix()Ljava/lang/String;
.line 11
.line 12
.line 13
move-result-object v1
.line 14
iput-object v1, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->prefix:Ljava/lang/String;
.line 15
.line 16
invoke-virtual {v0}, Lkotlin/text/HexFormat$NumberHexFormat$Companion;->getDefault$kotlin_stdlib()Lkotlin/text/HexFormat$NumberHexFormat;
.line 17
.line 18
.line 19
move-result-object v1
.line 20
invoke-virtual {v1}, Lkotlin/text/HexFormat$NumberHexFormat;->getSuffix()Ljava/lang/String;
.line 21
.line 22
.line 23
move-result-object v1
.line 24
iput-object v1, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->suffix:Ljava/lang/String;
.line 25
.line 26
invoke-virtual {v0}, Lkotlin/text/HexFormat$NumberHexFormat$Companion;->getDefault$kotlin_stdlib()Lkotlin/text/HexFormat$NumberHexFormat;
.line 27
.line 28
.line 29
move-result-object v1
.line 30
invoke-virtual {v1}, Lkotlin/text/HexFormat$NumberHexFormat;->getRemoveLeadingZeros()Z
.line 31
.line 32
.line 33
move-result v1
.line 34
iput-boolean v1, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->removeLeadingZeros:Z
.line 35
.line 36
invoke-virtual {v0}, Lkotlin/text/HexFormat$NumberHexFormat$Companion;->getDefault$kotlin_stdlib()Lkotlin/text/HexFormat$NumberHexFormat;
.line 37
.line 38
.line 39
move-result-object v0
.line 40
invoke-virtual {v0}, Lkotlin/text/HexFormat$NumberHexFormat;->getMinLength()I
.line 41
.line 42
.line 43
move-result v0
.line 44
iput v0, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->minLength:I
.line 45
.line 46
return-void
.end method
.method public static synthetic getMinLength$annotations()V
.locals 0
.annotation build Lkotlin/SinceKotlin;
version = "2.0"
.end annotation
return-void
.end method
# virtual methods
.method public final build$kotlin_stdlib()Lkotlin/text/HexFormat$NumberHexFormat;
.locals 5
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.line 1
new-instance v0, Lkotlin/text/HexFormat$NumberHexFormat;
.line 2
.line 3
iget-object v1, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->prefix:Ljava/lang/String;
.line 4
.line 5
iget-object v2, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->suffix:Ljava/lang/String;
.line 6
.line 7
iget-boolean v3, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->removeLeadingZeros:Z
.line 8
.line 9
iget v4, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->minLength:I
.line 10
.line 11
invoke-direct {v0, v1, v2, v3, v4}, Lkotlin/text/HexFormat$NumberHexFormat;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
.line 12
.line 13
.line 14
return-object v0
.end method
.method public final getMinLength()I
.locals 1
.line 1
iget v0, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->minLength:I
.line 2
.line 3
return v0
.end method
.method public final getPrefix()Ljava/lang/String;
.locals 1
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.line 1
iget-object v0, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->prefix:Ljava/lang/String;
.line 2
.line 3
return-object v0
.end method
.method public final getRemoveLeadingZeros()Z
.locals 1
.line 1
iget-boolean v0, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->removeLeadingZeros:Z
.line 2
.line 3
return v0
.end method
.method public final getSuffix()Ljava/lang/String;
.locals 1
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.line 1
iget-object v0, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->suffix:Ljava/lang/String;
.line 2
.line 3
return-object v0
.end method
.method public final setMinLength(I)V
.locals 1
.line 1
if-lez p1, :cond_0
.line 2
.line 3
iput p1, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->minLength:I
.line 4
.line 5
return-void
.line 6
:cond_0
const-string v0, "Non-positive values are prohibited for minLength, but was "
.line 7
.line 8
invoke-static {p1, v0}, Landroid/support/v4/media/a;->e(ILjava/lang/String;)Ljava/lang/String;
.line 9
.line 10
.line 11
move-result-object p1
.line 12
new-instance v0, Ljava/lang/IllegalArgumentException;
.line 13
.line 14
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
.line 15
.line 16
.line 17
move-result-object p1
.line 18
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
.line 19
.line 20
.line 21
throw v0
.end method
.method public final setPrefix(Ljava/lang/String;)V
.locals 4
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.line 1
const-string v0, "value"
.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
const/16 v0, 0xa
.line 7
.line 8
const/4 v1, 0x0
.line 9
const/4 v2, 0x2
.line 10
const/4 v3, 0x0
.line 11
invoke-static {p1, v0, v1, v2, v3}, Lkotlin/text/StringsKt__StringsKt;->contains$default(Ljava/lang/CharSequence;CZILjava/lang/Object;)Z
.line 12
.line 13
.line 14
move-result v0
.line 15
if-nez v0, :cond_0
.line 16
.line 17
const/16 v0, 0xd
.line 18
.line 19
invoke-static {p1, v0, v1, v2, v3}, Lkotlin/text/StringsKt__StringsKt;->contains$default(Ljava/lang/CharSequence;CZILjava/lang/Object;)Z
.line 20
.line 21
.line 22
move-result v0
.line 23
if-nez v0, :cond_0
.line 24
.line 25
iput-object p1, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->prefix:Ljava/lang/String;
.line 26
.line 27
return-void
.line 28
:cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
.line 29
.line 30
const-string v1, "LF and CR characters are prohibited in prefix, but was "
.line 31
.line 32
invoke-static {v1, p1}, Landroid/support/v4/media/a;->C(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.line 33
.line 34
.line 35
move-result-object p1
.line 36
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
.line 37
.line 38
.line 39
throw v0
.end method
.method public final setRemoveLeadingZeros(Z)V
.locals 0
.line 1
iput-boolean p1, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->removeLeadingZeros:Z
.line 2
.line 3
return-void
.end method
.method public final setSuffix(Ljava/lang/String;)V
.locals 4
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.line 1
const-string v0, "value"
.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
const/16 v0, 0xa
.line 7
.line 8
const/4 v1, 0x0
.line 9
const/4 v2, 0x2
.line 10
const/4 v3, 0x0
.line 11
invoke-static {p1, v0, v1, v2, v3}, Lkotlin/text/StringsKt__StringsKt;->contains$default(Ljava/lang/CharSequence;CZILjava/lang/Object;)Z
.line 12
.line 13
.line 14
move-result v0
.line 15
if-nez v0, :cond_0
.line 16
.line 17
const/16 v0, 0xd
.line 18
.line 19
invoke-static {p1, v0, v1, v2, v3}, Lkotlin/text/StringsKt__StringsKt;->contains$default(Ljava/lang/CharSequence;CZILjava/lang/Object;)Z
.line 20
.line 21
.line 22
move-result v0
.line 23
if-nez v0, :cond_0
.line 24
.line 25
iput-object p1, p0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->suffix:Ljava/lang/String;
.line 26
.line 27
return-void
.line 28
:cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
.line 29
.line 30
const-string v1, "LF and CR characters are prohibited in suffix, but was "
.line 31
.line 32
invoke-static {v1, p1}, Landroid/support/v4/media/a;->C(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.line 33
.line 34
.line 35
move-result-object p1
.line 36
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
.line 37
.line 38
.line 39
throw v0
.end method