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

238 lines
4.4 KiB
Smali

.class public final Lj$/util/stream/o3;
.super Lj$/util/stream/y6;
.source "SourceFile"
# interfaces
.implements Lj$/util/stream/c2;
.implements Lj$/util/stream/u1;
# virtual methods
.method public final a(I)Lj$/util/stream/c2;
.locals 0
.line 104
new-instance p1, Ljava/lang/IndexOutOfBoundsException;
invoke-direct {p1}, Ljava/lang/IndexOutOfBoundsException;-><init>()V
throw p1
.end method
.method public final synthetic accept(D)V
.locals 0
invoke-static {}, Lj$/util/stream/v3;->C()V
const/4 p1, 0x0
throw p1
.end method
.method public final synthetic accept(I)V
.locals 0
invoke-static {}, Lj$/util/stream/v3;->J()V
const/4 p1, 0x0
throw p1
.end method
.method public final synthetic accept(J)V
.locals 0
invoke-static {}, Lj$/util/stream/v3;->K()V
const/4 p1, 0x0
throw p1
.end method
.method public final build()Lj$/util/stream/c2;
.locals 0
return-object p0
.end method
.method public final c(J)V
.locals 0
.line 1278
invoke-virtual {p0}, Lj$/util/stream/y6;->clear()V
.line 1279
invoke-virtual {p0, p1, p2}, Lj$/util/stream/y6;->p(J)V
return-void
.end method
.method public final synthetic e()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public final end()V
.locals 0
return-void
.end method
.method public final synthetic i(JJLjava/util/function/IntFunction;)Lj$/util/stream/c2;
.locals 0
invoke-static/range {p0 .. p5}, Lj$/util/stream/v3;->V(Lj$/util/stream/c2;JJLjava/util/function/IntFunction;)Lj$/util/stream/c2;
move-result-object p1
return-object p1
.end method
.method public final k([Ljava/lang/Object;I)V
.locals 6
int-to-long v0, p2
.line 188
invoke-virtual {p0}, Lj$/util/stream/c;->count()J
move-result-wide v2
add-long/2addr v2, v0
.line 189
array-length v4, p1
int-to-long v4, v4
cmp-long v4, v2, v4
if-gtz v4, :cond_3
cmp-long v0, v2, v0
if-ltz v0, :cond_3
.line 193
iget v0, p0, Lj$/util/stream/c;->c:I
const/4 v1, 0x0
if-nez v0, :cond_0
.line 194
iget-object v0, p0, Lj$/util/stream/y6;->e:[Ljava/lang/Object;
iget v2, p0, Lj$/util/stream/c;->b:I
invoke-static {v0, v1, p1, p2, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
return-void
:cond_0
move v0, v1
.line 197
:goto_0
iget v2, p0, Lj$/util/stream/c;->c:I
if-ge v0, v2, :cond_1
.line 198
iget-object v2, p0, Lj$/util/stream/y6;->f:[[Ljava/lang/Object;
aget-object v2, v2, v0
array-length v3, v2
invoke-static {v2, v1, p1, p2, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 199
iget-object v2, p0, Lj$/util/stream/y6;->f:[[Ljava/lang/Object;
aget-object v2, v2, v0
array-length v2, v2
add-int/2addr p2, v2
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 201
:cond_1
iget v0, p0, Lj$/util/stream/c;->b:I
if-lez v0, :cond_2
.line 202
iget-object v2, p0, Lj$/util/stream/y6;->e:[Ljava/lang/Object;
invoke-static {v2, v1, p1, p2, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
:cond_2
return-void
.line 190
:cond_3
new-instance p1, Ljava/lang/IndexOutOfBoundsException;
const-string p2, "does not fit"
invoke-direct {p1, p2}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public final m(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
.locals 4
.line 211
invoke-virtual {p0}, Lj$/util/stream/c;->count()J
move-result-wide v0
const-wide/32 v2, 0x7ffffff7
cmp-long v2, v0, v2
if-gez v2, :cond_0
long-to-int v0, v0
.line 214
invoke-interface {p1, v0}, Ljava/util/function/IntFunction;->apply(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/lang/Object;
const/4 v0, 0x0
.line 215
invoke-virtual {p0, p1, v0}, Lj$/util/stream/o3;->k([Ljava/lang/Object;I)V
return-object p1
.line 213
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Stream size exceeds max array size"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public final synthetic o()I
.locals 1
const/4 v0, 0x0
return v0
.end method