* 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>
118 lines
4.4 KiB
Java
118 lines
4.4 KiB
Java
package androidx.mediarouter.app;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Canvas;
|
|
import android.graphics.Rect;
|
|
import android.graphics.drawable.BitmapDrawable;
|
|
import android.support.v4.media.a;
|
|
import android.util.AttributeSet;
|
|
import android.view.animation.Interpolator;
|
|
import android.widget.ListView;
|
|
import androidx.mediarouter.app.MediaRouteControllerDialog;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class OverlayListView extends ListView {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final ArrayList f1337c;
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class OverlayObject {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final BitmapDrawable f1338a;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final Rect f1339c;
|
|
public Interpolator d;
|
|
public long e;
|
|
public final Rect f;
|
|
public int g;
|
|
public long i;
|
|
public boolean j;
|
|
public boolean k;
|
|
public OnAnimationEndListener l;
|
|
public float b = 1.0f;
|
|
public float h = 1.0f;
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface OnAnimationEndListener {
|
|
}
|
|
|
|
public OverlayObject(BitmapDrawable bitmapDrawable, Rect rect) {
|
|
this.f1338a = bitmapDrawable;
|
|
this.f = rect;
|
|
Rect rect2 = new Rect(rect);
|
|
this.f1339c = rect2;
|
|
if (bitmapDrawable != null) {
|
|
bitmapDrawable.setAlpha((int) (this.b * 255.0f));
|
|
bitmapDrawable.setBounds(rect2);
|
|
}
|
|
}
|
|
}
|
|
|
|
public OverlayListView(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
this.f1337c = new ArrayList();
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public final void onDraw(Canvas canvas) {
|
|
float interpolation;
|
|
boolean z;
|
|
super.onDraw(canvas);
|
|
ArrayList arrayList = this.f1337c;
|
|
if (arrayList.size() > 0) {
|
|
Iterator it = arrayList.iterator();
|
|
while (it.hasNext()) {
|
|
OverlayObject overlayObject = (OverlayObject) it.next();
|
|
BitmapDrawable bitmapDrawable = overlayObject.f1338a;
|
|
if (bitmapDrawable != null) {
|
|
bitmapDrawable.draw(canvas);
|
|
}
|
|
long drawingTime = getDrawingTime();
|
|
BitmapDrawable bitmapDrawable2 = overlayObject.f1338a;
|
|
Rect rect = overlayObject.f1339c;
|
|
if (overlayObject.k) {
|
|
z = false;
|
|
} else {
|
|
float f = 0.0f;
|
|
float max = Math.max(0.0f, Math.min(1.0f, ((float) (drawingTime - overlayObject.i)) / ((float) overlayObject.e)));
|
|
if (overlayObject.j) {
|
|
f = max;
|
|
}
|
|
Interpolator interpolator = overlayObject.d;
|
|
if (interpolator == null) {
|
|
interpolation = f;
|
|
} else {
|
|
interpolation = interpolator.getInterpolation(f);
|
|
}
|
|
int i = (int) (overlayObject.g * interpolation);
|
|
Rect rect2 = overlayObject.f;
|
|
rect.top = rect2.top + i;
|
|
rect.bottom = rect2.bottom + i;
|
|
float a2 = a.a(overlayObject.h, 1.0f, interpolation, 1.0f);
|
|
overlayObject.b = a2;
|
|
if (bitmapDrawable2 != null) {
|
|
bitmapDrawable2.setAlpha((int) (a2 * 255.0f));
|
|
bitmapDrawable2.setBounds(rect);
|
|
}
|
|
if (overlayObject.j && f >= 1.0f) {
|
|
overlayObject.k = true;
|
|
OverlayObject.OnAnimationEndListener onAnimationEndListener = overlayObject.l;
|
|
if (onAnimationEndListener != null) {
|
|
((MediaRouteControllerDialog.AnonymousClass10) onAnimationEndListener).a();
|
|
}
|
|
}
|
|
z = !overlayObject.k;
|
|
}
|
|
if (!z) {
|
|
it.remove();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|