* 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>
119 lines
4.4 KiB
Java
119 lines
4.4 KiB
Java
package androidx.dynamicanimation.animation;
|
|
|
|
import androidx.dynamicanimation.animation.DynamicAnimation;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class SpringForce implements Force {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public double f993a;
|
|
public double b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public boolean f994c;
|
|
public double d;
|
|
public double e;
|
|
public double f;
|
|
public double g;
|
|
public double h;
|
|
public double i;
|
|
public final DynamicAnimation.MassState j;
|
|
|
|
/* JADX WARN: Type inference failed for: r0v5, types: [java.lang.Object, androidx.dynamicanimation.animation.DynamicAnimation$MassState] */
|
|
public SpringForce() {
|
|
this.f993a = Math.sqrt(1500.0d);
|
|
this.b = 0.5d;
|
|
this.f994c = false;
|
|
this.i = Double.MAX_VALUE;
|
|
this.j = new Object();
|
|
}
|
|
|
|
public final void a(float f) {
|
|
if (f >= 0.0f) {
|
|
this.b = f;
|
|
this.f994c = false;
|
|
return;
|
|
}
|
|
throw new IllegalArgumentException("Damping ratio must be non-negative");
|
|
}
|
|
|
|
public final void b(float f) {
|
|
if (f > 0.0f) {
|
|
this.f993a = Math.sqrt(f);
|
|
this.f994c = false;
|
|
return;
|
|
}
|
|
throw new IllegalArgumentException("Spring stiffness constant must be positive.");
|
|
}
|
|
|
|
public final DynamicAnimation.MassState c(double d, double d2, long j) {
|
|
double sin;
|
|
double cos;
|
|
if (!this.f994c) {
|
|
if (this.i != Double.MAX_VALUE) {
|
|
double d3 = this.b;
|
|
if (d3 > 1.0d) {
|
|
double d4 = this.f993a;
|
|
this.f = (Math.sqrt((d3 * d3) - 1.0d) * d4) + ((-d3) * d4);
|
|
double d5 = this.b;
|
|
double d6 = this.f993a;
|
|
this.g = ((-d5) * d6) - (Math.sqrt((d5 * d5) - 1.0d) * d6);
|
|
} else if (d3 >= 0.0d && d3 < 1.0d) {
|
|
this.h = Math.sqrt(1.0d - (d3 * d3)) * this.f993a;
|
|
}
|
|
this.f994c = true;
|
|
} else {
|
|
throw new IllegalStateException("Error: Final position of the spring must be set before the animation starts");
|
|
}
|
|
}
|
|
double d7 = j / 1000.0d;
|
|
double d8 = d - this.i;
|
|
double d9 = this.b;
|
|
if (d9 > 1.0d) {
|
|
double d10 = this.g;
|
|
double d11 = ((d10 * d8) - d2) / (d10 - this.f);
|
|
double d12 = d8 - d11;
|
|
sin = (Math.pow(2.718281828459045d, this.f * d7) * d11) + (Math.pow(2.718281828459045d, d10 * d7) * d12);
|
|
double d13 = this.g;
|
|
double pow = Math.pow(2.718281828459045d, d13 * d7) * d12 * d13;
|
|
double d14 = this.f;
|
|
cos = (Math.pow(2.718281828459045d, d14 * d7) * d11 * d14) + pow;
|
|
} else if (d9 == 1.0d) {
|
|
double d15 = this.f993a;
|
|
double d16 = (d15 * d8) + d2;
|
|
double d17 = (d16 * d7) + d8;
|
|
double pow2 = Math.pow(2.718281828459045d, (-d15) * d7) * d17;
|
|
double pow3 = Math.pow(2.718281828459045d, (-this.f993a) * d7) * d17;
|
|
double d18 = -this.f993a;
|
|
cos = (Math.pow(2.718281828459045d, d18 * d7) * d16) + (pow3 * d18);
|
|
sin = pow2;
|
|
} else {
|
|
double d19 = 1.0d / this.h;
|
|
double d20 = this.f993a;
|
|
double d21 = ((d9 * d20 * d8) + d2) * d19;
|
|
sin = ((Math.sin(this.h * d7) * d21) + (Math.cos(this.h * d7) * d8)) * Math.pow(2.718281828459045d, (-d9) * d20 * d7);
|
|
double d22 = this.f993a;
|
|
double d23 = this.b;
|
|
double d24 = (-d22) * sin * d23;
|
|
double pow4 = Math.pow(2.718281828459045d, (-d23) * d22 * d7);
|
|
double d25 = this.h;
|
|
double sin2 = Math.sin(d25 * d7) * (-d25) * d8;
|
|
double d26 = this.h;
|
|
cos = (((Math.cos(d26 * d7) * d21 * d26) + sin2) * pow4) + d24;
|
|
}
|
|
float f = (float) (sin + this.i);
|
|
DynamicAnimation.MassState massState = this.j;
|
|
massState.f992a = f;
|
|
massState.b = (float) cos;
|
|
return massState;
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r0v4, types: [java.lang.Object, androidx.dynamicanimation.animation.DynamicAnimation$MassState] */
|
|
public SpringForce(float f) {
|
|
this.f993a = Math.sqrt(1500.0d);
|
|
this.b = 0.5d;
|
|
this.f994c = false;
|
|
this.j = new Object();
|
|
this.i = f;
|
|
}
|
|
}
|