* 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>
192 lines
6.8 KiB
Java
192 lines
6.8 KiB
Java
package com.google.android.material.progressindicator;
|
|
|
|
import android.animation.Animator;
|
|
import android.animation.AnimatorListenerAdapter;
|
|
import android.animation.ObjectAnimator;
|
|
import android.animation.ValueAnimator;
|
|
import android.graphics.ColorFilter;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.util.Property;
|
|
import androidx.vectordrawable.graphics.drawable.Animatable2Compat;
|
|
import com.google.android.material.animation.AnimationUtils;
|
|
import java.util.ArrayList;
|
|
|
|
/* loaded from: classes3.dex */
|
|
abstract class DrawableWithAnimatedVisibilityChange extends Drawable implements Animatable2Compat {
|
|
public static final Property k = new Property(Float.class, "growFraction");
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public AnimatorDurationScaleProvider f11855c;
|
|
public ObjectAnimator f;
|
|
public ObjectAnimator g;
|
|
public ArrayList h;
|
|
public float i;
|
|
public int j;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: com.google.android.material.progressindicator.DrawableWithAnimatedVisibilityChange$1, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass1 extends AnimatorListenerAdapter {
|
|
}
|
|
|
|
/* renamed from: com.google.android.material.progressindicator.DrawableWithAnimatedVisibilityChange$3, reason: invalid class name */
|
|
/* loaded from: classes3.dex */
|
|
public class AnonymousClass3 extends Property<DrawableWithAnimatedVisibilityChange, Float> {
|
|
@Override // android.util.Property
|
|
public final Float get(DrawableWithAnimatedVisibilityChange drawableWithAnimatedVisibilityChange) {
|
|
drawableWithAnimatedVisibilityChange.getClass();
|
|
throw null;
|
|
}
|
|
|
|
@Override // android.util.Property
|
|
public final void set(DrawableWithAnimatedVisibilityChange drawableWithAnimatedVisibilityChange, Float f) {
|
|
DrawableWithAnimatedVisibilityChange drawableWithAnimatedVisibilityChange2 = drawableWithAnimatedVisibilityChange;
|
|
float floatValue = f.floatValue();
|
|
if (drawableWithAnimatedVisibilityChange2.i != floatValue) {
|
|
drawableWithAnimatedVisibilityChange2.i = floatValue;
|
|
drawableWithAnimatedVisibilityChange2.invalidateSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
public void b() {
|
|
c();
|
|
throw null;
|
|
}
|
|
|
|
public boolean c() {
|
|
throw null;
|
|
}
|
|
|
|
public boolean d(boolean z) {
|
|
ObjectAnimator objectAnimator;
|
|
ObjectAnimator objectAnimator2;
|
|
ObjectAnimator objectAnimator3 = this.f;
|
|
Property property = k;
|
|
if (objectAnimator3 == null) {
|
|
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this, (Property<DrawableWithAnimatedVisibilityChange, Float>) property, 0.0f, 1.0f);
|
|
this.f = ofFloat;
|
|
ofFloat.setDuration(500L);
|
|
this.f.setInterpolator(AnimationUtils.b);
|
|
ObjectAnimator objectAnimator4 = this.f;
|
|
if (objectAnimator4 != null && objectAnimator4.isRunning()) {
|
|
throw new IllegalArgumentException("Cannot set showAnimator while the current showAnimator is running.");
|
|
}
|
|
this.f = objectAnimator4;
|
|
objectAnimator4.addListener(new AnimatorListenerAdapter());
|
|
}
|
|
if (this.g == null) {
|
|
ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this, (Property<DrawableWithAnimatedVisibilityChange, Float>) property, 1.0f, 0.0f);
|
|
this.g = ofFloat2;
|
|
ofFloat2.setDuration(500L);
|
|
this.g.setInterpolator(AnimationUtils.b);
|
|
ObjectAnimator objectAnimator5 = this.g;
|
|
if (objectAnimator5 != null && objectAnimator5.isRunning()) {
|
|
throw new IllegalArgumentException("Cannot set hideAnimator while the current hideAnimator is running.");
|
|
}
|
|
this.g = objectAnimator5;
|
|
objectAnimator5.addListener(new AnimatorListenerAdapter() { // from class: com.google.android.material.progressindicator.DrawableWithAnimatedVisibilityChange.2
|
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
|
public final void onAnimationEnd(Animator animator) {
|
|
super.onAnimationEnd(animator);
|
|
DrawableWithAnimatedVisibilityChange.super.setVisible(false, false);
|
|
}
|
|
});
|
|
}
|
|
if (!isVisible() && !z) {
|
|
return false;
|
|
}
|
|
if (z) {
|
|
objectAnimator = this.f;
|
|
} else {
|
|
objectAnimator = this.g;
|
|
}
|
|
if (z) {
|
|
objectAnimator2 = this.g;
|
|
} else {
|
|
objectAnimator2 = this.f;
|
|
}
|
|
if (objectAnimator2.isRunning()) {
|
|
new ValueAnimator[]{objectAnimator2}[0].cancel();
|
|
}
|
|
if (objectAnimator.isRunning()) {
|
|
objectAnimator.end();
|
|
} else {
|
|
new ValueAnimator[]{objectAnimator}[0].end();
|
|
}
|
|
return super.setVisible(z, false);
|
|
}
|
|
|
|
public boolean e(Animatable2Compat.AnimationCallback animationCallback) {
|
|
ArrayList arrayList = this.h;
|
|
if (arrayList != null && arrayList.contains(null)) {
|
|
this.h.remove((Object) null);
|
|
if (this.h.isEmpty()) {
|
|
this.h = null;
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public int getAlpha() {
|
|
return this.j;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public int getOpacity() {
|
|
return -3;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Animatable
|
|
public boolean isRunning() {
|
|
boolean z;
|
|
boolean z2;
|
|
ObjectAnimator objectAnimator = this.f;
|
|
if (objectAnimator != null && objectAnimator.isRunning()) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (!z) {
|
|
ObjectAnimator objectAnimator2 = this.g;
|
|
if (objectAnimator2 != null && objectAnimator2.isRunning()) {
|
|
z2 = true;
|
|
} else {
|
|
z2 = false;
|
|
}
|
|
if (!z2) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public void setAlpha(int i) {
|
|
this.j = i;
|
|
invalidateSelf();
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public void setColorFilter(ColorFilter colorFilter) {
|
|
throw null;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public boolean setVisible(boolean z, boolean z2) {
|
|
c();
|
|
throw null;
|
|
}
|
|
|
|
public void start() {
|
|
d(true);
|
|
}
|
|
|
|
public void stop() {
|
|
d(false);
|
|
}
|
|
}
|