* 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>
250 lines
5.3 KiB
Smali
250 lines
5.3 KiB
Smali
.class public final Lj$/util/stream/l8;
|
|
.super Lj$/util/stream/e7;
|
|
.source "SourceFile"
|
|
|
|
|
|
# virtual methods
|
|
.method public final d()V
|
|
.locals 3
|
|
|
|
.line 291
|
|
new-instance v0, Lj$/util/stream/y6;
|
|
|
|
invoke-direct {v0}, Lj$/util/stream/y6;-><init>()V
|
|
|
|
.line 292
|
|
iput-object v0, p0, Lj$/util/stream/e7;->h:Lj$/util/stream/c;
|
|
|
|
.line 293
|
|
invoke-static {v0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v1, Lj$/util/stream/k8;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {v1, v0, v2}, Lj$/util/stream/k8;-><init>(Ljava/util/function/Consumer;I)V
|
|
|
|
iget-object v0, p0, Lj$/util/stream/e7;->b:Lj$/util/stream/a;
|
|
|
|
invoke-virtual {v0, v1}, Lj$/util/stream/a;->w0(Lj$/util/stream/n5;)Lj$/util/stream/n5;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lj$/util/stream/e7;->e:Lj$/util/stream/n5;
|
|
|
|
.line 294
|
|
new-instance v0, Lj$/util/p;
|
|
|
|
const/16 v1, 0xd
|
|
|
|
invoke-direct {v0, v1, p0}, Lj$/util/p;-><init>(ILjava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Lj$/util/stream/e7;->f:Ljava/util/function/BooleanSupplier;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final e(Lj$/util/Spliterator;)Lj$/util/stream/e7;
|
|
.locals 3
|
|
|
|
.line 286
|
|
new-instance v0, Lj$/util/stream/l8;
|
|
|
|
iget-object v1, p0, Lj$/util/stream/e7;->b:Lj$/util/stream/a;
|
|
|
|
iget-boolean v2, p0, Lj$/util/stream/e7;->a:Z
|
|
|
|
.line 281
|
|
invoke-direct {v0, v1, p1, v2}, Lj$/util/stream/e7;-><init>(Lj$/util/stream/a;Lj$/util/Spliterator;Z)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final forEachRemaining(Ljava/util/function/Consumer;)V
|
|
.locals 2
|
|
|
|
.line 308
|
|
iget-object v0, p0, Lj$/util/stream/e7;->h:Lj$/util/stream/c;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lj$/util/stream/e7;->i:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 309
|
|
invoke-static {p1}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 310
|
|
invoke-virtual {p0}, Lj$/util/stream/e7;->c()V
|
|
|
|
.line 312
|
|
invoke-static {p1}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v0, Lj$/util/stream/k8;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {v0, p1, v1}, Lj$/util/stream/k8;-><init>(Ljava/util/function/Consumer;I)V
|
|
|
|
iget-object p1, p0, Lj$/util/stream/e7;->d:Lj$/util/Spliterator;
|
|
|
|
iget-object v1, p0, Lj$/util/stream/e7;->b:Lj$/util/stream/a;
|
|
|
|
invoke-virtual {v1, p1, v0}, Lj$/util/stream/a;->v0(Lj$/util/Spliterator;Lj$/util/stream/n5;)Lj$/util/stream/n5;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 313
|
|
iput-boolean p1, p0, Lj$/util/stream/e7;->i:Z
|
|
|
|
return-void
|
|
|
|
.line 316
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lj$/util/stream/l8;->tryAdvance(Ljava/util/function/Consumer;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final tryAdvance(Ljava/util/function/Consumer;)Z
|
|
.locals 10
|
|
|
|
.line 299
|
|
invoke-static {p1}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 300
|
|
invoke-virtual {p0}, Lj$/util/stream/e7;->a()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 302
|
|
iget-object v1, p0, Lj$/util/stream/e7;->h:Lj$/util/stream/c;
|
|
|
|
check-cast v1, Lj$/util/stream/y6;
|
|
|
|
iget-wide v2, p0, Lj$/util/stream/e7;->g:J
|
|
|
|
.line 166
|
|
iget v4, v1, Lj$/util/stream/c;->c:I
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
.line 167
|
|
iget v4, v1, Lj$/util/stream/c;->b:I
|
|
|
|
int-to-long v4, v4
|
|
|
|
cmp-long v4, v2, v4
|
|
|
|
if-gez v4, :cond_0
|
|
|
|
.line 168
|
|
iget-object v1, v1, Lj$/util/stream/y6;->e:[Ljava/lang/Object;
|
|
|
|
long-to-int v2, v2
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
goto :goto_1
|
|
|
|
.line 170
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 173
|
|
:cond_1
|
|
invoke-virtual {v1}, Lj$/util/stream/c;->count()J
|
|
|
|
move-result-wide v4
|
|
|
|
cmp-long v4, v2, v4
|
|
|
|
if-gez v4, :cond_4
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 176
|
|
:goto_0
|
|
iget v5, v1, Lj$/util/stream/c;->c:I
|
|
|
|
if-gt v4, v5, :cond_3
|
|
|
|
.line 177
|
|
iget-object v5, v1, Lj$/util/stream/c;->d:[J
|
|
|
|
aget-wide v6, v5, v4
|
|
|
|
iget-object v5, v1, Lj$/util/stream/y6;->f:[[Ljava/lang/Object;
|
|
|
|
aget-object v5, v5, v4
|
|
|
|
array-length v8, v5
|
|
|
|
int-to-long v8, v8
|
|
|
|
add-long/2addr v8, v6
|
|
|
|
cmp-long v8, v2, v8
|
|
|
|
if-gez v8, :cond_2
|
|
|
|
sub-long/2addr v2, v6
|
|
|
|
long-to-int v1, v2
|
|
|
|
.line 178
|
|
aget-object v1, v5, v1
|
|
|
|
.line 302
|
|
:goto_1
|
|
invoke-interface {p1, v1}, Ljava/util/function/Consumer;->accept(Ljava/lang/Object;)V
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 180
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 174
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_5
|
|
return v0
|
|
.end method
|