* 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>
285 lines
9.1 KiB
Java
285 lines
9.1 KiB
Java
package com.google.android.gms.internal.fido;
|
|
|
|
import java.util.Collection;
|
|
import java.util.Collections;
|
|
import java.util.Comparator;
|
|
import java.util.Iterator;
|
|
import java.util.NoSuchElementException;
|
|
import java.util.Set;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes3.dex */
|
|
public final class zzcv extends zzck {
|
|
public static final zzcv k;
|
|
public final transient zzcc j;
|
|
|
|
static {
|
|
zzdd zzddVar = zzcc.f;
|
|
k = new zzcv(zzct.i, zzcq.f10288c);
|
|
}
|
|
|
|
public zzcv(zzcc zzccVar, Comparator comparator) {
|
|
super(comparator);
|
|
this.j = zzccVar;
|
|
}
|
|
|
|
public final int B(Object obj, boolean z) {
|
|
obj.getClass();
|
|
int binarySearch = Collections.binarySearch(this.j, obj, this.h);
|
|
if (binarySearch >= 0) {
|
|
if (z) {
|
|
return binarySearch + 1;
|
|
}
|
|
return binarySearch;
|
|
}
|
|
return ~binarySearch;
|
|
}
|
|
|
|
public final int C(Object obj, boolean z) {
|
|
obj.getClass();
|
|
int binarySearch = Collections.binarySearch(this.j, obj, this.h);
|
|
if (binarySearch >= 0) {
|
|
if (z) {
|
|
return binarySearch;
|
|
}
|
|
return binarySearch + 1;
|
|
}
|
|
return ~binarySearch;
|
|
}
|
|
|
|
public final zzcv D(int i, int i2) {
|
|
zzcc zzccVar = this.j;
|
|
if (i == 0) {
|
|
if (i2 != zzccVar.size()) {
|
|
i = 0;
|
|
} else {
|
|
return this;
|
|
}
|
|
}
|
|
Comparator comparator = this.h;
|
|
if (i < i2) {
|
|
return new zzcv(zzccVar.subList(i, i2), comparator);
|
|
}
|
|
return zzck.x(comparator);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzby
|
|
public final int a(Object[] objArr) {
|
|
return this.j.a(objArr);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzby
|
|
public final int c() {
|
|
return this.j.c();
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzck, java.util.NavigableSet
|
|
public final Object ceiling(Object obj) {
|
|
int C = C(obj, true);
|
|
zzcc zzccVar = this.j;
|
|
if (C == zzccVar.size()) {
|
|
return null;
|
|
}
|
|
return zzccVar.get(C);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzby, java.util.AbstractCollection, java.util.Collection
|
|
public final boolean contains(Object obj) {
|
|
if (obj != null) {
|
|
try {
|
|
if (Collections.binarySearch(this.j, obj, this.h) >= 0) {
|
|
return true;
|
|
}
|
|
} catch (ClassCastException unused) {
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public final boolean containsAll(Collection collection) {
|
|
if (collection instanceof zzcp) {
|
|
collection = ((zzcp) collection).zza();
|
|
}
|
|
Comparator comparator = this.h;
|
|
if (zzdb.a(comparator, collection) && collection.size() > 1) {
|
|
zzdd listIterator = this.j.listIterator(0);
|
|
Iterator it = collection.iterator();
|
|
zzbu zzbuVar = (zzbu) listIterator;
|
|
if (zzbuVar.hasNext()) {
|
|
Object next = it.next();
|
|
Object next2 = zzbuVar.next();
|
|
while (true) {
|
|
try {
|
|
int compare = comparator.compare(next2, next);
|
|
if (compare < 0) {
|
|
if (!zzbuVar.hasNext()) {
|
|
break;
|
|
}
|
|
next2 = zzbuVar.next();
|
|
} else {
|
|
if (compare != 0) {
|
|
break;
|
|
}
|
|
if (!it.hasNext()) {
|
|
return true;
|
|
}
|
|
next = it.next();
|
|
}
|
|
} catch (ClassCastException | NullPointerException unused) {
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
return super.containsAll(collection);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzcf, java.util.Collection, java.util.Set
|
|
public final boolean equals(Object obj) {
|
|
Object next;
|
|
Object next2;
|
|
if (obj != this) {
|
|
if (obj instanceof Set) {
|
|
Set set = (Set) obj;
|
|
zzcc zzccVar = this.j;
|
|
if (zzccVar.size() == set.size()) {
|
|
if (!isEmpty()) {
|
|
Comparator comparator = this.h;
|
|
if (zzdb.a(comparator, set)) {
|
|
Iterator it = set.iterator();
|
|
try {
|
|
zzdd listIterator = zzccVar.listIterator(0);
|
|
do {
|
|
zzbu zzbuVar = (zzbu) listIterator;
|
|
if (zzbuVar.hasNext()) {
|
|
next = zzbuVar.next();
|
|
next2 = it.next();
|
|
if (next2 == null) {
|
|
break;
|
|
}
|
|
} else {
|
|
return true;
|
|
}
|
|
} while (comparator.compare(next, next2) == 0);
|
|
} catch (ClassCastException | NoSuchElementException unused) {
|
|
}
|
|
} else {
|
|
return containsAll(set);
|
|
}
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzck, java.util.SortedSet
|
|
public final Object first() {
|
|
if (!isEmpty()) {
|
|
return this.j.get(0);
|
|
}
|
|
throw new NoSuchElementException();
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzck, java.util.NavigableSet
|
|
public final Object floor(Object obj) {
|
|
int B = B(obj, true) - 1;
|
|
if (B == -1) {
|
|
return null;
|
|
}
|
|
return this.j.get(B);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzby
|
|
public final int g() {
|
|
return this.j.g();
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzck, java.util.NavigableSet
|
|
public final Object higher(Object obj) {
|
|
int C = C(obj, false);
|
|
zzcc zzccVar = this.j;
|
|
if (C == zzccVar.size()) {
|
|
return null;
|
|
}
|
|
return zzccVar.get(C);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzby
|
|
/* renamed from: i */
|
|
public final zzdc iterator() {
|
|
return this.j.listIterator(0);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzck, com.google.android.gms.internal.fido.zzcf, com.google.android.gms.internal.fido.zzby, java.util.AbstractCollection, java.util.Collection, java.lang.Iterable
|
|
public final /* synthetic */ Iterator iterator() {
|
|
return this.j.listIterator(0);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzby
|
|
public final Object[] k() {
|
|
return this.j.k();
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzck, java.util.SortedSet
|
|
public final Object last() {
|
|
if (!isEmpty()) {
|
|
return this.j.get(r0.size() - 1);
|
|
}
|
|
throw new NoSuchElementException();
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzck, java.util.NavigableSet
|
|
public final Object lower(Object obj) {
|
|
int B = B(obj, false) - 1;
|
|
if (B == -1) {
|
|
return null;
|
|
}
|
|
return this.j.get(B);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzcf
|
|
public final zzcc r() {
|
|
return this.j;
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public final int size() {
|
|
return this.j.size();
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzck
|
|
public final zzck t() {
|
|
Comparator reverseOrder = Collections.reverseOrder(this.h);
|
|
if (isEmpty()) {
|
|
return zzck.x(reverseOrder);
|
|
}
|
|
return new zzcv(this.j.m(), reverseOrder);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzck
|
|
public final zzck u(Object obj, boolean z) {
|
|
return D(0, B(obj, z));
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzck
|
|
public final zzck v(Object obj, boolean z, Object obj2, boolean z2) {
|
|
return w(obj, z).u(obj2, z2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzck
|
|
public final zzck w(Object obj, boolean z) {
|
|
return D(C(obj, z), this.j.size());
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.fido.zzck, java.util.NavigableSet
|
|
/* renamed from: y */
|
|
public final zzdc descendingIterator() {
|
|
return this.j.m().listIterator(0);
|
|
}
|
|
}
|