* 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>
253 lines
6.9 KiB
Java
253 lines
6.9 KiB
Java
package com.google.android.gms.internal.cast;
|
|
|
|
import j$.util.DesugarCollections;
|
|
import java.util.AbstractMap;
|
|
import java.util.Collections;
|
|
import java.util.Iterator;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import java.util.SortedMap;
|
|
import java.util.TreeMap;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public class zzzz extends AbstractMap {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public Object[] f9907c;
|
|
public int f;
|
|
public Map g;
|
|
public boolean h;
|
|
public volatile zzzy i;
|
|
public Map j;
|
|
|
|
public /* synthetic */ zzzz() {
|
|
Map map = Collections.EMPTY_MAP;
|
|
this.g = map;
|
|
this.j = map;
|
|
}
|
|
|
|
public void a() {
|
|
Map unmodifiableMap;
|
|
Map unmodifiableMap2;
|
|
if (!this.h) {
|
|
if (this.g.isEmpty()) {
|
|
unmodifiableMap = Collections.EMPTY_MAP;
|
|
} else {
|
|
unmodifiableMap = DesugarCollections.unmodifiableMap(this.g);
|
|
}
|
|
this.g = unmodifiableMap;
|
|
if (this.j.isEmpty()) {
|
|
unmodifiableMap2 = Collections.EMPTY_MAP;
|
|
} else {
|
|
unmodifiableMap2 = DesugarCollections.unmodifiableMap(this.j);
|
|
}
|
|
this.j = unmodifiableMap2;
|
|
this.h = true;
|
|
}
|
|
}
|
|
|
|
public final Map.Entry b(int i) {
|
|
if (i < this.f) {
|
|
return (zzzw) this.f9907c[i];
|
|
}
|
|
throw new ArrayIndexOutOfBoundsException(i);
|
|
}
|
|
|
|
public final Set c() {
|
|
if (this.g.isEmpty()) {
|
|
return Collections.EMPTY_SET;
|
|
}
|
|
return this.g.entrySet();
|
|
}
|
|
|
|
@Override // java.util.AbstractMap, java.util.Map
|
|
public final void clear() {
|
|
g();
|
|
if (this.f != 0) {
|
|
this.f9907c = null;
|
|
this.f = 0;
|
|
}
|
|
if (!this.g.isEmpty()) {
|
|
this.g.clear();
|
|
}
|
|
}
|
|
|
|
@Override // java.util.AbstractMap, java.util.Map
|
|
public final boolean containsKey(Object obj) {
|
|
Comparable comparable = (Comparable) obj;
|
|
if (f(comparable) < 0 && !this.g.containsKey(comparable)) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // java.util.AbstractMap, java.util.Map
|
|
/* renamed from: d, reason: merged with bridge method [inline-methods] */
|
|
public final Object put(Comparable comparable, Object obj) {
|
|
g();
|
|
int f = f(comparable);
|
|
if (f >= 0) {
|
|
return ((zzzw) this.f9907c[f]).setValue(obj);
|
|
}
|
|
g();
|
|
if (this.f9907c == null) {
|
|
this.f9907c = new Object[16];
|
|
}
|
|
int i = -(f + 1);
|
|
if (i >= 16) {
|
|
return h().put(comparable, obj);
|
|
}
|
|
if (this.f == 16) {
|
|
zzzw zzzwVar = (zzzw) this.f9907c[15];
|
|
this.f = 15;
|
|
h().put(zzzwVar.f9904c, zzzwVar.f);
|
|
}
|
|
Object[] objArr = this.f9907c;
|
|
int length = objArr.length;
|
|
System.arraycopy(objArr, i, objArr, i + 1, 15 - i);
|
|
this.f9907c[i] = new zzzw(this, comparable, obj);
|
|
this.f++;
|
|
return null;
|
|
}
|
|
|
|
public final Object e(int i) {
|
|
g();
|
|
Object[] objArr = this.f9907c;
|
|
Object obj = ((zzzw) objArr[i]).f;
|
|
System.arraycopy(objArr, i + 1, objArr, i, (this.f - i) - 1);
|
|
this.f--;
|
|
if (!this.g.isEmpty()) {
|
|
Iterator it = h().entrySet().iterator();
|
|
Object[] objArr2 = this.f9907c;
|
|
int i2 = this.f;
|
|
Map.Entry entry = (Map.Entry) it.next();
|
|
objArr2[i2] = new zzzw(this, (Comparable) entry.getKey(), entry.getValue());
|
|
this.f++;
|
|
it.remove();
|
|
}
|
|
return obj;
|
|
}
|
|
|
|
@Override // java.util.AbstractMap, java.util.Map
|
|
public final Set entrySet() {
|
|
if (this.i == null) {
|
|
this.i = new zzzy(this);
|
|
}
|
|
return this.i;
|
|
}
|
|
|
|
@Override // java.util.AbstractMap, java.util.Map
|
|
public final boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof zzzz)) {
|
|
return super.equals(obj);
|
|
}
|
|
zzzz zzzzVar = (zzzz) obj;
|
|
int size = size();
|
|
if (size != zzzzVar.size()) {
|
|
return false;
|
|
}
|
|
int i = this.f;
|
|
if (i == zzzzVar.f) {
|
|
for (int i2 = 0; i2 < i; i2++) {
|
|
if (!b(i2).equals(zzzzVar.b(i2))) {
|
|
return false;
|
|
}
|
|
}
|
|
if (i == size) {
|
|
return true;
|
|
}
|
|
return this.g.equals(zzzzVar.g);
|
|
}
|
|
return entrySet().equals(zzzzVar.entrySet());
|
|
}
|
|
|
|
public final int f(Comparable comparable) {
|
|
int i = this.f;
|
|
int i2 = i - 1;
|
|
int i3 = 0;
|
|
if (i2 >= 0) {
|
|
int compareTo = comparable.compareTo(((zzzw) this.f9907c[i2]).f9904c);
|
|
if (compareTo > 0) {
|
|
return -(i + 1);
|
|
}
|
|
if (compareTo == 0) {
|
|
return i2;
|
|
}
|
|
}
|
|
while (i3 <= i2) {
|
|
int i4 = (i3 + i2) / 2;
|
|
int compareTo2 = comparable.compareTo(((zzzw) this.f9907c[i4]).f9904c);
|
|
if (compareTo2 < 0) {
|
|
i2 = i4 - 1;
|
|
} else if (compareTo2 > 0) {
|
|
i3 = i4 + 1;
|
|
} else {
|
|
return i4;
|
|
}
|
|
}
|
|
return -(i3 + 1);
|
|
}
|
|
|
|
public final void g() {
|
|
if (!this.h) {
|
|
} else {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
}
|
|
|
|
@Override // java.util.AbstractMap, java.util.Map
|
|
public final Object get(Object obj) {
|
|
Comparable comparable = (Comparable) obj;
|
|
int f = f(comparable);
|
|
if (f >= 0) {
|
|
return ((zzzw) this.f9907c[f]).f;
|
|
}
|
|
return this.g.get(comparable);
|
|
}
|
|
|
|
public final SortedMap h() {
|
|
g();
|
|
if (this.g.isEmpty() && !(this.g instanceof TreeMap)) {
|
|
TreeMap treeMap = new TreeMap();
|
|
this.g = treeMap;
|
|
this.j = treeMap.descendingMap();
|
|
}
|
|
return (SortedMap) this.g;
|
|
}
|
|
|
|
@Override // java.util.AbstractMap, java.util.Map
|
|
public final int hashCode() {
|
|
int i = this.f;
|
|
int i2 = 0;
|
|
for (int i3 = 0; i3 < i; i3++) {
|
|
i2 += this.f9907c[i3].hashCode();
|
|
}
|
|
if (this.g.size() > 0) {
|
|
return this.g.hashCode() + i2;
|
|
}
|
|
return i2;
|
|
}
|
|
|
|
@Override // java.util.AbstractMap, java.util.Map
|
|
public final Object remove(Object obj) {
|
|
g();
|
|
Comparable comparable = (Comparable) obj;
|
|
int f = f(comparable);
|
|
if (f >= 0) {
|
|
return e(f);
|
|
}
|
|
if (this.g.isEmpty()) {
|
|
return null;
|
|
}
|
|
return this.g.remove(comparable);
|
|
}
|
|
|
|
@Override // java.util.AbstractMap, java.util.Map
|
|
public final int size() {
|
|
return this.g.size() + this.f;
|
|
}
|
|
}
|