* 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>
153 lines
4.6 KiB
Java
153 lines
4.6 KiB
Java
package j$.util.stream;
|
|
|
|
import j$.lang.Iterable;
|
|
import j$.util.Objects;
|
|
import j$.util.Spliterator;
|
|
import j$.util.function.Consumer$CC;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Iterator;
|
|
import java.util.Spliterator;
|
|
import java.util.function.Consumer;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class y6 extends c implements Consumer, Iterable, Iterable {
|
|
public Object[] e = new Object[1 << 4];
|
|
public Object[][] f;
|
|
|
|
public final /* synthetic */ Consumer andThen(Consumer consumer) {
|
|
return Consumer$CC.$default$andThen(this, consumer);
|
|
}
|
|
|
|
@Override // java.lang.Iterable
|
|
public final /* synthetic */ Spliterator spliterator() {
|
|
return Spliterator.Wrapper.convert(spliterator());
|
|
}
|
|
|
|
public final void p(long j) {
|
|
long length;
|
|
int i = this.f21391c;
|
|
if (i == 0) {
|
|
length = this.e.length;
|
|
} else {
|
|
length = this.d[i] + this.f[i].length;
|
|
}
|
|
if (j > length) {
|
|
if (this.f == null) {
|
|
Object[][] objArr = new Object[8];
|
|
this.f = objArr;
|
|
this.d = new long[8];
|
|
objArr[0] = this.e;
|
|
}
|
|
int i2 = i + 1;
|
|
while (j > length) {
|
|
Object[][] objArr2 = this.f;
|
|
if (i2 >= objArr2.length) {
|
|
int length2 = objArr2.length * 2;
|
|
this.f = (Object[][]) Arrays.copyOf(objArr2, length2);
|
|
this.d = Arrays.copyOf(this.d, length2);
|
|
}
|
|
int i3 = this.f21390a;
|
|
if (i2 != 0 && i2 != 1) {
|
|
i3 = Math.min((i3 + i2) - 1, 30);
|
|
}
|
|
int i4 = 1 << i3;
|
|
this.f[i2] = new Object[i4];
|
|
long[] jArr = this.d;
|
|
jArr[i2] = jArr[i2 - 1] + r5[r7].length;
|
|
length += i4;
|
|
i2++;
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // j$.util.stream.c
|
|
public final void clear() {
|
|
Object[][] objArr = this.f;
|
|
if (objArr != null) {
|
|
this.e = objArr[0];
|
|
int i = 0;
|
|
while (true) {
|
|
Object[] objArr2 = this.e;
|
|
if (i >= objArr2.length) {
|
|
break;
|
|
}
|
|
objArr2[i] = null;
|
|
i++;
|
|
}
|
|
this.f = null;
|
|
this.d = null;
|
|
} else {
|
|
for (int i2 = 0; i2 < this.b; i2++) {
|
|
this.e[i2] = null;
|
|
}
|
|
}
|
|
this.b = 0;
|
|
this.f21391c = 0;
|
|
}
|
|
|
|
@Override // java.lang.Iterable
|
|
public final Iterator iterator() {
|
|
j$.util.Spliterator spliterator = spliterator();
|
|
Objects.requireNonNull(spliterator);
|
|
return new j$.util.z0(spliterator);
|
|
}
|
|
|
|
@Override // java.lang.Iterable, j$.lang.Iterable
|
|
public void forEach(Consumer consumer) {
|
|
for (int i = 0; i < this.f21391c; i++) {
|
|
for (Object obj : this.f[i]) {
|
|
consumer.accept(obj);
|
|
}
|
|
}
|
|
for (int i2 = 0; i2 < this.b; i2++) {
|
|
consumer.accept(this.e[i2]);
|
|
}
|
|
}
|
|
|
|
@Override // java.util.function.Consumer
|
|
public void accept(Object obj) {
|
|
long length;
|
|
int i = this.b;
|
|
Object[] objArr = this.e;
|
|
if (i == objArr.length) {
|
|
if (this.f == null) {
|
|
Object[][] objArr2 = new Object[8];
|
|
this.f = objArr2;
|
|
this.d = new long[8];
|
|
objArr2[0] = objArr;
|
|
}
|
|
int i2 = this.f21391c;
|
|
int i3 = i2 + 1;
|
|
Object[][] objArr3 = this.f;
|
|
if (i3 >= objArr3.length || objArr3[i3] == null) {
|
|
if (i2 == 0) {
|
|
length = objArr.length;
|
|
} else {
|
|
length = objArr3[i2].length + this.d[i2];
|
|
}
|
|
p(length + 1);
|
|
}
|
|
this.b = 0;
|
|
int i4 = this.f21391c + 1;
|
|
this.f21391c = i4;
|
|
this.e = this.f[i4];
|
|
}
|
|
Object[] objArr4 = this.e;
|
|
int i5 = this.b;
|
|
this.b = i5 + 1;
|
|
objArr4[i5] = obj;
|
|
}
|
|
|
|
public final String toString() {
|
|
ArrayList arrayList = new ArrayList();
|
|
Objects.requireNonNull(arrayList);
|
|
forEach(new j$.util.p(8, arrayList));
|
|
return "SpinedBuffer:" + arrayList.toString();
|
|
}
|
|
|
|
@Override // java.lang.Iterable, j$.lang.Iterable, j$.util.Collection
|
|
public j$.util.Spliterator spliterator() {
|
|
return new p6(this, 0, this.f21391c, 0, this.b);
|
|
}
|
|
}
|