soul-browser/app/smali_classes2/j$/util/z.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

246 lines
4.4 KiB
Smali

.class public final Lj$/util/z;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/function/IntConsumer;
# instance fields
.field private count:J
.field private max:I
.field private min:I
.field private sum:J
# direct methods
.method public constructor <init>()V
.locals 1
.line 76
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const v0, 0x7fffffff
.line 68
iput v0, p0, Lj$/util/z;->min:I
const/high16 v0, -0x80000000
.line 69
iput v0, p0, Lj$/util/z;->max:I
return-void
.end method
# virtual methods
.method public final a(Lj$/util/z;)V
.locals 4
.line 143
iget-wide v0, p0, Lj$/util/z;->count:J
iget-wide v2, p1, Lj$/util/z;->count:J
add-long/2addr v0, v2
iput-wide v0, p0, Lj$/util/z;->count:J
.line 144
iget-wide v0, p0, Lj$/util/z;->sum:J
iget-wide v2, p1, Lj$/util/z;->sum:J
add-long/2addr v0, v2
iput-wide v0, p0, Lj$/util/z;->sum:J
.line 145
iget v0, p0, Lj$/util/z;->min:I
iget v1, p1, Lj$/util/z;->min:I
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
move-result v0
iput v0, p0, Lj$/util/z;->min:I
.line 146
iget v0, p0, Lj$/util/z;->max:I
iget p1, p1, Lj$/util/z;->max:I
invoke-static {v0, p1}, Ljava/lang/Math;->max(II)I
move-result p1
iput p1, p0, Lj$/util/z;->max:I
return-void
.end method
.method public final accept(I)V
.locals 4
.line 130
iget-wide v0, p0, Lj$/util/z;->count:J
const-wide/16 v2, 0x1
add-long/2addr v0, v2
iput-wide v0, p0, Lj$/util/z;->count:J
.line 131
iget-wide v0, p0, Lj$/util/z;->sum:J
int-to-long v2, p1
add-long/2addr v0, v2
iput-wide v0, p0, Lj$/util/z;->sum:J
.line 132
iget v0, p0, Lj$/util/z;->min:I
invoke-static {v0, p1}, Ljava/lang/Math;->min(II)I
move-result v0
iput v0, p0, Lj$/util/z;->min:I
.line 133
iget v0, p0, Lj$/util/z;->max:I
invoke-static {v0, p1}, Ljava/lang/Math;->max(II)I
move-result p1
iput p1, p0, Lj$/util/z;->max:I
return-void
.end method
.method public final synthetic andThen(Ljava/util/function/IntConsumer;)Ljava/util/function/IntConsumer;
.locals 0
invoke-static {p0, p1}, Lj$/util/function/IntConsumer$-CC;->$default$andThen(Ljava/util/function/IntConsumer;Ljava/util/function/IntConsumer;)Ljava/util/function/IntConsumer;
move-result-object p1
return-object p1
.end method
.method public final toString()Ljava/lang/String;
.locals 8
.line 207
const-class v0, Lj$/util/z;
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v0
.line 155
iget-wide v1, p0, Lj$/util/z;->count:J
.line 208
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
.line 165
iget-wide v2, p0, Lj$/util/z;->sum:J
.line 209
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
.line 175
iget v3, p0, Lj$/util/z;->min:I
.line 210
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
.line 155
iget-wide v4, p0, Lj$/util/z;->count:J
const-wide/16 v6, 0x0
cmp-long v6, v4, v6
if-lez v6, :cond_0
.line 165
iget-wide v6, p0, Lj$/util/z;->sum:J
long-to-double v6, v6
long-to-double v4, v4
div-double/2addr v6, v4
goto :goto_0
:cond_0
const-wide/16 v6, 0x0
.line 211
:goto_0
invoke-static {v6, v7}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
move-result-object v4
.line 185
iget v5, p0, Lj$/util/z;->max:I
.line 212
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
const/4 v6, 0x6
new-array v6, v6, [Ljava/lang/Object;
const/4 v7, 0x0
aput-object v0, v6, v7
const/4 v0, 0x1
aput-object v1, v6, v0
const/4 v0, 0x2
aput-object v2, v6, v0
const/4 v0, 0x3
aput-object v3, v6, v0
const/4 v0, 0x4
aput-object v4, v6, v0
const/4 v0, 0x5
aput-object v5, v6, v0
.line 205
const-string v0, "%s{count=%d, sum=%d, min=%d, average=%f, max=%d}"
invoke-static {v0, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method