* 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>
293 lines
5.6 KiB
Smali
293 lines
5.6 KiB
Smali
.class public abstract Lj$/util/stream/d;
|
|
.super Ljava/util/concurrent/CountedCompleter;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final g:I
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lj$/util/stream/v3;
|
|
|
|
.field public b:Lj$/util/Spliterator;
|
|
|
|
.field public c:J
|
|
|
|
.field public d:Lj$/util/stream/d;
|
|
|
|
.field public e:Lj$/util/stream/d;
|
|
|
|
.field public f:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 91
|
|
invoke-static {}, Ljava/util/concurrent/ForkJoinPool;->getCommonPoolParallelism()I
|
|
|
|
move-result v0
|
|
|
|
shl-int/lit8 v0, v0, 0x2
|
|
|
|
sput v0, Lj$/util/stream/d;->g:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lj$/util/stream/d;Lj$/util/Spliterator;)V
|
|
.locals 0
|
|
|
|
.line 147
|
|
invoke-direct {p0, p1}, Ljava/util/concurrent/CountedCompleter;-><init>(Ljava/util/concurrent/CountedCompleter;)V
|
|
|
|
.line 148
|
|
iput-object p2, p0, Lj$/util/stream/d;->b:Lj$/util/Spliterator;
|
|
|
|
.line 149
|
|
iget-object p2, p1, Lj$/util/stream/d;->a:Lj$/util/stream/v3;
|
|
|
|
iput-object p2, p0, Lj$/util/stream/d;->a:Lj$/util/stream/v3;
|
|
|
|
.line 150
|
|
iget-wide p1, p1, Lj$/util/stream/d;->c:J
|
|
|
|
iput-wide p1, p0, Lj$/util/stream/d;->c:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lj$/util/stream/v3;Lj$/util/Spliterator;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 132
|
|
invoke-direct {p0, v0}, Ljava/util/concurrent/CountedCompleter;-><init>(Ljava/util/concurrent/CountedCompleter;)V
|
|
|
|
.line 133
|
|
iput-object p1, p0, Lj$/util/stream/d;->a:Lj$/util/stream/v3;
|
|
|
|
.line 134
|
|
iput-object p2, p0, Lj$/util/stream/d;->b:Lj$/util/Spliterator;
|
|
|
|
const-wide/16 p1, 0x0
|
|
|
|
.line 135
|
|
iput-wide p1, p0, Lj$/util/stream/d;->c:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static e(J)J
|
|
.locals 2
|
|
|
|
.line 168
|
|
sget v0, Lj$/util/stream/d;->g:I
|
|
|
|
int-to-long v0, v0
|
|
|
|
.line 196
|
|
div-long/2addr p0, v0
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p0, v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
return-wide p0
|
|
|
|
:cond_0
|
|
const-wide/16 p0, 0x1
|
|
|
|
return-wide p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public abstract a()Ljava/lang/Object;
|
|
.end method
|
|
|
|
.method public final b()Z
|
|
.locals 1
|
|
|
|
.line 286
|
|
invoke-virtual {p0}, Ljava/util/concurrent/CountedCompleter;->getCompleter()Ljava/util/concurrent/CountedCompleter;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lj$/util/stream/d;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public abstract c(Lj$/util/Spliterator;)Lj$/util/stream/d;
|
|
.end method
|
|
|
|
.method public compute()V
|
|
.locals 9
|
|
|
|
.line 304
|
|
iget-object v0, p0, Lj$/util/stream/d;->b:Lj$/util/Spliterator;
|
|
|
|
.line 305
|
|
invoke-interface {v0}, Lj$/util/Spliterator;->estimateSize()J
|
|
|
|
move-result-wide v1
|
|
|
|
.line 206
|
|
iget-wide v3, p0, Lj$/util/stream/d;->c:J
|
|
|
|
const-wide/16 v5, 0x0
|
|
|
|
cmp-long v5, v3, v5
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 207
|
|
:cond_0
|
|
invoke-static {v1, v2}, Lj$/util/stream/d;->e(J)J
|
|
|
|
move-result-wide v3
|
|
|
|
iput-wide v3, p0, Lj$/util/stream/d;->c:J
|
|
|
|
:goto_0
|
|
const/4 v5, 0x0
|
|
|
|
move-object v6, p0
|
|
|
|
:goto_1
|
|
cmp-long v1, v1, v3
|
|
|
|
if-lez v1, :cond_2
|
|
|
|
.line 309
|
|
invoke-interface {v0}, Lj$/util/Spliterator;->trySplit()Lj$/util/Spliterator;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 311
|
|
invoke-virtual {v6, v1}, Lj$/util/stream/d;->c(Lj$/util/Spliterator;)Lj$/util/stream/d;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v6, Lj$/util/stream/d;->d:Lj$/util/stream/d;
|
|
|
|
.line 312
|
|
invoke-virtual {v6, v0}, Lj$/util/stream/d;->c(Lj$/util/Spliterator;)Lj$/util/stream/d;
|
|
|
|
move-result-object v7
|
|
|
|
iput-object v7, v6, Lj$/util/stream/d;->e:Lj$/util/stream/d;
|
|
|
|
const/4 v8, 0x1
|
|
|
|
.line 313
|
|
invoke-virtual {v6, v8}, Ljava/util/concurrent/CountedCompleter;->setPendingCount(I)V
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
move-object v0, v1
|
|
|
|
move-object v6, v2
|
|
|
|
move-object v2, v7
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
move-object v6, v7
|
|
|
|
:goto_2
|
|
xor-int/lit8 v5, v5, 0x1
|
|
|
|
.line 325
|
|
invoke-virtual {v2}, Ljava/util/concurrent/CountedCompleter;->fork()Ljava/util/concurrent/ForkJoinTask;
|
|
|
|
.line 326
|
|
invoke-interface {v0}, Lj$/util/Spliterator;->estimateSize()J
|
|
|
|
move-result-wide v1
|
|
|
|
goto :goto_1
|
|
|
|
.line 328
|
|
:cond_2
|
|
invoke-virtual {v6}, Lj$/util/stream/d;->a()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v6, v0}, Lj$/util/stream/d;->d(Ljava/lang/Object;)V
|
|
|
|
.line 329
|
|
invoke-virtual {v6}, Ljava/util/concurrent/CountedCompleter;->tryComplete()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 255
|
|
iput-object p1, p0, Lj$/util/stream/d;->f:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getRawResult()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 221
|
|
iget-object v0, p0, Lj$/util/stream/d;->f:Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onCompletion(Ljava/util/concurrent/CountedCompleter;)V
|
|
.locals 0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 342
|
|
iput-object p1, p0, Lj$/util/stream/d;->b:Lj$/util/Spliterator;
|
|
|
|
.line 343
|
|
iput-object p1, p0, Lj$/util/stream/d;->e:Lj$/util/stream/d;
|
|
|
|
iput-object p1, p0, Lj$/util/stream/d;->d:Lj$/util/stream/d;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setRawResult(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 235
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|