* 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>
391 lines
10 KiB
Smali
391 lines
10 KiB
Smali
.class public final Lkotlin/text/HexFormat$Builder;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lkotlin/text/HexFormat;
|
|
.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\u000b\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\t\u0008\u0001\u00a2\u0006\u0004\u0008\u0002\u0010\u0003J%\u0010\n\u001a\u00020\u00142\u0017\u0010\u0015\u001a\u0013\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\u00140\u0016\u00a2\u0006\u0002\u0008\u0017H\u0087\u0008\u00f8\u0001\u0000J%\u0010\u000f\u001a\u00020\u00142\u0017\u0010\u0015\u001a\u0013\u0012\u0004\u0012\u00020\u0010\u0012\u0004\u0012\u00020\u00140\u0016\u00a2\u0006\u0002\u0008\u0017H\u0087\u0008\u00f8\u0001\u0000J\u0008\u0010\u0018\u001a\u00020\u0019H\u0001R\u001a\u0010\u0004\u001a\u00020\u0005X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0006\u0010\u0007\"\u0004\u0008\u0008\u0010\tR\u0011\u0010\n\u001a\u00020\u000b8F\u00a2\u0006\u0006\u001a\u0004\u0008\u000c\u0010\rR\u0010\u0010\u000e\u001a\u0004\u0018\u00010\u000bX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u000f\u001a\u00020\u00108F\u00a2\u0006\u0006\u001a\u0004\u0008\u0011\u0010\u0012R\u0010\u0010\u0013\u001a\u0004\u0018\u00010\u0010X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u0082\u0002\u0007\n\u0005\u0008\u009920\u0001\u00a8\u0006\u001a"
|
|
}
|
|
d2 = {
|
|
"Lkotlin/text/HexFormat$Builder;",
|
|
"",
|
|
"<init>",
|
|
"()V",
|
|
"upperCase",
|
|
"",
|
|
"getUpperCase",
|
|
"()Z",
|
|
"setUpperCase",
|
|
"(Z)V",
|
|
"bytes",
|
|
"Lkotlin/text/HexFormat$BytesHexFormat$Builder;",
|
|
"getBytes",
|
|
"()Lkotlin/text/HexFormat$BytesHexFormat$Builder;",
|
|
"_bytes",
|
|
"number",
|
|
"Lkotlin/text/HexFormat$NumberHexFormat$Builder;",
|
|
"getNumber",
|
|
"()Lkotlin/text/HexFormat$NumberHexFormat$Builder;",
|
|
"_number",
|
|
"",
|
|
"builderAction",
|
|
"Lkotlin/Function1;",
|
|
"Lkotlin/ExtensionFunctionType;",
|
|
"build",
|
|
"Lkotlin/text/HexFormat;",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private _bytes:Lkotlin/text/HexFormat$BytesHexFormat$Builder;
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private _number:Lkotlin/text/HexFormat$NumberHexFormat$Builder;
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private upperCase:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
.annotation build Lkotlin/PublishedApi;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
sget-object v0, Lkotlin/text/HexFormat;->Companion:Lkotlin/text/HexFormat$Companion;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {v0}, Lkotlin/text/HexFormat$Companion;->getDefault()Lkotlin/text/HexFormat;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v0
|
|
|
|
.line 10
|
|
invoke-virtual {v0}, Lkotlin/text/HexFormat;->getUpperCase()Z
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result v0
|
|
|
|
.line 14
|
|
iput-boolean v0, p0, Lkotlin/text/HexFormat$Builder;->upperCase:Z
|
|
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
.end method
|
|
|
|
.method private final bytes(Lkotlin/jvm/functions/Function1;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lkotlin/text/HexFormat$BytesHexFormat$Builder;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/internal/InlineOnly;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "builderAction"
|
|
|
|
.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
|
|
invoke-virtual {p0}, Lkotlin/text/HexFormat$Builder;->getBytes()Lkotlin/text/HexFormat$BytesHexFormat$Builder;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v0
|
|
|
|
.line 10
|
|
invoke-interface {p1, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return-void
|
|
.end method
|
|
|
|
.method private final number(Lkotlin/jvm/functions/Function1;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lkotlin/text/HexFormat$NumberHexFormat$Builder;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/internal/InlineOnly;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "builderAction"
|
|
|
|
.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
|
|
invoke-virtual {p0}, Lkotlin/text/HexFormat$Builder;->getNumber()Lkotlin/text/HexFormat$NumberHexFormat$Builder;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v0
|
|
|
|
.line 10
|
|
invoke-interface {p1, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final build()Lkotlin/text/HexFormat;
|
|
.locals 4
|
|
.annotation build Lkotlin/PublishedApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lkotlin/text/HexFormat;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-boolean v1, p0, Lkotlin/text/HexFormat$Builder;->upperCase:Z
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v2, p0, Lkotlin/text/HexFormat$Builder;->_bytes:Lkotlin/text/HexFormat$BytesHexFormat$Builder;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {v2}, Lkotlin/text/HexFormat$BytesHexFormat$Builder;->build$kotlin_stdlib()Lkotlin/text/HexFormat$BytesHexFormat;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object v2
|
|
|
|
.line 13
|
|
if-nez v2, :cond_1
|
|
|
|
.line 14
|
|
.line 15
|
|
:cond_0
|
|
sget-object v2, Lkotlin/text/HexFormat$BytesHexFormat;->Companion:Lkotlin/text/HexFormat$BytesHexFormat$Companion;
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {v2}, Lkotlin/text/HexFormat$BytesHexFormat$Companion;->getDefault$kotlin_stdlib()Lkotlin/text/HexFormat$BytesHexFormat;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object v2
|
|
|
|
.line 21
|
|
:cond_1
|
|
iget-object v3, p0, Lkotlin/text/HexFormat$Builder;->_number:Lkotlin/text/HexFormat$NumberHexFormat$Builder;
|
|
|
|
.line 22
|
|
.line 23
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {v3}, Lkotlin/text/HexFormat$NumberHexFormat$Builder;->build$kotlin_stdlib()Lkotlin/text/HexFormat$NumberHexFormat;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object v3
|
|
|
|
.line 29
|
|
if-nez v3, :cond_3
|
|
|
|
.line 30
|
|
.line 31
|
|
:cond_2
|
|
sget-object v3, Lkotlin/text/HexFormat$NumberHexFormat;->Companion:Lkotlin/text/HexFormat$NumberHexFormat$Companion;
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-virtual {v3}, Lkotlin/text/HexFormat$NumberHexFormat$Companion;->getDefault$kotlin_stdlib()Lkotlin/text/HexFormat$NumberHexFormat;
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result-object v3
|
|
|
|
.line 37
|
|
:cond_3
|
|
invoke-direct {v0, v1, v2, v3}, Lkotlin/text/HexFormat;-><init>(ZLkotlin/text/HexFormat$BytesHexFormat;Lkotlin/text/HexFormat$NumberHexFormat;)V
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getBytes()Lkotlin/text/HexFormat$BytesHexFormat$Builder;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlin/text/HexFormat$Builder;->_bytes:Lkotlin/text/HexFormat$BytesHexFormat$Builder;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
new-instance v0, Lkotlin/text/HexFormat$BytesHexFormat$Builder;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-direct {v0}, Lkotlin/text/HexFormat$BytesHexFormat$Builder;-><init>()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
iput-object v0, p0, Lkotlin/text/HexFormat$Builder;->_bytes:Lkotlin/text/HexFormat$BytesHexFormat$Builder;
|
|
|
|
.line 11
|
|
.line 12
|
|
:cond_0
|
|
iget-object v0, p0, Lkotlin/text/HexFormat$Builder;->_bytes:Lkotlin/text/HexFormat$BytesHexFormat$Builder;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getNumber()Lkotlin/text/HexFormat$NumberHexFormat$Builder;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lkotlin/text/HexFormat$Builder;->_number:Lkotlin/text/HexFormat$NumberHexFormat$Builder;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
new-instance v0, Lkotlin/text/HexFormat$NumberHexFormat$Builder;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-direct {v0}, Lkotlin/text/HexFormat$NumberHexFormat$Builder;-><init>()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
iput-object v0, p0, Lkotlin/text/HexFormat$Builder;->_number:Lkotlin/text/HexFormat$NumberHexFormat$Builder;
|
|
|
|
.line 11
|
|
.line 12
|
|
:cond_0
|
|
iget-object v0, p0, Lkotlin/text/HexFormat$Builder;->_number:Lkotlin/text/HexFormat$NumberHexFormat$Builder;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getUpperCase()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lkotlin/text/HexFormat$Builder;->upperCase:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final setUpperCase(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lkotlin/text/HexFormat$Builder;->upperCase:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|