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

523 lines
10 KiB
Smali

.class public final synthetic Lj$/util/stream/y0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/function/LongBinaryOperator;
.implements Ljava/util/function/ToLongFunction;
.implements Ljava/util/function/BiConsumer;
.implements Ljava/util/function/IntFunction;
.implements Ljava/util/function/LongFunction;
.implements Ljava/util/function/Supplier;
.implements Ljava/util/function/ObjLongConsumer;
.implements Ljava/util/function/Consumer;
.implements Ljava/util/function/BinaryOperator;
# instance fields
.field public final synthetic a:I
# direct methods
.method public synthetic constructor <init>(I)V
.locals 0
iput p1, p0, Lj$/util/stream/y0;->a:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private final accept$j$$util$stream$Node$$ExternalSyntheticLambda0(Ljava/lang/Object;)V
.locals 0
.line 0
return-void
.end method
.method private final accept$j$$util$stream$StreamSpliterators$SliceSpliterator$OfRef$$ExternalSyntheticLambda0(Ljava/lang/Object;)V
.locals 0
.line 0
return-void
.end method
.method private final accept$j$$util$stream$StreamSpliterators$SliceSpliterator$OfRef$$ExternalSyntheticLambda1(Ljava/lang/Object;)V
.locals 0
.line 0
return-void
.end method
# virtual methods
.method public accept(Ljava/lang/Object;)V
.locals 0
iget p1, p0, Lj$/util/stream/y0;->a:I
return-void
.end method
.method public accept(Ljava/lang/Object;J)V
.locals 5
check-cast p1, [J
const/4 v0, 0x0
.line 449
aget-wide v1, p1, v0
const-wide/16 v3, 0x1
add-long/2addr v1, v3
aput-wide v1, p1, v0
const/4 v0, 0x1
.line 450
aget-wide v1, p1, v0
add-long/2addr v1, p2
aput-wide v1, p1, v0
return-void
.end method
.method public accept(Ljava/lang/Object;Ljava/lang/Object;)V
.locals 5
iget v0, p0, Lj$/util/stream/y0;->a:I
packed-switch v0, :pswitch_data_0
check-cast p1, [J
check-cast p2, [J
const/4 v0, 0x0
.line 453
aget-wide v1, p1, v0
aget-wide v3, p2, v0
add-long/2addr v1, v3
aput-wide v1, p1, v0
const/4 v0, 0x1
.line 454
aget-wide v1, p1, v0
aget-wide v3, p2, v0
add-long/2addr v1, v3
aput-wide v1, p1, v0
return-void
.line 0
:pswitch_0
check-cast p1, Lj$/util/b0;
check-cast p2, Lj$/util/b0;
invoke-virtual {p1, p2}, Lj$/util/b0;->a(Lj$/util/b0;)V
return-void
:pswitch_data_0
.packed-switch 0x2
:pswitch_0
.end packed-switch
.end method
.method public synthetic andThen(Ljava/util/function/BiConsumer;)Ljava/util/function/BiConsumer;
.locals 1
iget v0, p0, Lj$/util/stream/y0;->a:I
packed-switch v0, :pswitch_data_0
.line 0
invoke-static {p0, p1}, Lj$/util/function/BiConsumer$-CC;->$default$andThen(Ljava/util/function/BiConsumer;Ljava/util/function/BiConsumer;)Ljava/util/function/BiConsumer;
move-result-object p1
return-object p1
.line 0
:pswitch_0
invoke-static {p0, p1}, Lj$/util/function/BiConsumer$-CC;->$default$andThen(Ljava/util/function/BiConsumer;Ljava/util/function/BiConsumer;)Ljava/util/function/BiConsumer;
move-result-object p1
return-object p1
nop
:pswitch_data_0
.packed-switch 0x2
:pswitch_0
.end packed-switch
.end method
.method public synthetic andThen(Ljava/util/function/Function;)Ljava/util/function/BiFunction;
.locals 1
iget v0, p0, Lj$/util/stream/y0;->a:I
packed-switch v0, :pswitch_data_0
.line 0
:pswitch_0
invoke-static {p0, p1}, Lj$/util/function/BiFunction$-CC;->$default$andThen(Ljava/util/function/BiFunction;Ljava/util/function/Function;)Ljava/util/function/BiFunction;
move-result-object p1
return-object p1
.line 0
:pswitch_1
invoke-static {p0, p1}, Lj$/util/function/BiFunction$-CC;->$default$andThen(Ljava/util/function/BiFunction;Ljava/util/function/Function;)Ljava/util/function/BiFunction;
move-result-object p1
return-object p1
.line 0
:pswitch_2
invoke-static {p0, p1}, Lj$/util/function/BiFunction$-CC;->$default$andThen(Ljava/util/function/BiFunction;Ljava/util/function/Function;)Ljava/util/function/BiFunction;
move-result-object p1
return-object p1
.line 0
:pswitch_3
invoke-static {p0, p1}, Lj$/util/function/BiFunction$-CC;->$default$andThen(Ljava/util/function/BiFunction;Ljava/util/function/Function;)Ljava/util/function/BiFunction;
move-result-object p1
return-object p1
nop
:pswitch_data_0
.packed-switch 0xd
:pswitch_3
:pswitch_0
:pswitch_2
:pswitch_0
:pswitch_1
.end packed-switch
.end method
.method public synthetic andThen(Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
.locals 1
iget v0, p0, Lj$/util/stream/y0;->a:I
sparse-switch v0, :sswitch_data_0
.line 0
invoke-static {p0, p1}, Lj$/util/function/Consumer$-CC;->$default$andThen(Ljava/util/function/Consumer;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
move-result-object p1
return-object p1
.line 0
:sswitch_0
invoke-static {p0, p1}, Lj$/util/function/Consumer$-CC;->$default$andThen(Ljava/util/function/Consumer;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
move-result-object p1
return-object p1
.line 0
:sswitch_1
invoke-static {p0, p1}, Lj$/util/function/Consumer$-CC;->$default$andThen(Ljava/util/function/Consumer;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
move-result-object p1
return-object p1
:sswitch_data_0
.sparse-switch
0xa -> :sswitch_1
0x17 -> :sswitch_0
.end sparse-switch
.end method
.method public apply(I)Ljava/lang/Object;
.locals 1
iget v0, p0, Lj$/util/stream/y0;->a:I
sparse-switch v0, :sswitch_data_0
.line 240
new-array p1, p1, [Ljava/lang/Double;
return-object p1
.line 493
:sswitch_0
new-array p1, p1, [Ljava/lang/Long;
return-object p1
.line 183
:sswitch_1
new-array p1, p1, [Ljava/lang/Long;
return-object p1
.line 418
:sswitch_2
new-array p1, p1, [Ljava/lang/Integer;
return-object p1
.line 126
:sswitch_3
new-array p1, p1, [Ljava/lang/Integer;
return-object p1
.line 476
:sswitch_4
new-array p1, p1, [Ljava/lang/Double;
return-object p1
.line 367
:sswitch_5
new-array p1, p1, [Ljava/lang/Long;
return-object p1
.line 258
:sswitch_6
new-array p1, p1, [Ljava/lang/Integer;
return-object p1
.line 523
:sswitch_7
new-array p1, p1, [Ljava/lang/Object;
return-object p1
.line 77
:sswitch_8
new-array p1, p1, [Ljava/lang/Object;
return-object p1
.line 521
:sswitch_9
new-array p1, p1, [Ljava/lang/Long;
return-object p1
:sswitch_data_0
.sparse-switch
0x3 -> :sswitch_9
0xb -> :sswitch_8
0x13 -> :sswitch_7
0x14 -> :sswitch_6
0x15 -> :sswitch_5
0x16 -> :sswitch_4
0x19 -> :sswitch_3
0x1a -> :sswitch_2
0x1b -> :sswitch_1
0x1c -> :sswitch_0
.end sparse-switch
.end method
.method public apply(J)Ljava/lang/Object;
.locals 1
iget v0, p0, Lj$/util/stream/y0;->a:I
sparse-switch v0, :sswitch_data_0
.line 0
invoke-static {p1, p2}, Lj$/util/stream/v3;->o0(J)Lj$/util/stream/t1;
move-result-object p1
return-object p1
.line 0
:sswitch_0
invoke-static {p1, p2}, Lj$/util/stream/v3;->n0(J)Lj$/util/stream/s1;
move-result-object p1
return-object p1
.line 0
:sswitch_1
invoke-static {p1, p2}, Lj$/util/stream/v3;->e0(J)Lj$/util/stream/r1;
move-result-object p1
return-object p1
.line 0
:sswitch_2
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
return-object p1
nop
:sswitch_data_0
.sparse-switch
0x4 -> :sswitch_2
0xc -> :sswitch_1
0xe -> :sswitch_0
.end sparse-switch
.end method
.method public apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
iget v0, p0, Lj$/util/stream/y0;->a:I
packed-switch v0, :pswitch_data_0
:pswitch_0
new-instance v0, Lj$/util/stream/n2;
check-cast p1, Lj$/util/stream/c2;
check-cast p2, Lj$/util/stream/c2;
.line 791
invoke-direct {v0, p1, p2}, Lj$/util/stream/e2;-><init>(Lj$/util/stream/c2;Lj$/util/stream/c2;)V
return-object v0
.line 0
:pswitch_1
new-instance v0, Lj$/util/stream/l2;
check-cast p1, Lj$/util/stream/a2;
check-cast p2, Lj$/util/stream/a2;
.line 855
invoke-direct {v0, p1, p2}, Lj$/util/stream/e2;-><init>(Lj$/util/stream/c2;Lj$/util/stream/c2;)V
return-object v0
.line 0
:pswitch_2
new-instance v0, Lj$/util/stream/k2;
check-cast p1, Lj$/util/stream/y1;
check-cast p2, Lj$/util/stream/y1;
.line 855
invoke-direct {v0, p1, p2}, Lj$/util/stream/e2;-><init>(Lj$/util/stream/c2;Lj$/util/stream/c2;)V
return-object v0
.line 0
:pswitch_3
new-instance v0, Lj$/util/stream/j2;
check-cast p1, Lj$/util/stream/w1;
check-cast p2, Lj$/util/stream/w1;
.line 855
invoke-direct {v0, p1, p2}, Lj$/util/stream/e2;-><init>(Lj$/util/stream/c2;Lj$/util/stream/c2;)V
return-object v0
nop
:pswitch_data_0
.packed-switch 0xd
:pswitch_3
:pswitch_0
:pswitch_2
:pswitch_0
:pswitch_1
.end packed-switch
.end method
.method public applyAsLong(JJ)J
.locals 1
iget v0, p0, Lj$/util/stream/y0;->a:I
sparse-switch v0, :sswitch_data_0
add-long/2addr p1, p3
return-wide p1
.line 0
:sswitch_0
invoke-static {p1, p2, p3, p4}, Ljava/lang/Math;->max(JJ)J
move-result-wide p1
return-wide p1
.line 0
:sswitch_1
invoke-static {p1, p2, p3, p4}, Ljava/lang/Math;->min(JJ)J
move-result-wide p1
return-wide p1
nop
:sswitch_data_0
.sparse-switch
0x0 -> :sswitch_1
0x8 -> :sswitch_0
.end sparse-switch
.end method
.method public applyAsLong(Ljava/lang/Object;)J
.locals 2
check-cast p1, Ljava/lang/Long;
.line 414
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v0
return-wide v0
.end method
.method public get()Ljava/lang/Object;
.locals 1
const/4 v0, 0x2
.line 447
new-array v0, v0, [J
return-object v0
.end method