* 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>
271 lines
7.5 KiB
Java
271 lines
7.5 KiB
Java
package org.jsoup.select;
|
|
|
|
import j$.lang.Iterable;
|
|
import j$.util.Collection;
|
|
import j$.util.List;
|
|
import j$.util.Spliterator;
|
|
import j$.util.stream.Stream;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Comparator;
|
|
import java.util.Iterator;
|
|
import java.util.Spliterator;
|
|
import java.util.function.Consumer;
|
|
import java.util.function.IntFunction;
|
|
import java.util.function.Predicate;
|
|
import java.util.function.UnaryOperator;
|
|
import java.util.stream.Stream;
|
|
import org.jsoup.helper.Validate;
|
|
import org.jsoup.internal.StringUtil;
|
|
import org.jsoup.nodes.Node;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class Nodes<T extends Node> extends ArrayList<T> implements List {
|
|
public Nodes() {
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* renamed from: after */
|
|
public Nodes<T> after2(String str) {
|
|
int size = size();
|
|
int i = 0;
|
|
while (i < size) {
|
|
T t = get(i);
|
|
i++;
|
|
((Node) t).after(str);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public ArrayList<T> asList() {
|
|
return new ArrayList<>(this);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* renamed from: before */
|
|
public Nodes<T> before2(String str) {
|
|
int size = size();
|
|
int i = 0;
|
|
while (i < size) {
|
|
T t = get(i);
|
|
i++;
|
|
((Node) t).before(str);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override // java.util.ArrayList, java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.util.List
|
|
public void clear() {
|
|
remove2();
|
|
super.clear();
|
|
}
|
|
|
|
public T deselect(int i) {
|
|
return (T) super.remove(i);
|
|
}
|
|
|
|
public void deselectAll() {
|
|
super.clear();
|
|
}
|
|
|
|
public T first() {
|
|
if (isEmpty()) {
|
|
return null;
|
|
}
|
|
return (T) get(0);
|
|
}
|
|
|
|
@Override // java.util.ArrayList, java.lang.Iterable, j$.util.Collection, j$.lang.Iterable
|
|
public /* synthetic */ void forEach(Consumer consumer) {
|
|
Iterable.CC.$default$forEach(this, consumer);
|
|
}
|
|
|
|
public T last() {
|
|
if (isEmpty()) {
|
|
return null;
|
|
}
|
|
return (T) get(size() - 1);
|
|
}
|
|
|
|
public String outerHtml() {
|
|
return (String) Collection.EL.stream(this).map(new e(3)).collect(StringUtil.joining("\n"));
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public /* synthetic */ Stream parallelStream() {
|
|
return Stream.Wrapper.convert(parallelStream());
|
|
}
|
|
|
|
@Override // java.util.ArrayList, java.util.AbstractCollection, java.util.Collection, java.util.List
|
|
public boolean removeAll(java.util.Collection<?> collection) {
|
|
Iterator<?> it = collection.iterator();
|
|
boolean z = false;
|
|
while (it.hasNext()) {
|
|
z |= remove(it.next());
|
|
}
|
|
return z;
|
|
}
|
|
|
|
@Override // java.util.ArrayList, java.util.Collection, j$.util.Collection
|
|
public boolean removeIf(Predicate<? super T> predicate) {
|
|
Iterator<T> it = iterator();
|
|
boolean z = false;
|
|
while (it.hasNext()) {
|
|
if (predicate.test((Node) it.next())) {
|
|
it.remove();
|
|
z = true;
|
|
}
|
|
}
|
|
return z;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // java.util.ArrayList, java.util.List, j$.util.List
|
|
public void replaceAll(UnaryOperator<T> unaryOperator) {
|
|
for (int i = 0; i < size(); i++) {
|
|
set(i, (int) unaryOperator.apply((Node) get(i)));
|
|
}
|
|
}
|
|
|
|
@Override // java.util.ArrayList, java.util.AbstractCollection, java.util.Collection, java.util.List
|
|
public boolean retainAll(java.util.Collection<?> collection) {
|
|
Iterator<T> it = iterator();
|
|
boolean z = false;
|
|
while (it.hasNext()) {
|
|
if (!collection.contains((Node) it.next())) {
|
|
it.remove();
|
|
z = true;
|
|
}
|
|
}
|
|
return z;
|
|
}
|
|
|
|
@Override // java.util.ArrayList, java.util.List, j$.util.List
|
|
public /* synthetic */ void sort(Comparator comparator) {
|
|
List.CC.$default$sort(this, comparator);
|
|
}
|
|
|
|
@Override // java.util.ArrayList, java.util.Collection, java.lang.Iterable, java.util.List
|
|
public /* synthetic */ Spliterator spliterator() {
|
|
return Spliterator.Wrapper.convert(spliterator());
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public /* synthetic */ java.util.stream.Stream stream() {
|
|
return Stream.Wrapper.convert(stream());
|
|
}
|
|
|
|
@Override // java.util.Collection, j$.util.Collection
|
|
public /* synthetic */ Object[] toArray(IntFunction intFunction) {
|
|
Object[] array;
|
|
array = toArray((Object[]) intFunction.apply(0));
|
|
return array;
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection
|
|
public String toString() {
|
|
return outerHtml();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* renamed from: wrap */
|
|
public Nodes<T> wrap2(String str) {
|
|
Validate.notEmpty(str);
|
|
int size = size();
|
|
int i = 0;
|
|
while (i < size) {
|
|
T t = get(i);
|
|
i++;
|
|
((Node) t).wrap(str);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public Nodes(int i) {
|
|
super(i);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // java.util.ArrayList
|
|
public Nodes<T> clone() {
|
|
Nodes<T> nodes = new Nodes<>(size());
|
|
int size = size();
|
|
int i = 0;
|
|
while (i < size) {
|
|
T t = get(i);
|
|
i++;
|
|
nodes.add(((Node) t).mo1499clone());
|
|
}
|
|
return nodes;
|
|
}
|
|
|
|
public boolean deselect(Object obj) {
|
|
return super.remove(obj);
|
|
}
|
|
|
|
@Override // java.util.Collection, j$.util.Collection
|
|
public /* synthetic */ j$.util.stream.Stream parallelStream() {
|
|
return Collection.CC.$default$parallelStream(this);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* renamed from: remove */
|
|
public Nodes<T> remove2() {
|
|
int size = size();
|
|
int i = 0;
|
|
while (i < size) {
|
|
T t = get(i);
|
|
i++;
|
|
((Node) t).remove();
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override // java.util.ArrayList, java.util.AbstractList, java.util.List
|
|
public T set(int i, T t) {
|
|
Validate.notNull(t);
|
|
T t2 = (T) super.set(i, (int) t);
|
|
t2.replaceWith(t);
|
|
return t2;
|
|
}
|
|
|
|
@Override // java.util.ArrayList, java.util.Collection, java.lang.Iterable, java.util.List, j$.util.List, j$.util.Collection, j$.lang.Iterable
|
|
public /* synthetic */ j$.util.Spliterator spliterator() {
|
|
return List.CC.$default$spliterator(this);
|
|
}
|
|
|
|
@Override // java.util.Collection, j$.util.Collection
|
|
public /* synthetic */ j$.util.stream.Stream stream() {
|
|
return Collection.CC.$default$stream(this);
|
|
}
|
|
|
|
public Nodes(java.util.Collection<T> collection) {
|
|
super(collection);
|
|
}
|
|
|
|
public Nodes(java.util.List<T> list) {
|
|
super(list);
|
|
}
|
|
|
|
@Override // java.util.ArrayList, java.util.AbstractList, java.util.List
|
|
public T remove(int i) {
|
|
T t = (T) super.remove(i);
|
|
t.remove();
|
|
return t;
|
|
}
|
|
|
|
@SafeVarargs
|
|
public Nodes(T... tArr) {
|
|
super(Arrays.asList(tArr));
|
|
}
|
|
|
|
@Override // java.util.ArrayList, java.util.AbstractCollection, java.util.Collection, java.util.List
|
|
public boolean remove(Object obj) {
|
|
int indexOf = super.indexOf(obj);
|
|
if (indexOf == -1) {
|
|
return false;
|
|
}
|
|
remove(indexOf);
|
|
return true;
|
|
}
|
|
}
|