* 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>
162 lines
10 KiB
Java
162 lines
10 KiB
Java
package kotlin.collections;
|
|
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Collection;
|
|
import java.util.Collections;
|
|
import java.util.Enumeration;
|
|
import java.util.List;
|
|
import java.util.Random;
|
|
import kotlin.Metadata;
|
|
import kotlin.PublishedApi;
|
|
import kotlin.SinceKotlin;
|
|
import kotlin.Unit;
|
|
import kotlin.collections.builders.ListBuilder;
|
|
import kotlin.internal.InlineOnly;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.CollectionToArray;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Metadata(d1 = {"\u0000\\\n\u0000\n\u0002\u0010 \n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0011\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0010!\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u001e\n\u0002\b\b\n\u0002\u0010\u000b\n\u0002\b\u0006\u001a\u001f\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u0002H\u0002¢\u0006\u0002\u0010\u0004\u001a0\u0010\u0005\u001a\u0012\u0012\u0004\u0012\u0002H\u00020\u0006j\b\u0012\u0004\u0012\u0002H\u0002`\u0007\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\bH\u0081\b¢\u0006\u0002\u0010\t\u001a7\u0010\n\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\b\u0000\u0010\u000b2\u001d\u0010\f\u001a\u0019\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u000b0\u000e\u0012\u0004\u0012\u00020\u000f0\r¢\u0006\u0002\b\u0010H\u0081\bø\u0001\u0000\u001a?\u0010\n\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\b\u0000\u0010\u000b2\u0006\u0010\u0011\u001a\u00020\u00122\u001d\u0010\f\u001a\u0019\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u000b0\u000e\u0012\u0004\u0012\u00020\u000f0\r¢\u0006\u0002\b\u0010H\u0081\bø\u0001\u0000\u001a\u0014\u0010\u0013\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u000e\"\u0004\b\u0000\u0010\u000bH\u0001\u001a\u001c\u0010\u0013\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u000e\"\u0004\b\u0000\u0010\u000b2\u0006\u0010\u0011\u001a\u00020\u0012H\u0001\u001a\"\u0010\u0014\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u0001\"\u0004\b\u0000\u0010\u000b2\f\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u000b0\u000eH\u0001\u001a\u001f\u0010\u0016\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0017H\u0087\b\u001a\u001e\u0010\u0018\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0019H\u0007\u001a&\u0010\u0018\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00192\u0006\u0010\u001a\u001a\u00020\u001bH\u0007\u001a\"\u0010\u001c\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u001d0\b2\n\u0010\u001e\u001a\u0006\u0012\u0002\b\u00030\u001fH\u0081\b¢\u0006\u0002\u0010 \u001a4\u0010\u001c\u001a\b\u0012\u0004\u0012\u0002H\u00020\b\"\u0004\b\u0000\u0010\u00022\n\u0010\u001e\u001a\u0006\u0012\u0002\b\u00030\u001f2\f\u0010!\u001a\b\u0012\u0004\u0012\u0002H\u00020\bH\u0081\b¢\u0006\u0002\u0010\"\u001a/\u0010#\u001a\b\u0012\u0004\u0012\u0002H\u00020\b\"\u0004\b\u0000\u0010\u00022\u0006\u0010$\u001a\u00020\u00122\f\u0010!\u001a\b\u0012\u0004\u0012\u0002H\u00020\bH\u0000¢\u0006\u0002\u0010%\u001a1\u0010&\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u00010\u001d0\b\"\u0004\b\u0000\u0010\u0002*\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\b2\u0006\u0010'\u001a\u00020(H\u0000¢\u0006\u0002\u0010)\u001a\u0011\u0010*\u001a\u00020\u00122\u0006\u0010+\u001a\u00020\u0012H\u0081\b\u001a\u0011\u0010,\u001a\u00020\u00122\u0006\u0010-\u001a\u00020\u0012H\u0081\b\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006."}, d2 = {"listOf", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_T, "element", "(Ljava/lang/Object;)Ljava/util/List;", "asArrayList", "Ljava/util/ArrayList;", "Lkotlin/collections/ArrayList;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "([Ljava/lang/Object;)Ljava/util/ArrayList;", "buildListInternal", "E", "builderAction", "Lkotlin/Function1;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Lkotlin/ExtensionFunctionType;", "capacity", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "createListBuilder", "build", "builder", "toList", "Ljava/util/Enumeration;", "shuffled", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "random", "Ljava/util/Random;", "collectionToArray", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "collection", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "(Ljava/util/Collection;)[Ljava/lang/Object;", "array", "(Ljava/util/Collection;[Ljava/lang/Object;)[Ljava/lang/Object;", "terminateCollectionToArray", "collectionSize", "(I[Ljava/lang/Object;)[Ljava/lang/Object;", "copyToArrayOfAny", "isVarargs", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "([Ljava/lang/Object;Z)[Ljava/lang/Object;", "checkIndexOverflow", "index", "checkCountOverflow", "count", "kotlin-stdlib"}, k = 5, mv = {2, 2, 0}, xi = 49, xs = "kotlin/collections/CollectionsKt")
|
|
@SourceDebugExtension({"SMAP\nCollectionsJVM.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CollectionsJVM.kt\nkotlin/collections/CollectionsKt__CollectionsJVMKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,133:1\n1#2:134\n*E\n"})
|
|
/* loaded from: classes3.dex */
|
|
public class CollectionsKt__CollectionsJVMKt {
|
|
@InlineOnly
|
|
private static final <T> ArrayList<T> asArrayList(T[] tArr) {
|
|
Intrinsics.checkNotNullParameter(tArr, "<this>");
|
|
return new ArrayList<>(CollectionsKt__CollectionsKt.asCollection(tArr, true));
|
|
}
|
|
|
|
@SinceKotlin(version = "1.3")
|
|
@PublishedApi
|
|
@NotNull
|
|
public static <E> List<E> build(@NotNull List<E> builder) {
|
|
Intrinsics.checkNotNullParameter(builder, "builder");
|
|
return ((ListBuilder) builder).build();
|
|
}
|
|
|
|
@SinceKotlin(version = "1.3")
|
|
@PublishedApi
|
|
@InlineOnly
|
|
private static final <E> List<E> buildListInternal(Function1<? super List<E>, Unit> builderAction) {
|
|
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
|
List createListBuilder = createListBuilder();
|
|
builderAction.invoke(createListBuilder);
|
|
return build(createListBuilder);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.3")
|
|
@PublishedApi
|
|
@InlineOnly
|
|
private static final int checkCountOverflow(int i) {
|
|
if (i < 0) {
|
|
CollectionsKt__CollectionsKt.throwCountOverflow();
|
|
}
|
|
return i;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.3")
|
|
@PublishedApi
|
|
@InlineOnly
|
|
private static final int checkIndexOverflow(int i) {
|
|
if (i < 0) {
|
|
CollectionsKt__CollectionsKt.throwIndexOverflow();
|
|
}
|
|
return i;
|
|
}
|
|
|
|
@InlineOnly
|
|
private static final Object[] collectionToArray(Collection<?> collection) {
|
|
Intrinsics.checkNotNullParameter(collection, "collection");
|
|
return CollectionToArray.toArray(collection);
|
|
}
|
|
|
|
@NotNull
|
|
public static final <T> Object[] copyToArrayOfAny(@NotNull T[] tArr, boolean z) {
|
|
Intrinsics.checkNotNullParameter(tArr, "<this>");
|
|
if (z && Intrinsics.areEqual(tArr.getClass(), Object[].class)) {
|
|
return tArr;
|
|
}
|
|
Object[] copyOf = Arrays.copyOf(tArr, tArr.length, Object[].class);
|
|
Intrinsics.checkNotNullExpressionValue(copyOf, "copyOf(...)");
|
|
return copyOf;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.3")
|
|
@PublishedApi
|
|
@NotNull
|
|
public static <E> List<E> createListBuilder() {
|
|
return new ListBuilder(0, 1, null);
|
|
}
|
|
|
|
@NotNull
|
|
public static <T> List<T> listOf(T t) {
|
|
List<T> singletonList = Collections.singletonList(t);
|
|
Intrinsics.checkNotNullExpressionValue(singletonList, "singletonList(...)");
|
|
return singletonList;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@NotNull
|
|
public static final <T> List<T> shuffled(@NotNull Iterable<? extends T> iterable) {
|
|
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
|
List<T> mutableList = CollectionsKt___CollectionsKt.toMutableList(iterable);
|
|
Collections.shuffle(mutableList);
|
|
return mutableList;
|
|
}
|
|
|
|
@NotNull
|
|
public static <T> T[] terminateCollectionToArray(int i, @NotNull T[] array) {
|
|
Intrinsics.checkNotNullParameter(array, "array");
|
|
if (i < array.length) {
|
|
array[i] = null;
|
|
}
|
|
return array;
|
|
}
|
|
|
|
@InlineOnly
|
|
private static final <T> List<T> toList(Enumeration<T> enumeration) {
|
|
Intrinsics.checkNotNullParameter(enumeration, "<this>");
|
|
ArrayList list = Collections.list(enumeration);
|
|
Intrinsics.checkNotNullExpressionValue(list, "list(...)");
|
|
return list;
|
|
}
|
|
|
|
@SinceKotlin(version = "1.3")
|
|
@PublishedApi
|
|
@InlineOnly
|
|
private static final <E> List<E> buildListInternal(int i, Function1<? super List<E>, Unit> builderAction) {
|
|
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
|
List createListBuilder = createListBuilder(i);
|
|
builderAction.invoke(createListBuilder);
|
|
return build(createListBuilder);
|
|
}
|
|
|
|
@InlineOnly
|
|
private static final <T> T[] collectionToArray(Collection<?> collection, T[] array) {
|
|
Intrinsics.checkNotNullParameter(collection, "collection");
|
|
Intrinsics.checkNotNullParameter(array, "array");
|
|
return (T[]) CollectionToArray.toArray(collection, array);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.3")
|
|
@PublishedApi
|
|
@NotNull
|
|
public static <E> List<E> createListBuilder(int i) {
|
|
return new ListBuilder(i);
|
|
}
|
|
|
|
@SinceKotlin(version = "1.2")
|
|
@NotNull
|
|
public static final <T> List<T> shuffled(@NotNull Iterable<? extends T> iterable, @NotNull Random random) {
|
|
Intrinsics.checkNotNullParameter(iterable, "<this>");
|
|
Intrinsics.checkNotNullParameter(random, "random");
|
|
List<T> mutableList = CollectionsKt___CollectionsKt.toMutableList(iterable);
|
|
Collections.shuffle(mutableList, random);
|
|
return mutableList;
|
|
}
|
|
}
|