* 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>
89 lines
4.5 KiB
Java
89 lines
4.5 KiB
Java
package androidx.fragment.app;
|
|
|
|
import android.view.View;
|
|
import androidx.collection.ArrayMap;
|
|
import androidx.core.app.SharedElementCallback;
|
|
import androidx.transition.FragmentTransitionSupport;
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import kotlin.Metadata;
|
|
import kotlin.collections.CollectionsKt;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\bÀ\u0002\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Landroidx/fragment/app/FragmentTransition;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "fragment_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nFragmentTransition.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FragmentTransition.kt\nandroidx/fragment/app/FragmentTransition\n+ 2 Maps.kt\nkotlin/collections/MapsKt__MapsKt\n+ 3 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,122:1\n515#2:123\n500#2,6:124\n125#3:130\n152#3,3:131\n125#3:134\n152#3,3:135\n125#3:138\n152#3,3:139\n1855#4,2:142\n*S KotlinDebug\n*F\n+ 1 FragmentTransition.kt\nandroidx/fragment/app/FragmentTransition\n*L\n50#1:123\n50#1:124,6\n53#1:130\n53#1:131,3\n98#1:134\n98#1:135,3\n99#1:138\n99#1:139,3\n113#1:142,2\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public final class FragmentTransition {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public static final FragmentTransitionImpl f1131a = new Object();
|
|
public static final FragmentTransitionImpl b;
|
|
|
|
/* JADX WARN: Type inference failed for: r0v0, types: [androidx.fragment.app.FragmentTransitionImpl, java.lang.Object] */
|
|
static {
|
|
FragmentTransitionImpl fragmentTransitionImpl = null;
|
|
try {
|
|
Intrinsics.checkNotNull(FragmentTransitionSupport.class, "null cannot be cast to non-null type java.lang.Class<androidx.fragment.app.FragmentTransitionImpl>");
|
|
fragmentTransitionImpl = (FragmentTransitionImpl) FragmentTransitionSupport.class.getDeclaredConstructor(null).newInstance(null);
|
|
} catch (Exception unused) {
|
|
}
|
|
b = fragmentTransitionImpl;
|
|
}
|
|
|
|
public static final void a(Fragment inFragment, Fragment outFragment, boolean z, ArrayMap sharedElements) {
|
|
SharedElementCallback enterTransitionCallback;
|
|
Intrinsics.checkNotNullParameter(inFragment, "inFragment");
|
|
Intrinsics.checkNotNullParameter(outFragment, "outFragment");
|
|
Intrinsics.checkNotNullParameter(sharedElements, "sharedElements");
|
|
if (z) {
|
|
enterTransitionCallback = outFragment.getEnterTransitionCallback();
|
|
} else {
|
|
enterTransitionCallback = inFragment.getEnterTransitionCallback();
|
|
}
|
|
if (enterTransitionCallback != null) {
|
|
ArrayList arrayList = new ArrayList(sharedElements.g);
|
|
Iterator it = sharedElements.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
arrayList.add((View) ((Map.Entry) it.next()).getValue());
|
|
}
|
|
ArrayList arrayList2 = new ArrayList(sharedElements.g);
|
|
Iterator it2 = sharedElements.entrySet().iterator();
|
|
while (it2.hasNext()) {
|
|
arrayList2.add((String) ((Map.Entry) it2.next()).getKey());
|
|
}
|
|
}
|
|
}
|
|
|
|
public static final String b(ArrayMap arrayMap, String value) {
|
|
Intrinsics.checkNotNullParameter(arrayMap, "<this>");
|
|
Intrinsics.checkNotNullParameter(value, "value");
|
|
LinkedHashMap linkedHashMap = new LinkedHashMap();
|
|
for (Map.Entry entry : arrayMap.entrySet()) {
|
|
if (Intrinsics.areEqual(entry.getValue(), value)) {
|
|
linkedHashMap.put(entry.getKey(), entry.getValue());
|
|
}
|
|
}
|
|
ArrayList arrayList = new ArrayList(linkedHashMap.size());
|
|
Iterator it = linkedHashMap.entrySet().iterator();
|
|
while (it.hasNext()) {
|
|
arrayList.add((String) ((Map.Entry) it.next()).getKey());
|
|
}
|
|
return (String) CollectionsKt.firstOrNull((List) arrayList);
|
|
}
|
|
|
|
public static final void c(int i, ArrayList views) {
|
|
Intrinsics.checkNotNullParameter(views, "views");
|
|
int size = views.size();
|
|
int i2 = 0;
|
|
while (i2 < size) {
|
|
Object obj = views.get(i2);
|
|
i2++;
|
|
((View) obj).setVisibility(i);
|
|
}
|
|
}
|
|
}
|