soul-browser/app/smali/androidx/collection/MutableFloatList.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

153 lines
3.2 KiB
Smali

.class public final Landroidx/collection/MutableFloatList;
.super Landroidx/collection/FloatList;
.source "SourceFile"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001\u00a8\u0006\u0002"
}
d2 = {
"Landroidx/collection/MutableFloatList;",
"Landroidx/collection/FloatList;",
"collection"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
value = {
"SMAP\nFloatList.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FloatList.kt\nandroidx/collection/MutableFloatList\n+ 2 FloatList.kt\nandroidx/collection/FloatList\n+ 3 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n*L\n1#1,969:1\n549#1:970\n70#2:971\n253#2,6:974\n70#2:980\n70#2:981\n70#2:982\n70#2:989\n70#2:990\n13614#3,2:972\n1687#3,6:983\n*S KotlinDebug\n*F\n+ 1 FloatList.kt\nandroidx/collection/MutableFloatList\n*L\n692#1:970\n753#1:971\n772#1:974,6\n783#1:980\n787#1:981\n834#1:982\n850#1:989\n869#1:990\n763#1:972,2\n836#1:983,6\n*E\n"
}
.end annotation
# direct methods
.method public constructor <init>(I)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
.line 3
.line 4
if-nez p1, :cond_0
.line 5
.line 6
sget-object p1, Landroidx/collection/FloatSetKt;->a:[F
.line 7
.line 8
goto :goto_0
.line 9
:cond_0
new-array p1, p1, [F
.line 10
.line 11
:goto_0
iput-object p1, p0, Landroidx/collection/FloatList;->a:[F
.line 12
.line 13
return-void
.end method
# virtual methods
.method public final c(F)V
.locals 3
.line 1
iget v0, p0, Landroidx/collection/FloatList;->b:I
.line 2
.line 3
add-int/lit8 v0, v0, 0x1
.line 4
.line 5
iget-object v1, p0, Landroidx/collection/FloatList;->a:[F
.line 6
.line 7
array-length v2, v1
.line 8
if-ge v2, v0, :cond_0
.line 9
.line 10
array-length v2, v1
.line 11
mul-int/lit8 v2, v2, 0x3
.line 12
.line 13
div-int/lit8 v2, v2, 0x2
.line 14
.line 15
invoke-static {v0, v2}, Ljava/lang/Math;->max(II)I
.line 16
.line 17
.line 18
move-result v0
.line 19
invoke-static {v1, v0}, Ljava/util/Arrays;->copyOf([FI)[F
.line 20
.line 21
.line 22
move-result-object v0
.line 23
const-string v1, "copyOf(this, newSize)"
.line 24
.line 25
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 26
.line 27
.line 28
iput-object v0, p0, Landroidx/collection/FloatList;->a:[F
.line 29
.line 30
:cond_0
iget-object v0, p0, Landroidx/collection/FloatList;->a:[F
.line 31
.line 32
iget v1, p0, Landroidx/collection/FloatList;->b:I
.line 33
.line 34
aput p1, v0, v1
.line 35
.line 36
add-int/lit8 v1, v1, 0x1
.line 37
.line 38
iput v1, p0, Landroidx/collection/FloatList;->b:I
.line 39
.line 40
return-void
.end method