soul-browser/sources/java/com/google/common/collect/TreeRangeMap.java
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

257 lines
9.8 KiB
Java

package com.google.common.collect;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.collect.Maps;
import java.lang.Comparable;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
@GwtIncompatible
/* loaded from: classes3.dex */
public final class TreeRangeMap<K extends Comparable, V> implements RangeMap<K, V> {
/* renamed from: com.google.common.collect.TreeRangeMap$1, reason: invalid class name */
/* loaded from: classes3.dex */
public class AnonymousClass1 implements RangeMap<Comparable<?>, Object> {
@Override // com.google.common.collect.RangeMap
public final Map a() {
return Collections.EMPTY_MAP;
}
}
/* loaded from: classes3.dex */
public final class AsMapOfRanges extends Maps.IteratorBasedAbstractMap<Range<K>, V> {
@Override // com.google.common.collect.Maps.IteratorBasedAbstractMap
public final Iterator a() {
throw null;
}
@Override // java.util.AbstractMap, java.util.Map
public final boolean containsKey(Object obj) {
get(obj);
return false;
}
@Override // java.util.AbstractMap, java.util.Map
public final Object get(Object obj) {
if (!(obj instanceof Range)) {
return null;
}
throw null;
}
@Override // java.util.AbstractMap, java.util.Map
public final int size() {
throw null;
}
}
/* loaded from: classes3.dex */
public static final class RangeMapEntry<K extends Comparable, V> extends AbstractMap.SimpleImmutableEntry<Range<K>, V> {
}
/* loaded from: classes3.dex */
public final class SubRangeMap implements RangeMap<K, V> {
/* renamed from: com.google.common.collect.TreeRangeMap$SubRangeMap$1, reason: invalid class name */
/* loaded from: classes3.dex */
class AnonymousClass1 extends TreeRangeMap<Comparable, Object>.SubRangeMap.SubRangeMapAsMap {
/* renamed from: com.google.common.collect.TreeRangeMap$SubRangeMap$1$1, reason: invalid class name and collision with other inner class name */
/* loaded from: classes3.dex */
class C00271 extends AbstractIterator<Map.Entry<Range<Comparable>, Object>> {
@Override // com.google.common.collect.AbstractIterator
public final Object a() {
throw null;
}
}
@Override // com.google.common.collect.TreeRangeMap.SubRangeMap.SubRangeMapAsMap
public final Iterator b() {
throw null;
}
}
/* loaded from: classes3.dex */
public class SubRangeMapAsMap extends AbstractMap<Range<K>, V> {
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.google.common.collect.TreeRangeMap$SubRangeMap$SubRangeMapAsMap$2, reason: invalid class name */
/* loaded from: classes3.dex */
public class AnonymousClass2 extends Maps.EntrySet<Range<Comparable>, Object> {
public AnonymousClass2() {
}
@Override // com.google.common.collect.Maps.EntrySet
public final Map a() {
return SubRangeMapAsMap.this;
}
@Override // com.google.common.collect.Maps.EntrySet, java.util.AbstractCollection, java.util.Collection, java.util.Set
public final boolean isEmpty() {
SubRangeMapAsMap.this.b();
throw null;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
public final Iterator iterator() {
SubRangeMapAsMap.this.b();
throw null;
}
@Override // com.google.common.collect.Maps.EntrySet, com.google.common.collect.Sets.ImprovedAbstractSet, java.util.AbstractCollection, java.util.Collection, java.util.Set
public final boolean retainAll(Collection collection) {
SubRangeMapAsMap.a(SubRangeMapAsMap.this, Predicates.g(Predicates.e(collection)));
throw null;
}
@Override // com.google.common.collect.Maps.EntrySet, java.util.AbstractCollection, java.util.Collection, java.util.Set
public final int size() {
SubRangeMapAsMap.this.b();
throw null;
}
}
/* renamed from: com.google.common.collect.TreeRangeMap$SubRangeMap$SubRangeMapAsMap$3, reason: invalid class name */
/* loaded from: classes3.dex */
class AnonymousClass3 extends AbstractIterator<Map.Entry<Range<Comparable>, Object>> {
@Override // com.google.common.collect.AbstractIterator
public final Object a() {
throw null;
}
}
public SubRangeMapAsMap() {
}
public static boolean a(SubRangeMapAsMap subRangeMapAsMap, Predicate predicate) {
new ArrayList();
new AnonymousClass2();
subRangeMapAsMap.b();
throw null;
}
public Iterator b() {
SubRangeMap.this.getClass();
throw null;
}
@Override // java.util.AbstractMap, java.util.Map
public final void clear() {
SubRangeMap.this.getClass();
throw null;
}
@Override // java.util.AbstractMap, java.util.Map
public final boolean containsKey(Object obj) {
get(obj);
return false;
}
@Override // java.util.AbstractMap, java.util.Map
public final Set entrySet() {
return new AnonymousClass2();
}
@Override // java.util.AbstractMap, java.util.Map
public final Object get(Object obj) {
try {
if (!(obj instanceof Range)) {
return null;
}
SubRangeMap.this.getClass();
throw null;
} catch (ClassCastException unused) {
return null;
}
}
@Override // java.util.AbstractMap, java.util.Map
public final Set keySet() {
return new Maps.KeySet<Range<Comparable>, Object>(this) { // from class: com.google.common.collect.TreeRangeMap.SubRangeMap.SubRangeMapAsMap.1
@Override // com.google.common.collect.Maps.KeySet, java.util.AbstractCollection, java.util.Collection, java.util.Set
public final boolean remove(Object obj) {
SubRangeMapAsMap.this.get(obj);
return false;
}
@Override // com.google.common.collect.Sets.ImprovedAbstractSet, java.util.AbstractCollection, java.util.Collection, java.util.Set
public final boolean retainAll(Collection collection) {
SubRangeMapAsMap.a(SubRangeMapAsMap.this, Predicates.c(Predicates.g(Predicates.e(collection)), Maps.EntryFunction.f12351c));
throw null;
}
};
}
@Override // java.util.AbstractMap, java.util.Map
public final Object remove(Object obj) {
get(obj);
return null;
}
@Override // java.util.AbstractMap, java.util.Map
public final Collection values() {
return new Maps.Values<Range<Comparable>, Object>(this) { // from class: com.google.common.collect.TreeRangeMap.SubRangeMap.SubRangeMapAsMap.4
@Override // com.google.common.collect.Maps.Values, java.util.AbstractCollection, java.util.Collection
public final boolean removeAll(Collection collection) {
SubRangeMapAsMap.a(SubRangeMapAsMap.this, Predicates.c(Predicates.e(collection), Maps.EntryFunction.f));
throw null;
}
@Override // com.google.common.collect.Maps.Values, java.util.AbstractCollection, java.util.Collection
public final boolean retainAll(Collection collection) {
SubRangeMapAsMap.a(SubRangeMapAsMap.this, Predicates.c(Predicates.g(Predicates.e(collection)), Maps.EntryFunction.f));
throw null;
}
};
}
}
@Override // com.google.common.collect.RangeMap
public final Map a() {
return new SubRangeMapAsMap();
}
public final boolean equals(Object obj) {
if (obj instanceof RangeMap) {
return new SubRangeMapAsMap().equals(((RangeMap) obj).a());
}
return false;
}
public final int hashCode() {
return new SubRangeMapAsMap().hashCode();
}
public final String toString() {
return new SubRangeMapAsMap().toString();
}
}
@Override // com.google.common.collect.RangeMap
public final Map a() {
throw null;
}
public final boolean equals(Object obj) {
if (!(obj instanceof RangeMap)) {
return false;
}
throw null;
}
public final int hashCode() {
throw null;
}
public final String toString() {
throw null;
}
}