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

441 lines
11 KiB
Smali

.class public final Lkotlin/text/HexFormat;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lkotlin/text/HexFormat$Builder;,
Lkotlin/text/HexFormat$BytesHexFormat;,
Lkotlin/text/HexFormat$Companion;,
Lkotlin/text/HexFormat$NumberHexFormat;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\t\n\u0002\u0010\u000e\n\u0002\u0008\u0005\u0008\u0007\u0018\u0000 \u00152\u00020\u0001:\u0004\u0012\u0013\u0014\u0015B!\u0008\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u00a2\u0006\u0004\u0008\u0008\u0010\tJ\u0008\u0010\u0010\u001a\u00020\u0011H\u0016R\u0011\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\n\u0010\u000bR\u0011\u0010\u0004\u001a\u00020\u0005\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000c\u0010\rR\u0011\u0010\u0006\u001a\u00020\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000e\u0010\u000f\u00a8\u0006\u0016"
}
d2 = {
"Lkotlin/text/HexFormat;",
"",
"upperCase",
"",
"bytes",
"Lkotlin/text/HexFormat$BytesHexFormat;",
"number",
"Lkotlin/text/HexFormat$NumberHexFormat;",
"<init>",
"(ZLkotlin/text/HexFormat$BytesHexFormat;Lkotlin/text/HexFormat$NumberHexFormat;)V",
"getUpperCase",
"()Z",
"getBytes",
"()Lkotlin/text/HexFormat$BytesHexFormat;",
"getNumber",
"()Lkotlin/text/HexFormat$NumberHexFormat;",
"toString",
"",
"BytesHexFormat",
"NumberHexFormat",
"Builder",
"Companion",
"kotlin-stdlib"
}
k = 0x1
mv = {
0x2,
0x2,
0x0
}
xi = 0x30
.end annotation
.annotation build Lkotlin/SinceKotlin;
version = "2.2"
.end annotation
.annotation build Lkotlin/WasExperimental;
markerClass = {
Lkotlin/ExperimentalStdlibApi;
}
.end annotation
# static fields
.field public static final Companion:Lkotlin/text/HexFormat$Companion;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private static final Default:Lkotlin/text/HexFormat;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private static final UpperCase:Lkotlin/text/HexFormat;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
# instance fields
.field private final bytes:Lkotlin/text/HexFormat$BytesHexFormat;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private final number:Lkotlin/text/HexFormat$NumberHexFormat;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private final upperCase:Z
# direct methods
.method static constructor <clinit>()V
.locals 6
.line 1
new-instance v0, Lkotlin/text/HexFormat$Companion;
.line 2
.line 3
const/4 v1, 0x0
.line 4
invoke-direct {v0, v1}, Lkotlin/text/HexFormat$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.line 5
.line 6
.line 7
sput-object v0, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
.line 8
.line 9
new-instance v0, Lkotlin/text/HexFormat;
.line 10
.line 11
sget-object v1, Lkotlin/text/HexFormat$BytesHexFormat;->Companion:Lkotlin/text/HexFormat$BytesHexFormat$Companion;
.line 12
.line 13
invoke-virtual {v1}, Lkotlin/text/HexFormat$BytesHexFormat$Companion;->getDefault$kotlin_stdlib()Lkotlin/text/HexFormat$BytesHexFormat;
.line 14
.line 15
.line 16
move-result-object v2
.line 17
sget-object v3, Lkotlin/text/HexFormat$NumberHexFormat;->Companion:Lkotlin/text/HexFormat$NumberHexFormat$Companion;
.line 18
.line 19
invoke-virtual {v3}, Lkotlin/text/HexFormat$NumberHexFormat$Companion;->getDefault$kotlin_stdlib()Lkotlin/text/HexFormat$NumberHexFormat;
.line 20
.line 21
.line 22
move-result-object v4
.line 23
const/4 v5, 0x0
.line 24
invoke-direct {v0, v5, v2, v4}, Lkotlin/text/HexFormat;-><init>(ZLkotlin/text/HexFormat$BytesHexFormat;Lkotlin/text/HexFormat$NumberHexFormat;)V
.line 25
.line 26
.line 27
sput-object v0, Lkotlin/text/HexFormat;->Default:Lkotlin/text/HexFormat;
.line 28
.line 29
new-instance v0, Lkotlin/text/HexFormat;
.line 30
.line 31
invoke-virtual {v1}, Lkotlin/text/HexFormat$BytesHexFormat$Companion;->getDefault$kotlin_stdlib()Lkotlin/text/HexFormat$BytesHexFormat;
.line 32
.line 33
.line 34
move-result-object v1
.line 35
invoke-virtual {v3}, Lkotlin/text/HexFormat$NumberHexFormat$Companion;->getDefault$kotlin_stdlib()Lkotlin/text/HexFormat$NumberHexFormat;
.line 36
.line 37
.line 38
move-result-object v2
.line 39
const/4 v3, 0x1
.line 40
invoke-direct {v0, v3, v1, v2}, Lkotlin/text/HexFormat;-><init>(ZLkotlin/text/HexFormat$BytesHexFormat;Lkotlin/text/HexFormat$NumberHexFormat;)V
.line 41
.line 42
.line 43
sput-object v0, Lkotlin/text/HexFormat;->UpperCase:Lkotlin/text/HexFormat;
.line 44
.line 45
return-void
.end method
.method public constructor <init>(ZLkotlin/text/HexFormat$BytesHexFormat;Lkotlin/text/HexFormat$NumberHexFormat;)V
.locals 1
.param p2 # Lkotlin/text/HexFormat$BytesHexFormat;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p3 # Lkotlin/text/HexFormat$NumberHexFormat;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.line 1
const-string v0, "bytes"
.line 2
.line 3
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
const-string v0, "number"
.line 7
.line 8
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 9
.line 10
.line 11
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 12
.line 13
.line 14
iput-boolean p1, p0, Lkotlin/text/HexFormat;->upperCase:Z
.line 15
.line 16
iput-object p2, p0, Lkotlin/text/HexFormat;->bytes:Lkotlin/text/HexFormat$BytesHexFormat;
.line 17
.line 18
iput-object p3, p0, Lkotlin/text/HexFormat;->number:Lkotlin/text/HexFormat$NumberHexFormat;
.line 19
.line 20
return-void
.end method
.method public static final synthetic access$getDefault$cp()Lkotlin/text/HexFormat;
.locals 1
.line 1
sget-object v0, Lkotlin/text/HexFormat;->Default:Lkotlin/text/HexFormat;
.line 2
.line 3
return-object v0
.end method
.method public static final synthetic access$getUpperCase$cp()Lkotlin/text/HexFormat;
.locals 1
.line 1
sget-object v0, Lkotlin/text/HexFormat;->UpperCase:Lkotlin/text/HexFormat;
.line 2
.line 3
return-object v0
.end method
# virtual methods
.method public final getBytes()Lkotlin/text/HexFormat$BytesHexFormat;
.locals 1
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.line 1
iget-object v0, p0, Lkotlin/text/HexFormat;->bytes:Lkotlin/text/HexFormat$BytesHexFormat;
.line 2
.line 3
return-object v0
.end method
.method public final getNumber()Lkotlin/text/HexFormat$NumberHexFormat;
.locals 1
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.line 1
iget-object v0, p0, Lkotlin/text/HexFormat;->number:Lkotlin/text/HexFormat$NumberHexFormat;
.line 2
.line 3
return-object v0
.end method
.method public final getUpperCase()Z
.locals 1
.line 1
iget-boolean v0, p0, Lkotlin/text/HexFormat;->upperCase:Z
.line 2
.line 3
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 4
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.line 1
const-string v0, "HexFormat(\n upperCase = "
.line 2
.line 3
invoke-static {v0}, Landroid/support/v4/media/a;->t(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 4
.line 5
.line 6
move-result-object v0
.line 7
iget-boolean v1, p0, Lkotlin/text/HexFormat;->upperCase:Z
.line 8
.line 9
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
.line 10
.line 11
.line 12
const-string v1, ",\n bytes = BytesHexFormat(\n"
.line 13
.line 14
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 15
.line 16
.line 17
iget-object v1, p0, Lkotlin/text/HexFormat;->bytes:Lkotlin/text/HexFormat$BytesHexFormat;
.line 18
.line 19
const-string v2, " "
.line 20
.line 21
invoke-virtual {v1, v0, v2}, Lkotlin/text/HexFormat$BytesHexFormat;->appendOptionsTo$kotlin_stdlib(Ljava/lang/StringBuilder;Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 22
.line 23
.line 24
move-result-object v1
.line 25
const/16 v3, 0xa
.line 26
.line 27
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 28
.line 29
.line 30
const-string v1, " ),"
.line 31
.line 32
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 33
.line 34
.line 35
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 36
.line 37
.line 38
const-string v1, " number = NumberHexFormat("
.line 39
.line 40
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 41
.line 42
.line 43
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 44
.line 45
.line 46
iget-object v1, p0, Lkotlin/text/HexFormat;->number:Lkotlin/text/HexFormat$NumberHexFormat;
.line 47
.line 48
invoke-virtual {v1, v0, v2}, Lkotlin/text/HexFormat$NumberHexFormat;->appendOptionsTo$kotlin_stdlib(Ljava/lang/StringBuilder;Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 49
.line 50
.line 51
move-result-object v1
.line 52
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 53
.line 54
.line 55
const-string v1, " )"
.line 56
.line 57
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 58
.line 59
.line 60
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 61
.line 62
.line 63
const-string v1, ")"
.line 64
.line 65
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 66
.line 67
.line 68
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
.line 69
.line 70
.line 71
move-result-object v0
.line 72
return-object v0
.end method