* 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>
341 lines
6.8 KiB
Smali
341 lines
6.8 KiB
Smali
.class public abstract Lj$/util/stream/n3;
|
|
.super Ljava/util/concurrent/CountedCompleter;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lj$/util/stream/n5;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lj$/util/Spliterator;
|
|
|
|
.field public final b:Lj$/util/stream/v3;
|
|
|
|
.field public final c:J
|
|
|
|
.field public final d:J
|
|
|
|
.field public final e:J
|
|
|
|
.field public f:I
|
|
|
|
.field public g:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lj$/util/Spliterator;Lj$/util/stream/v3;I)V
|
|
.locals 0
|
|
|
|
.line 1844
|
|
invoke-direct {p0}, Ljava/util/concurrent/CountedCompleter;-><init>()V
|
|
|
|
.line 1846
|
|
iput-object p1, p0, Lj$/util/stream/n3;->a:Lj$/util/Spliterator;
|
|
|
|
.line 1847
|
|
iput-object p2, p0, Lj$/util/stream/n3;->b:Lj$/util/stream/v3;
|
|
|
|
.line 1848
|
|
invoke-interface {p1}, Lj$/util/Spliterator;->estimateSize()J
|
|
|
|
move-result-wide p1
|
|
|
|
invoke-static {p1, p2}, Lj$/util/stream/d;->e(J)J
|
|
|
|
move-result-wide p1
|
|
|
|
iput-wide p1, p0, Lj$/util/stream/n3;->c:J
|
|
|
|
const-wide/16 p1, 0x0
|
|
|
|
.line 1849
|
|
iput-wide p1, p0, Lj$/util/stream/n3;->d:J
|
|
|
|
int-to-long p1, p3
|
|
|
|
.line 1850
|
|
iput-wide p1, p0, Lj$/util/stream/n3;->e:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lj$/util/stream/n3;Lj$/util/Spliterator;JJI)V
|
|
.locals 2
|
|
|
|
.line 1855
|
|
invoke-direct {p0, p1}, Ljava/util/concurrent/CountedCompleter;-><init>(Ljava/util/concurrent/CountedCompleter;)V
|
|
|
|
.line 1857
|
|
iput-object p2, p0, Lj$/util/stream/n3;->a:Lj$/util/Spliterator;
|
|
|
|
.line 1858
|
|
iget-object p2, p1, Lj$/util/stream/n3;->b:Lj$/util/stream/v3;
|
|
|
|
iput-object p2, p0, Lj$/util/stream/n3;->b:Lj$/util/stream/v3;
|
|
|
|
.line 1859
|
|
iget-wide p1, p1, Lj$/util/stream/n3;->c:J
|
|
|
|
iput-wide p1, p0, Lj$/util/stream/n3;->c:J
|
|
|
|
.line 1860
|
|
iput-wide p3, p0, Lj$/util/stream/n3;->d:J
|
|
|
|
.line 1861
|
|
iput-wide p5, p0, Lj$/util/stream/n3;->e:J
|
|
|
|
const-wide/16 p1, 0x0
|
|
|
|
cmp-long v0, p3, p1
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
cmp-long p1, p5, p1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
add-long p1, p3, p5
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
sub-long/2addr p1, v0
|
|
|
|
int-to-long v0, p7
|
|
|
|
cmp-long p1, p1, v0
|
|
|
|
if-gez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 1864
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 1866
|
|
invoke-static {p3, p4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p3, p4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-static {p5, p6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-static {p7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p5
|
|
|
|
const/4 p6, 0x4
|
|
|
|
new-array p6, p6, [Ljava/lang/Object;
|
|
|
|
const/4 p7, 0x0
|
|
|
|
aput-object p2, p6, p7
|
|
|
|
const/4 p2, 0x1
|
|
|
|
aput-object p3, p6, p2
|
|
|
|
const/4 p2, 0x2
|
|
|
|
aput-object p4, p6, p2
|
|
|
|
const/4 p2, 0x3
|
|
|
|
aput-object p5, p6, p2
|
|
|
|
.line 1865
|
|
const-string p2, "offset and length interval [%d, %d + %d) is not within array size interval [0, %d)"
|
|
|
|
invoke-static {p2, p6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public abstract a(Lj$/util/Spliterator;JJ)Lj$/util/stream/n3;
|
|
.end method
|
|
|
|
.method public synthetic accept(D)V
|
|
.locals 0
|
|
|
|
invoke-static {}, Lj$/util/stream/v3;->C()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public synthetic accept(I)V
|
|
.locals 0
|
|
|
|
invoke-static {}, Lj$/util/stream/v3;->J()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public 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 synthetic andThen(Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
|
|
.locals 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
|
|
.end method
|
|
|
|
.method public final c(J)V
|
|
.locals 2
|
|
|
|
.line 1894
|
|
iget-wide v0, p0, Lj$/util/stream/n3;->e:J
|
|
|
|
cmp-long p1, p1, v0
|
|
|
|
if-gtz p1, :cond_0
|
|
|
|
.line 1899
|
|
iget-wide p1, p0, Lj$/util/stream/n3;->d:J
|
|
|
|
long-to-int p1, p1
|
|
|
|
iput p1, p0, Lj$/util/stream/n3;->f:I
|
|
|
|
long-to-int p2, v0
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
.line 1900
|
|
iput p1, p0, Lj$/util/stream/n3;->g:I
|
|
|
|
return-void
|
|
|
|
.line 1895
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p2, "size passed to Sink.begin exceeds array length"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final compute()V
|
|
.locals 10
|
|
|
|
.line 1873
|
|
iget-object v1, p0, Lj$/util/stream/n3;->a:Lj$/util/Spliterator;
|
|
|
|
move-object v0, p0
|
|
|
|
.line 1874
|
|
:goto_0
|
|
invoke-interface {v1}, Lj$/util/Spliterator;->estimateSize()J
|
|
|
|
move-result-wide v2
|
|
|
|
iget-wide v4, v0, Lj$/util/stream/n3;->c:J
|
|
|
|
cmp-long v2, v2, v4
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
.line 1875
|
|
invoke-interface {v1}, Lj$/util/Spliterator;->trySplit()Lj$/util/Spliterator;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 1876
|
|
invoke-virtual {v0, v2}, Ljava/util/concurrent/CountedCompleter;->setPendingCount(I)V
|
|
|
|
.line 1877
|
|
invoke-interface {v3}, Lj$/util/Spliterator;->estimateSize()J
|
|
|
|
move-result-wide v6
|
|
|
|
.line 1878
|
|
iget-wide v4, v0, Lj$/util/stream/n3;->d:J
|
|
|
|
move-object v2, v0
|
|
|
|
invoke-virtual/range {v2 .. v7}, Lj$/util/stream/n3;->a(Lj$/util/Spliterator;JJ)Lj$/util/stream/n3;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/CountedCompleter;->fork()Ljava/util/concurrent/ForkJoinTask;
|
|
|
|
.line 1879
|
|
iget-wide v3, v2, Lj$/util/stream/n3;->d:J
|
|
|
|
add-long/2addr v3, v6
|
|
|
|
iget-wide v8, v2, Lj$/util/stream/n3;->e:J
|
|
|
|
sub-long/2addr v8, v6
|
|
|
|
move-object v0, v2
|
|
|
|
move-wide v2, v3
|
|
|
|
move-wide v4, v8
|
|
|
|
invoke-virtual/range {v0 .. v5}, Lj$/util/stream/n3;->a(Lj$/util/Spliterator;JJ)Lj$/util/stream/n3;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v2, v0
|
|
|
|
.line 1886
|
|
iget-object v0, v2, Lj$/util/stream/n3;->b:Lj$/util/stream/v3;
|
|
|
|
invoke-virtual {v0, v1, v2}, Lj$/util/stream/v3;->v0(Lj$/util/Spliterator;Lj$/util/stream/n5;)Lj$/util/stream/n5;
|
|
|
|
.line 1887
|
|
invoke-virtual {v2}, Ljava/util/concurrent/CountedCompleter;->propagateCompletion()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final synthetic e()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final synthetic end()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|