* 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>
153 lines
5.4 KiB
Java
153 lines
5.4 KiB
Java
package androidx.transition;
|
|
|
|
import android.animation.Animator;
|
|
import android.animation.AnimatorListenerAdapter;
|
|
import android.animation.ObjectAnimator;
|
|
import android.util.Property;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import androidx.transition.Transition;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class Fade extends Visibility {
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class FadeAnimatorListener extends AnimatorListenerAdapter implements Transition.TransitionListener {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final View f1684a;
|
|
public boolean b = false;
|
|
|
|
public FadeAnimatorListener(View view) {
|
|
this.f1684a = view;
|
|
}
|
|
|
|
@Override // androidx.transition.Transition.TransitionListener
|
|
public final void b() {
|
|
float f;
|
|
View view = this.f1684a;
|
|
if (view.getVisibility() == 0) {
|
|
f = ViewUtils.f1718a.a(view);
|
|
} else {
|
|
f = 0.0f;
|
|
}
|
|
view.setTag(R.id.transition_pause_alpha, Float.valueOf(f));
|
|
}
|
|
|
|
@Override // androidx.transition.Transition.TransitionListener
|
|
public final void c(Transition transition) {
|
|
throw null;
|
|
}
|
|
|
|
@Override // androidx.transition.Transition.TransitionListener
|
|
public final void e(Transition transition) {
|
|
throw null;
|
|
}
|
|
|
|
@Override // androidx.transition.Transition.TransitionListener
|
|
public final void f(Transition transition) {
|
|
}
|
|
|
|
@Override // androidx.transition.Transition.TransitionListener
|
|
public final void g(Transition transition) {
|
|
}
|
|
|
|
@Override // androidx.transition.Transition.TransitionListener
|
|
public final void h() {
|
|
this.f1684a.setTag(R.id.transition_pause_alpha, null);
|
|
}
|
|
|
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
|
public final void onAnimationCancel(Animator animator) {
|
|
ViewUtils.f1718a.b(this.f1684a, 1.0f);
|
|
}
|
|
|
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
|
public final void onAnimationEnd(Animator animator) {
|
|
onAnimationEnd(animator, false);
|
|
}
|
|
|
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
|
public final void onAnimationStart(Animator animator) {
|
|
View view = this.f1684a;
|
|
if (view.hasOverlappingRendering() && view.getLayerType() == 0) {
|
|
this.b = true;
|
|
view.setLayerType(2, null);
|
|
}
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationEnd(Animator animator, boolean z) {
|
|
boolean z2 = this.b;
|
|
View view = this.f1684a;
|
|
if (z2) {
|
|
view.setLayerType(0, null);
|
|
}
|
|
if (z) {
|
|
return;
|
|
}
|
|
ViewUtilsApi23 viewUtilsApi23 = ViewUtils.f1718a;
|
|
viewUtilsApi23.b(view, 1.0f);
|
|
viewUtilsApi23.getClass();
|
|
}
|
|
|
|
@Override // androidx.transition.Transition.TransitionListener
|
|
public final void d(Transition transition) {
|
|
}
|
|
}
|
|
|
|
public Fade(int i) {
|
|
this.G = i;
|
|
}
|
|
|
|
public static float T(TransitionValues transitionValues, float f) {
|
|
Float f2;
|
|
if (transitionValues != null && (f2 = (Float) transitionValues.f1712a.get("android:fade:transitionAlpha")) != null) {
|
|
return f2.floatValue();
|
|
}
|
|
return f;
|
|
}
|
|
|
|
@Override // androidx.transition.Visibility
|
|
public final Animator Q(ViewGroup viewGroup, View view, TransitionValues transitionValues, TransitionValues transitionValues2) {
|
|
ViewUtils.f1718a.getClass();
|
|
return S(view, T(transitionValues, 0.0f), 1.0f);
|
|
}
|
|
|
|
@Override // androidx.transition.Visibility
|
|
public final Animator R(ViewGroup viewGroup, View view, TransitionValues transitionValues, TransitionValues transitionValues2) {
|
|
ViewUtilsApi23 viewUtilsApi23 = ViewUtils.f1718a;
|
|
viewUtilsApi23.getClass();
|
|
ObjectAnimator S = S(view, T(transitionValues, 1.0f), 0.0f);
|
|
if (S == null) {
|
|
viewUtilsApi23.b(view, T(transitionValues2, 1.0f));
|
|
}
|
|
return S;
|
|
}
|
|
|
|
public final ObjectAnimator S(View view, float f, float f2) {
|
|
if (f == f2) {
|
|
return null;
|
|
}
|
|
ViewUtils.f1718a.b(view, f);
|
|
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(view, (Property<View, Float>) ViewUtils.b, f2);
|
|
FadeAnimatorListener fadeAnimatorListener = new FadeAnimatorListener(view);
|
|
ofFloat.addListener(fadeAnimatorListener);
|
|
q().a(fadeAnimatorListener);
|
|
return ofFloat;
|
|
}
|
|
|
|
@Override // androidx.transition.Visibility, androidx.transition.Transition
|
|
public final void h(TransitionValues transitionValues) {
|
|
Visibility.O(transitionValues);
|
|
Float f = (Float) transitionValues.b.getTag(R.id.transition_pause_alpha);
|
|
if (f == null) {
|
|
if (transitionValues.b.getVisibility() == 0) {
|
|
f = Float.valueOf(ViewUtils.f1718a.a(transitionValues.b));
|
|
} else {
|
|
f = Float.valueOf(0.0f);
|
|
}
|
|
}
|
|
transitionValues.f1712a.put("android:fade:transitionAlpha", f);
|
|
}
|
|
}
|