soul-browser/sources/java/j$/util/stream/s9.java
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

152 lines
4.4 KiB
Java

package j$.util.stream;
import j$.util.Spliterator;
import j$.util.function.Consumer$CC;
import java.util.function.Consumer;
import java.util.function.Predicate;
/* loaded from: classes2.dex */
public final class s9 extends t9 implements Consumer {
public final Predicate e;
public Object f;
public final /* synthetic */ int g;
public final /* synthetic */ Consumer andThen(Consumer consumer) {
return Consumer$CC.$default$andThen(this, consumer);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public s9(Spliterator spliterator, Predicate predicate, int i) {
super(spliterator);
this.g = i;
this.e = predicate;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public s9(Spliterator spliterator, s9 s9Var, int i) {
super(spliterator, s9Var);
this.g = i;
this.e = s9Var.e;
}
@Override // java.util.function.Consumer
public final void accept(Object obj) {
this.d = (this.d + 1) & 63;
this.f = obj;
}
/* JADX WARN: Code restructure failed: missing block: B:32:0x0059, code lost:
if (r0 == false) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:33:0x005b, code lost:
r6.b.set(true);
*/
/* JADX WARN: Code restructure failed: missing block: B:34:0x0060, code lost:
r7.accept(r6.f);
*/
/* JADX WARN: Code restructure failed: missing block: B:35:?, code lost:
return r2;
*/
@Override // j$.util.Spliterator
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean tryAdvance(java.util.function.Consumer r7) {
/*
r6 = this;
int r0 = r6.g
switch(r0) {
case 0: goto L35;
default: goto L5;
}
L5:
boolean r0 = r6.f21495c
r1 = 1
if (r0 == 0) goto L28
boolean r0 = r6.a()
if (r0 == 0) goto L28
j$.util.Spliterator r0 = r6.f21494a
boolean r0 = r0.tryAdvance(r6)
if (r0 == 0) goto L28
java.util.function.Predicate r0 = r6.e
java.lang.Object r2 = r6.f
boolean r0 = r0.test(r2)
if (r0 == 0) goto L29
java.lang.Object r0 = r6.f
r7.accept(r0)
goto L34
L28:
r0 = r1
L29:
r7 = 0
r6.f21495c = r7
if (r0 != 0) goto L33
java.util.concurrent.atomic.AtomicBoolean r0 = r6.b
r0.set(r1)
L33:
r1 = r7
L34:
return r1
L35:
boolean r0 = r6.f21495c
j$.util.Spliterator r1 = r6.f21494a
if (r0 == 0) goto L66
r0 = 0
r6.f21495c = r0
L3e:
boolean r2 = r1.tryAdvance(r6)
r3 = 1
if (r2 == 0) goto L57
boolean r4 = r6.a()
if (r4 == 0) goto L57
java.util.function.Predicate r4 = r6.e
java.lang.Object r5 = r6.f
boolean r4 = r4.test(r5)
if (r4 == 0) goto L57
r0 = r3
goto L3e
L57:
if (r2 == 0) goto L6a
if (r0 == 0) goto L60
java.util.concurrent.atomic.AtomicBoolean r0 = r6.b
r0.set(r3)
L60:
java.lang.Object r0 = r6.f
r7.accept(r0)
goto L6a
L66:
boolean r2 = r1.tryAdvance(r7)
L6a:
return r2
*/
throw new UnsupportedOperationException("Method not decompiled: j$.util.stream.s9.tryAdvance(java.util.function.Consumer):boolean");
}
@Override // j$.util.stream.t9, j$.util.Spliterator
public Spliterator trySplit() {
switch (this.g) {
case 1:
if (this.b.get()) {
return null;
}
return super.trySplit();
default:
return super.trySplit();
}
}
@Override // j$.util.stream.t9
public final Spliterator b(Spliterator spliterator) {
switch (this.g) {
case 0:
return new s9(spliterator, this, 0);
default:
return new s9(spliterator, this, 1);
}
}
}