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

497 lines
10 KiB
Smali

.class public abstract Landroidx/collection/FloatList;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u000e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\u00086\u0018\u00002\u00020\u0001\u0082\u0001\u0001\u0002\u00a8\u0006\u0003"
}
d2 = {
"Landroidx/collection/FloatList;",
"",
"Landroidx/collection/MutableFloatList;",
"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/FloatList\n*L\n1#1,969:1\n253#1,6:970\n279#1,6:976\n253#1,6:982\n75#1:988\n253#1,6:989\n253#1,6:995\n253#1,6:1001\n266#1,6:1007\n279#1,6:1013\n293#1,6:1019\n70#1:1025\n70#1:1026\n266#1,6:1027\n266#1,6:1033\n293#1,6:1039\n70#1:1045\n279#1,6:1046\n293#1,6:1052\n266#1,6:1058\n266#1,6:1064\n253#1,6:1070\n75#1:1076\n467#1,10:1077\n266#1,4:1087\n477#1,9:1091\n271#1:1100\n486#1,2:1101\n467#1,10:1103\n266#1,4:1113\n477#1,9:1117\n271#1:1126\n486#1,2:1127\n467#1,10:1129\n266#1,4:1139\n477#1,9:1143\n271#1:1152\n486#1,2:1153\n467#1,10:1155\n266#1,4:1165\n477#1,9:1169\n271#1:1178\n486#1,2:1179\n467#1,10:1181\n266#1,4:1191\n477#1,9:1195\n271#1:1204\n486#1,2:1205\n*S KotlinDebug\n*F\n+ 1 FloatList.kt\nandroidx/collection/FloatList\n*L\n96#1:970,6\n110#1:976,6\n122#1:982,6\n135#1:988\n153#1:989,6\n175#1:995,6\n192#1:1001,6\n208#1:1007,6\n225#1:1013,6\n241#1:1019,6\n306#1:1025\n317#1:1026\n343#1:1027,6\n357#1:1033,6\n371#1:1039,6\n397#1:1045\n407#1:1046,6\n420#1:1052,6\n445#1:1058,6\n476#1:1064,6\n494#1:1070,6\n510#1:1076\n-1#1:1077,10\n-1#1:1087,4\n-1#1:1091,9\n-1#1:1100\n-1#1:1101,2\n-1#1:1103,10\n-1#1:1113,4\n-1#1:1117,9\n-1#1:1126\n-1#1:1127,2\n-1#1:1129,10\n-1#1:1139,4\n-1#1:1143,9\n-1#1:1152\n-1#1:1153,2\n-1#1:1155,10\n-1#1:1165,4\n-1#1:1169,9\n-1#1:1178\n-1#1:1179,2\n-1#1:1181,10\n-1#1:1191,4\n-1#1:1195,9\n-1#1:1204\n-1#1:1205,2\n*E\n"
}
.end annotation
# instance fields
.field public a:[F
.field public b:I
# direct methods
.method public static b(Landroidx/collection/FloatList;I)Ljava/lang/String;
.locals 7
.line 1
and-int/lit8 v0, p1, 0x2
.line 2
.line 3
const-string v1, ""
.line 4
.line 5
if-eqz v0, :cond_0
.line 6
.line 7
move-object v0, v1
.line 8
goto :goto_0
.line 9
:cond_0
const-string v0, "["
.line 10
.line 11
:goto_0
and-int/lit8 p1, p1, 0x4
.line 12
.line 13
if-eqz p1, :cond_1
.line 14
.line 15
goto :goto_1
.line 16
:cond_1
const-string v1, "]"
.line 17
.line 18
:goto_1
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 19
.line 20
.line 21
const-string p1, "separator"
.line 22
.line 23
const-string v2, ", "
.line 24
.line 25
invoke-static {v2, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 26
.line 27
.line 28
const-string p1, "prefix"
.line 29
.line 30
invoke-static {v0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 31
.line 32
.line 33
const-string p1, "postfix"
.line 34
.line 35
invoke-static {v1, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 36
.line 37
.line 38
const-string p1, "truncated"
.line 39
.line 40
const-string v3, "..."
.line 41
.line 42
invoke-static {v3, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 43
.line 44
.line 45
new-instance p1, Ljava/lang/StringBuilder;
.line 46
.line 47
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
.line 48
.line 49
.line 50
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
.line 51
.line 52
.line 53
iget-object v0, p0, Landroidx/collection/FloatList;->a:[F
.line 54
.line 55
iget p0, p0, Landroidx/collection/FloatList;->b:I
.line 56
.line 57
const/4 v4, 0x0
.line 58
:goto_2
if-ge v4, p0, :cond_4
.line 59
.line 60
aget v5, v0, v4
.line 61
.line 62
const/4 v6, -0x1
.line 63
if-ne v4, v6, :cond_2
.line 64
.line 65
invoke-virtual {p1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
.line 66
.line 67
.line 68
goto :goto_3
.line 69
:cond_2
if-eqz v4, :cond_3
.line 70
.line 71
invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
.line 72
.line 73
.line 74
:cond_3
invoke-virtual {p1, v5}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
.line 75
.line 76
.line 77
add-int/lit8 v4, v4, 0x1
.line 78
.line 79
goto :goto_2
.line 80
:cond_4
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
.line 81
.line 82
.line 83
:goto_3
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
.line 84
.line 85
.line 86
move-result-object p0
.line 87
const-string p1, "StringBuilder().apply(builderAction).toString()"
.line 88
.line 89
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 90
.line 91
.line 92
return-object p0
.end method
# virtual methods
.method public final a(I)F
.locals 3
.line 1
if-ltz p1, :cond_0
.line 2
.line 3
iget v0, p0, Landroidx/collection/FloatList;->b:I
.line 4
.line 5
if-ge p1, v0, :cond_0
.line 6
.line 7
iget-object v0, p0, Landroidx/collection/FloatList;->a:[F
.line 8
.line 9
aget p1, v0, p1
.line 10
.line 11
return p1
.line 12
:cond_0
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
.line 13
.line 14
const-string v1, "Index "
.line 15
.line 16
const-string v2, " must be in 0.."
.line 17
.line 18
invoke-static {p1, v1, v2}, Landroid/support/v4/media/a;->s(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 19
.line 20
.line 21
move-result-object p1
.line 22
iget v1, p0, Landroidx/collection/FloatList;->b:I
.line 23
.line 24
add-int/lit8 v1, v1, -0x1
.line 25
.line 26
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
.line 27
.line 28
.line 29
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
.line 30
.line 31
.line 32
move-result-object p1
.line 33
invoke-direct {v0, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
.line 34
.line 35
.line 36
throw v0
.end method
.method public final equals(Ljava/lang/Object;)Z
.locals 6
.line 1
instance-of v0, p1, Landroidx/collection/FloatList;
.line 2
.line 3
const/4 v1, 0x0
.line 4
if-eqz v0, :cond_3
.line 5
.line 6
check-cast p1, Landroidx/collection/FloatList;
.line 7
.line 8
iget v0, p1, Landroidx/collection/FloatList;->b:I
.line 9
.line 10
iget v2, p0, Landroidx/collection/FloatList;->b:I
.line 11
.line 12
if-eq v0, v2, :cond_0
.line 13
.line 14
goto :goto_1
.line 15
:cond_0
iget-object v0, p0, Landroidx/collection/FloatList;->a:[F
.line 16
.line 17
iget-object p1, p1, Landroidx/collection/FloatList;->a:[F
.line 18
.line 19
invoke-static {v1, v2}, Lkotlin/ranges/RangesKt;->until(II)Lkotlin/ranges/IntRange;
.line 20
.line 21
.line 22
move-result-object v2
.line 23
invoke-virtual {v2}, Lkotlin/ranges/IntProgression;->getFirst()I
.line 24
.line 25
.line 26
move-result v3
.line 27
invoke-virtual {v2}, Lkotlin/ranges/IntProgression;->getLast()I
.line 28
.line 29
.line 30
move-result v2
.line 31
if-gt v3, v2, :cond_2
.line 32
.line 33
:goto_0
aget v4, v0, v3
.line 34
.line 35
aget v5, p1, v3
.line 36
.line 37
cmpg-float v4, v4, v5
.line 38
.line 39
if-nez v4, :cond_1
.line 40
.line 41
if-eq v3, v2, :cond_2
.line 42
.line 43
add-int/lit8 v3, v3, 0x1
.line 44
.line 45
goto :goto_0
.line 46
:cond_1
return v1
.line 47
:cond_2
const/4 p1, 0x1
.line 48
return p1
.line 49
:cond_3
:goto_1
return v1
.end method
.method public final hashCode()I
.locals 5
.line 1
iget-object v0, p0, Landroidx/collection/FloatList;->a:[F
.line 2
.line 3
iget v1, p0, Landroidx/collection/FloatList;->b:I
.line 4
.line 5
const/4 v2, 0x0
.line 6
move v3, v2
.line 7
:goto_0
if-ge v2, v1, :cond_0
.line 8
.line 9
aget v4, v0, v2
.line 10
.line 11
invoke-static {v4}, Ljava/lang/Float;->floatToIntBits(F)I
.line 12
.line 13
.line 14
move-result v4
.line 15
mul-int/lit8 v4, v4, 0x1f
.line 16
.line 17
add-int/2addr v3, v4
.line 18
add-int/lit8 v2, v2, 0x1
.line 19
.line 20
goto :goto_0
.line 21
:cond_0
return v3
.end method
.method public final toString()Ljava/lang/String;
.locals 1
.line 1
const/16 v0, 0x19
.line 2
.line 3
invoke-static {p0, v0}, Landroidx/collection/FloatList;->b(Landroidx/collection/FloatList;I)Ljava/lang/String;
.line 4
.line 5
.line 6
move-result-object v0
.line 7
return-object v0
.end method