* 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>
214 lines
5.9 KiB
Java
214 lines
5.9 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import j$.util.Map;
|
|
import java.io.Serializable;
|
|
import java.util.Collection;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import java.util.SortedMap;
|
|
import java.util.function.BiConsumer;
|
|
import java.util.function.BiFunction;
|
|
import java.util.function.Function;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class zzgtg<K, V> implements Map<K, V>, Serializable, j$.util.Map {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public transient zzgtn f8248c;
|
|
public transient zzgtn f;
|
|
public transient zzgsz g;
|
|
|
|
public static zzgtg a(Map map) {
|
|
int i;
|
|
if ((map instanceof zzgtg) && !(map instanceof SortedMap)) {
|
|
return (zzgtg) map;
|
|
}
|
|
Set<Map.Entry<K, V>> entrySet = map.entrySet();
|
|
if (entrySet != null) {
|
|
i = entrySet.size();
|
|
} else {
|
|
i = 4;
|
|
}
|
|
zzgtf zzgtfVar = new zzgtf(i);
|
|
zzgtfVar.b(entrySet);
|
|
return zzgtfVar.d(true);
|
|
}
|
|
|
|
public abstract zzgtn b();
|
|
|
|
public abstract zzgtn c();
|
|
|
|
@Override // java.util.Map
|
|
public final void clear() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.Map, j$.util.Map
|
|
public /* synthetic */ Object compute(Object obj, BiFunction biFunction) {
|
|
return Map.CC.$default$compute(this, obj, biFunction);
|
|
}
|
|
|
|
@Override // java.util.Map, j$.util.Map
|
|
public /* synthetic */ Object computeIfAbsent(Object obj, Function function) {
|
|
return Map.CC.$default$computeIfAbsent(this, obj, function);
|
|
}
|
|
|
|
@Override // java.util.Map, j$.util.Map
|
|
public /* synthetic */ Object computeIfPresent(Object obj, BiFunction biFunction) {
|
|
return Map.CC.$default$computeIfPresent(this, obj, biFunction);
|
|
}
|
|
|
|
@Override // java.util.Map
|
|
public final boolean containsKey(Object obj) {
|
|
if (get(obj) != null) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // java.util.Map
|
|
public final boolean containsValue(Object obj) {
|
|
zzgsz zzgszVar = this.g;
|
|
if (zzgszVar == null) {
|
|
zzgszVar = d();
|
|
this.g = zzgszVar;
|
|
}
|
|
return zzgszVar.contains(obj);
|
|
}
|
|
|
|
public abstract zzgsz d();
|
|
|
|
@Override // java.util.Map
|
|
public final Set entrySet() {
|
|
zzgtn zzgtnVar = this.f8248c;
|
|
if (zzgtnVar == null) {
|
|
zzgtn b = b();
|
|
this.f8248c = b;
|
|
return b;
|
|
}
|
|
return zzgtnVar;
|
|
}
|
|
|
|
@Override // java.util.Map
|
|
public final boolean equals(Object obj) {
|
|
return zzguk.a(this, obj);
|
|
}
|
|
|
|
@Override // java.util.Map, j$.util.Map
|
|
public /* synthetic */ void forEach(BiConsumer biConsumer) {
|
|
Map.CC.$default$forEach(this, biConsumer);
|
|
}
|
|
|
|
@Override // java.util.Map
|
|
public abstract Object get(Object obj);
|
|
|
|
@Override // java.util.Map, j$.util.Map
|
|
public final Object getOrDefault(Object obj, Object obj2) {
|
|
Object obj3 = get(obj);
|
|
if (obj3 != null) {
|
|
return obj3;
|
|
}
|
|
return obj2;
|
|
}
|
|
|
|
@Override // java.util.Map
|
|
public final int hashCode() {
|
|
zzgtn zzgtnVar = this.f8248c;
|
|
if (zzgtnVar == null) {
|
|
zzgtnVar = b();
|
|
this.f8248c = zzgtnVar;
|
|
}
|
|
return zzgvn.c(zzgtnVar);
|
|
}
|
|
|
|
@Override // java.util.Map
|
|
public final boolean isEmpty() {
|
|
return size() == 0;
|
|
}
|
|
|
|
@Override // java.util.Map
|
|
public final Set keySet() {
|
|
zzgtn zzgtnVar = this.f;
|
|
if (zzgtnVar == null) {
|
|
zzgtn c2 = c();
|
|
this.f = c2;
|
|
return c2;
|
|
}
|
|
return zzgtnVar;
|
|
}
|
|
|
|
@Override // java.util.Map, j$.util.Map
|
|
public /* synthetic */ Object merge(Object obj, Object obj2, BiFunction biFunction) {
|
|
return Map.CC.$default$merge(this, obj, obj2, biFunction);
|
|
}
|
|
|
|
@Override // java.util.Map
|
|
public final Object put(Object obj, Object obj2) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.Map
|
|
public final void putAll(java.util.Map map) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.Map, j$.util.Map
|
|
public /* synthetic */ Object putIfAbsent(Object obj, Object obj2) {
|
|
return Map.CC.$default$putIfAbsent(this, obj, obj2);
|
|
}
|
|
|
|
@Override // java.util.Map, j$.util.Map
|
|
public /* synthetic */ boolean remove(Object obj, Object obj2) {
|
|
return Map.CC.$default$remove(this, obj, obj2);
|
|
}
|
|
|
|
@Override // java.util.Map, j$.util.Map
|
|
public /* synthetic */ Object replace(Object obj, Object obj2) {
|
|
return Map.CC.$default$replace(this, obj, obj2);
|
|
}
|
|
|
|
@Override // java.util.Map, j$.util.Map
|
|
public /* synthetic */ void replaceAll(BiFunction biFunction) {
|
|
Map.CC.$default$replaceAll(this, biFunction);
|
|
}
|
|
|
|
public final String toString() {
|
|
int size = size();
|
|
zzgrz.b(size, "size");
|
|
StringBuilder sb = new StringBuilder((int) Math.min(size * 8, 1073741824L));
|
|
sb.append('{');
|
|
boolean z = true;
|
|
for (Map.Entry<K, V> entry : entrySet()) {
|
|
if (!z) {
|
|
sb.append(", ");
|
|
}
|
|
sb.append(entry.getKey());
|
|
sb.append('=');
|
|
sb.append(entry.getValue());
|
|
z = false;
|
|
}
|
|
sb.append('}');
|
|
return sb.toString();
|
|
}
|
|
|
|
@Override // java.util.Map
|
|
public final Collection values() {
|
|
zzgsz zzgszVar = this.g;
|
|
if (zzgszVar == null) {
|
|
zzgsz d = d();
|
|
this.g = d;
|
|
return d;
|
|
}
|
|
return zzgszVar;
|
|
}
|
|
|
|
@Override // java.util.Map
|
|
public final Object remove(Object obj) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.Map, j$.util.Map
|
|
public /* synthetic */ boolean replace(Object obj, Object obj2, Object obj3) {
|
|
return Map.CC.$default$replace(this, obj, obj2, obj3);
|
|
}
|
|
}
|