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

381 lines
7.5 KiB
Smali

.class public abstract Lj$/util/stream/y5;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static a(JJJ)J
.locals 3
const-wide/16 v0, 0x0
cmp-long v0, p0, v0
const-wide/16 v1, -0x1
if-ltz v0, :cond_0
sub-long/2addr p0, p2
.line 53
invoke-static {p0, p1, p4, p5}, Ljava/lang/Math;->min(JJ)J
move-result-wide p0
invoke-static {v1, v2, p0, p1}, Ljava/lang/Math;->max(JJ)J
move-result-wide p0
return-wide p0
:cond_0
return-wide v1
.end method
.method public static b(Lj$/util/stream/d7;Lj$/util/Spliterator;JJ)Lj$/util/Spliterator;
.locals 2
.line 80
invoke-static {p2, p3, p4, p5}, Lj$/util/stream/y5;->c(JJ)J
move-result-wide p4
.line 81
sget-object v0, Lj$/util/stream/w5;->a:[I
invoke-virtual {p0}, Ljava/lang/Enum;->ordinal()I
move-result v1
aget v0, v0, v1
const/4 v1, 0x1
if-eq v0, v1, :cond_3
const/4 v1, 0x2
if-eq v0, v1, :cond_2
const/4 v1, 0x3
if-eq v0, v1, :cond_1
const/4 v1, 0x4
if-ne v0, v1, :cond_0
.line 92
new-instance p0, Lj$/util/stream/x7;
check-cast p1, Lj$/util/Spliterator$OfDouble;
.line 871
invoke-direct/range {p0 .. p5}, Lj$/util/stream/a8;-><init>(Lj$/util/Spliterator$OfPrimitive;JJ)V
return-object p0
.line 95
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
new-instance p2, Ljava/lang/StringBuilder;
const-string p3, "Unknown shape "
invoke-direct {p2, p3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 89
:cond_1
new-instance p0, Lj$/util/stream/z7;
check-cast p1, Lj$/util/Spliterator$OfLong;
.line 847
invoke-direct/range {p0 .. p5}, Lj$/util/stream/a8;-><init>(Lj$/util/Spliterator$OfPrimitive;JJ)V
return-object p0
.line 86
:cond_2
new-instance p0, Lj$/util/stream/y7;
check-cast p1, Lj$/util/Spliterator$OfInt;
.line 823
invoke-direct/range {p0 .. p5}, Lj$/util/stream/a8;-><init>(Lj$/util/Spliterator$OfPrimitive;JJ)V
return-object p0
.line 83
:cond_3
new-instance p0, Lj$/util/stream/b8;
invoke-direct/range {p0 .. p5}, Lj$/util/stream/b8;-><init>(Lj$/util/Spliterator;JJ)V
return-object p0
.end method
.method public static c(JJ)J
.locals 5
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
const-wide v3, 0x7fffffffffffffffL
if-ltz v2, :cond_0
add-long/2addr p0, p2
goto :goto_0
:cond_0
move-wide p0, v3
:goto_0
cmp-long p2, p0, v0
if-ltz p2, :cond_1
return-wide p0
:cond_1
return-wide v3
.end method
.method public static d(J)I
.locals 3
.line 544
sget v0, Lj$/util/stream/c7;->t:I
const-wide/16 v1, -0x1
cmp-long p0, p0, v1
if-eqz p0, :cond_0
sget p0, Lj$/util/stream/c7;->u:I
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
or-int/2addr p0, v0
return p0
.end method
.method public static e(Lj$/util/stream/y;JJ)Lj$/util/stream/v5;
.locals 8
const-wide/16 v0, 0x0
cmp-long v0, p1, v0
if-ltz v0, :cond_0
.line 448
new-instance v1, Lj$/util/stream/v5;
.line 449
invoke-static {p3, p4}, Lj$/util/stream/y5;->d(J)I
move-result v3
move-object v2, p0
move-wide v4, p1
move-wide v6, p3
invoke-direct/range {v1 .. v7}, Lj$/util/stream/v5;-><init>(Lj$/util/stream/y;IJJ)V
return-object v1
:cond_0
move-wide v4, p1
.line 446
new-instance p0, Ljava/lang/IllegalArgumentException;
new-instance p1, Ljava/lang/StringBuilder;
const-string p2, "Skip must be non-negative: "
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static f(Lj$/util/stream/x0;JJ)Lj$/util/stream/r5;
.locals 8
const-wide/16 v0, 0x0
cmp-long v0, p1, v0
if-ltz v0, :cond_0
.line 230
new-instance v1, Lj$/util/stream/r5;
.line 231
invoke-static {p3, p4}, Lj$/util/stream/y5;->d(J)I
move-result v3
move-object v2, p0
move-wide v4, p1
move-wide v6, p3
invoke-direct/range {v1 .. v7}, Lj$/util/stream/r5;-><init>(Lj$/util/stream/x0;IJJ)V
return-object v1
:cond_0
move-wide v4, p1
.line 228
new-instance p0, Ljava/lang/IllegalArgumentException;
new-instance p1, Ljava/lang/StringBuilder;
const-string p2, "Skip must be non-negative: "
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static g(Lj$/util/stream/g1;JJ)Lj$/util/stream/t5;
.locals 8
const-wide/16 v0, 0x0
cmp-long v0, p1, v0
if-ltz v0, :cond_0
.line 339
new-instance v1, Lj$/util/stream/t5;
.line 340
invoke-static {p3, p4}, Lj$/util/stream/y5;->d(J)I
move-result v3
move-object v2, p0
move-wide v4, p1
move-wide v6, p3
invoke-direct/range {v1 .. v7}, Lj$/util/stream/t5;-><init>(Lj$/util/stream/g1;IJJ)V
return-object v1
:cond_0
move-wide v4, p1
.line 337
new-instance p0, Ljava/lang/IllegalArgumentException;
new-instance p1, Ljava/lang/StringBuilder;
const-string p2, "Skip must be non-negative: "
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static h(Lj$/util/stream/f5;JJ)Lj$/util/stream/p5;
.locals 8
const-wide/16 v0, 0x0
cmp-long v0, p1, v0
if-ltz v0, :cond_0
.line 114
new-instance v1, Lj$/util/stream/p5;
.line 115
invoke-static {p3, p4}, Lj$/util/stream/y5;->d(J)I
move-result v3
move-object v2, p0
move-wide v4, p1
move-wide v6, p3
invoke-direct/range {v1 .. v7}, Lj$/util/stream/p5;-><init>(Lj$/util/stream/f5;IJJ)V
return-object v1
:cond_0
move-wide v4, p1
.line 112
new-instance p0, Ljava/lang/IllegalArgumentException;
new-instance p1, Ljava/lang/StringBuilder;
const-string p2, "Skip must be non-negative: "
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method