* 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>
175 lines
6.5 KiB
Java
175 lines
6.5 KiB
Java
package androidx.transition;
|
|
|
|
import android.animation.Animator;
|
|
import android.animation.AnimatorListenerAdapter;
|
|
import android.animation.ObjectAnimator;
|
|
import android.animation.TypeEvaluator;
|
|
import android.graphics.Rect;
|
|
import android.util.Property;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import androidx.transition.Transition;
|
|
import java.util.HashMap;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class ChangeClipBounds extends Transition {
|
|
public static final String[] G = {"android:clipBounds:clip"};
|
|
public static final Rect H = new Rect();
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class Listener extends AnimatorListenerAdapter implements Transition.TransitionListener {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final Rect f1673a;
|
|
public final Rect b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final View f1674c;
|
|
|
|
public Listener(View view, Rect rect, Rect rect2) {
|
|
this.f1674c = view;
|
|
this.f1673a = rect;
|
|
this.b = rect2;
|
|
}
|
|
|
|
@Override // androidx.transition.Transition.TransitionListener
|
|
public final void b() {
|
|
View view = this.f1674c;
|
|
Rect clipBounds = view.getClipBounds();
|
|
if (clipBounds == null) {
|
|
clipBounds = ChangeClipBounds.H;
|
|
}
|
|
view.setTag(R.id.transition_clip, clipBounds);
|
|
view.setClipBounds(this.b);
|
|
}
|
|
|
|
@Override // androidx.transition.Transition.TransitionListener
|
|
public final void c(Transition transition) {
|
|
throw null;
|
|
}
|
|
|
|
@Override // androidx.transition.Transition.TransitionListener
|
|
public final void d(Transition transition) {
|
|
}
|
|
|
|
@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() {
|
|
int i = R.id.transition_clip;
|
|
View view = this.f1674c;
|
|
view.setClipBounds((Rect) view.getTag(i));
|
|
view.setTag(R.id.transition_clip, null);
|
|
}
|
|
|
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
|
public final void onAnimationEnd(Animator animator) {
|
|
onAnimationEnd(animator, false);
|
|
}
|
|
|
|
@Override // android.animation.Animator.AnimatorListener
|
|
public final void onAnimationEnd(Animator animator, boolean z) {
|
|
View view = this.f1674c;
|
|
if (!z) {
|
|
view.setClipBounds(this.b);
|
|
} else {
|
|
view.setClipBounds(this.f1673a);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void O(TransitionValues transitionValues, boolean z) {
|
|
Rect rect;
|
|
View view = transitionValues.b;
|
|
HashMap hashMap = transitionValues.f1712a;
|
|
if (view.getVisibility() != 8) {
|
|
Rect rect2 = null;
|
|
if (z) {
|
|
rect = (Rect) view.getTag(R.id.transition_clip);
|
|
} else {
|
|
rect = null;
|
|
}
|
|
if (rect == null) {
|
|
rect = view.getClipBounds();
|
|
}
|
|
if (rect != H) {
|
|
rect2 = rect;
|
|
}
|
|
hashMap.put("android:clipBounds:clip", rect2);
|
|
if (rect2 == null) {
|
|
hashMap.put("android:clipBounds:bounds", new Rect(0, 0, view.getWidth(), view.getHeight()));
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // androidx.transition.Transition
|
|
public final void e(TransitionValues transitionValues) {
|
|
O(transitionValues, false);
|
|
}
|
|
|
|
@Override // androidx.transition.Transition
|
|
public final void h(TransitionValues transitionValues) {
|
|
O(transitionValues, true);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r2v3, types: [android.animation.TypeEvaluator, java.lang.Object, androidx.transition.RectEvaluator] */
|
|
@Override // androidx.transition.Transition
|
|
public final Animator l(ViewGroup viewGroup, TransitionValues transitionValues, TransitionValues transitionValues2) {
|
|
Rect rect;
|
|
Rect rect2;
|
|
if (transitionValues != null) {
|
|
HashMap hashMap = transitionValues.f1712a;
|
|
if (transitionValues2 != null) {
|
|
HashMap hashMap2 = transitionValues2.f1712a;
|
|
if (hashMap.containsKey("android:clipBounds:clip") && hashMap2.containsKey("android:clipBounds:clip")) {
|
|
Rect rect3 = (Rect) hashMap.get("android:clipBounds:clip");
|
|
Rect rect4 = (Rect) hashMap2.get("android:clipBounds:clip");
|
|
if (rect3 != null || rect4 != null) {
|
|
if (rect3 == null) {
|
|
rect = (Rect) hashMap.get("android:clipBounds:bounds");
|
|
} else {
|
|
rect = rect3;
|
|
}
|
|
if (rect4 == null) {
|
|
rect2 = (Rect) hashMap2.get("android:clipBounds:bounds");
|
|
} else {
|
|
rect2 = rect4;
|
|
}
|
|
if (!rect.equals(rect2)) {
|
|
transitionValues2.b.setClipBounds(rect3);
|
|
Rect rect5 = new Rect();
|
|
?? obj = new Object();
|
|
obj.f1695a = rect5;
|
|
ObjectAnimator ofObject = ObjectAnimator.ofObject(transitionValues2.b, (Property<View, V>) ViewUtils.f1719c, (TypeEvaluator) obj, rect, rect2);
|
|
Listener listener = new Listener(transitionValues2.b, rect3, rect4);
|
|
ofObject.addListener(listener);
|
|
a(listener);
|
|
return ofObject;
|
|
}
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // androidx.transition.Transition
|
|
public final String[] s() {
|
|
return G;
|
|
}
|
|
}
|