* 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>
205 lines
4.2 KiB
Smali
205 lines
4.2 KiB
Smali
.class public final Lj$/util/stream/p0;
|
|
.super Ljava/util/concurrent/CountedCompleter;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public a:Lj$/util/Spliterator;
|
|
|
|
.field public final b:Lj$/util/stream/n5;
|
|
|
|
.field public final c:Lj$/util/stream/v3;
|
|
|
|
.field public d:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lj$/util/stream/p0;Lj$/util/Spliterator;)V
|
|
.locals 2
|
|
|
|
.line 270
|
|
invoke-direct {p0, p1}, Ljava/util/concurrent/CountedCompleter;-><init>(Ljava/util/concurrent/CountedCompleter;)V
|
|
|
|
.line 271
|
|
iput-object p2, p0, Lj$/util/stream/p0;->a:Lj$/util/Spliterator;
|
|
|
|
.line 272
|
|
iget-object p2, p1, Lj$/util/stream/p0;->b:Lj$/util/stream/n5;
|
|
|
|
iput-object p2, p0, Lj$/util/stream/p0;->b:Lj$/util/stream/n5;
|
|
|
|
.line 273
|
|
iget-wide v0, p1, Lj$/util/stream/p0;->d:J
|
|
|
|
iput-wide v0, p0, Lj$/util/stream/p0;->d:J
|
|
|
|
.line 274
|
|
iget-object p1, p1, Lj$/util/stream/p0;->c:Lj$/util/stream/v3;
|
|
|
|
iput-object p1, p0, Lj$/util/stream/p0;->c:Lj$/util/stream/v3;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lj$/util/stream/v3;Lj$/util/Spliterator;Lj$/util/stream/n5;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 262
|
|
invoke-direct {p0, v0}, Ljava/util/concurrent/CountedCompleter;-><init>(Ljava/util/concurrent/CountedCompleter;)V
|
|
|
|
.line 263
|
|
iput-object p3, p0, Lj$/util/stream/p0;->b:Lj$/util/stream/n5;
|
|
|
|
.line 264
|
|
iput-object p1, p0, Lj$/util/stream/p0;->c:Lj$/util/stream/v3;
|
|
|
|
.line 265
|
|
iput-object p2, p0, Lj$/util/stream/p0;->a:Lj$/util/Spliterator;
|
|
|
|
const-wide/16 p1, 0x0
|
|
|
|
.line 266
|
|
iput-wide p1, p0, Lj$/util/stream/p0;->d:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final compute()V
|
|
.locals 12
|
|
|
|
.line 279
|
|
iget-object v0, p0, Lj$/util/stream/p0;->a:Lj$/util/Spliterator;
|
|
|
|
.line 280
|
|
invoke-interface {v0}, Lj$/util/Spliterator;->estimateSize()J
|
|
|
|
move-result-wide v1
|
|
|
|
.line 281
|
|
iget-wide v3, p0, Lj$/util/stream/p0;->d:J
|
|
|
|
const-wide/16 v5, 0x0
|
|
|
|
cmp-long v5, v3, v5
|
|
|
|
if-nez v5, :cond_0
|
|
|
|
.line 282
|
|
invoke-static {v1, v2}, Lj$/util/stream/d;->e(J)J
|
|
|
|
move-result-wide v3
|
|
|
|
iput-wide v3, p0, Lj$/util/stream/p0;->d:J
|
|
|
|
.line 283
|
|
:cond_0
|
|
sget-object v5, Lj$/util/stream/c7;->SHORT_CIRCUIT:Lj$/util/stream/c7;
|
|
|
|
iget-object v6, p0, Lj$/util/stream/p0;->c:Lj$/util/stream/v3;
|
|
|
|
check-cast v6, Lj$/util/stream/a;
|
|
|
|
.line 509
|
|
iget v6, v6, Lj$/util/stream/a;->m:I
|
|
|
|
.line 283
|
|
invoke-virtual {v5, v6}, Lj$/util/stream/c7;->i(I)Z
|
|
|
|
move-result v5
|
|
|
|
.line 285
|
|
iget-object v6, p0, Lj$/util/stream/p0;->b:Lj$/util/stream/n5;
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move-object v8, p0
|
|
|
|
:goto_0
|
|
if-eqz v5, :cond_1
|
|
|
|
.line 287
|
|
invoke-interface {v6}, Lj$/util/stream/n5;->e()Z
|
|
|
|
move-result v9
|
|
|
|
if-nez v9, :cond_5
|
|
|
|
:cond_1
|
|
cmp-long v1, v1, v3
|
|
|
|
if-lez v1, :cond_4
|
|
|
|
.line 289
|
|
invoke-interface {v0}, Lj$/util/Spliterator;->trySplit()Lj$/util/Spliterator;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
.line 293
|
|
:cond_2
|
|
new-instance v2, Lj$/util/stream/p0;
|
|
|
|
invoke-direct {v2, v8, v1}, Lj$/util/stream/p0;-><init>(Lj$/util/stream/p0;Lj$/util/Spliterator;)V
|
|
|
|
const/4 v9, 0x1
|
|
|
|
.line 294
|
|
invoke-virtual {v8, v9}, Ljava/util/concurrent/CountedCompleter;->addToPendingCount(I)V
|
|
|
|
if-eqz v7, :cond_3
|
|
|
|
move-object v0, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move-object v10, v8
|
|
|
|
move-object v8, v2
|
|
|
|
move-object v2, v10
|
|
|
|
:goto_1
|
|
xor-int/lit8 v7, v7, 0x1
|
|
|
|
.line 306
|
|
invoke-virtual {v8}, Ljava/util/concurrent/CountedCompleter;->fork()Ljava/util/concurrent/ForkJoinTask;
|
|
|
|
.line 307
|
|
invoke-interface {v0}, Lj$/util/Spliterator;->estimateSize()J
|
|
|
|
move-result-wide v8
|
|
|
|
move-wide v10, v8
|
|
|
|
move-object v8, v2
|
|
|
|
move-wide v1, v10
|
|
|
|
goto :goto_0
|
|
|
|
.line 290
|
|
:cond_4
|
|
:goto_2
|
|
iget-object v1, v8, Lj$/util/stream/p0;->c:Lj$/util/stream/v3;
|
|
|
|
invoke-virtual {v1, v0, v6}, Lj$/util/stream/v3;->c0(Lj$/util/Spliterator;Lj$/util/stream/n5;)V
|
|
|
|
:cond_5
|
|
const/4 v0, 0x0
|
|
|
|
.line 309
|
|
iput-object v0, v8, Lj$/util/stream/p0;->a:Lj$/util/Spliterator;
|
|
|
|
.line 310
|
|
invoke-virtual {v8}, Ljava/util/concurrent/CountedCompleter;->propagateCompletion()V
|
|
|
|
return-void
|
|
.end method
|