* 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>
176 lines
5.9 KiB
Java
176 lines
5.9 KiB
Java
package androidx.appcompat.widget;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.Configuration;
|
|
import android.content.res.TypedArray;
|
|
import android.util.AttributeSet;
|
|
import android.util.TypedValue;
|
|
import android.view.ContextThemeWrapper;
|
|
import android.view.MotionEvent;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import androidx.appcompat.R;
|
|
import androidx.appcompat.view.menu.MenuBuilder;
|
|
import androidx.core.view.ViewPropertyAnimatorCompat;
|
|
import androidx.core.view.ViewPropertyAnimatorListener;
|
|
import kotlin.jvm.internal.IntCompanionObject;
|
|
|
|
/* loaded from: classes.dex */
|
|
abstract class AbsActionBarView extends ViewGroup {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final VisibilityAnimListener f191c;
|
|
public final Context f;
|
|
public ActionMenuView g;
|
|
public ActionMenuPresenter h;
|
|
public int i;
|
|
public ViewPropertyAnimatorCompat j;
|
|
public boolean k;
|
|
public boolean l;
|
|
|
|
/* renamed from: androidx.appcompat.widget.AbsActionBarView$1, reason: invalid class name */
|
|
/* loaded from: classes.dex */
|
|
class AnonymousClass1 implements Runnable {
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
throw null;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public class VisibilityAnimListener implements ViewPropertyAnimatorListener {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public boolean f192a = false;
|
|
public int b;
|
|
|
|
public VisibilityAnimListener() {
|
|
}
|
|
|
|
@Override // androidx.core.view.ViewPropertyAnimatorListener
|
|
public final void a() {
|
|
if (this.f192a) {
|
|
return;
|
|
}
|
|
AbsActionBarView absActionBarView = AbsActionBarView.this;
|
|
absActionBarView.j = null;
|
|
AbsActionBarView.super.setVisibility(this.b);
|
|
}
|
|
|
|
@Override // androidx.core.view.ViewPropertyAnimatorListener
|
|
public final void b() {
|
|
this.f192a = true;
|
|
}
|
|
|
|
@Override // androidx.core.view.ViewPropertyAnimatorListener
|
|
public final void c() {
|
|
AbsActionBarView.super.setVisibility(0);
|
|
this.f192a = false;
|
|
}
|
|
}
|
|
|
|
public AbsActionBarView(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
this.f191c = new VisibilityAnimListener();
|
|
TypedValue typedValue = new TypedValue();
|
|
if (context.getTheme().resolveAttribute(R.attr.actionBarPopupTheme, typedValue, true) && typedValue.resourceId != 0) {
|
|
this.f = new ContextThemeWrapper(context, typedValue.resourceId);
|
|
} else {
|
|
this.f = context;
|
|
}
|
|
}
|
|
|
|
public static int c(View view, int i, int i2) {
|
|
view.measure(View.MeasureSpec.makeMeasureSpec(i, IntCompanionObject.MIN_VALUE), i2);
|
|
return Math.max(0, i - view.getMeasuredWidth());
|
|
}
|
|
|
|
public static int d(int i, int i2, int i3, View view, boolean z) {
|
|
int measuredWidth = view.getMeasuredWidth();
|
|
int measuredHeight = view.getMeasuredHeight();
|
|
int i4 = ((i3 - measuredHeight) / 2) + i2;
|
|
if (z) {
|
|
view.layout(i - measuredWidth, i4, i, measuredHeight + i4);
|
|
} else {
|
|
view.layout(i, i4, i + measuredWidth, measuredHeight + i4);
|
|
}
|
|
if (z) {
|
|
return -measuredWidth;
|
|
}
|
|
return measuredWidth;
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r1v1, types: [java.lang.Object, androidx.appcompat.view.ActionBarPolicy] */
|
|
@Override // android.view.View
|
|
public final void onConfigurationChanged(Configuration configuration) {
|
|
super.onConfigurationChanged(configuration);
|
|
TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(null, R.styleable.ActionBar, R.attr.actionBarStyle, 0);
|
|
setContentHeight(obtainStyledAttributes.getLayoutDimension(R.styleable.ActionBar_height, 0));
|
|
obtainStyledAttributes.recycle();
|
|
ActionMenuPresenter actionMenuPresenter = this.h;
|
|
if (actionMenuPresenter != null) {
|
|
Context context = actionMenuPresenter.f;
|
|
?? obj = new Object();
|
|
obj.f142a = context;
|
|
actionMenuPresenter.t = obj.a();
|
|
MenuBuilder menuBuilder = actionMenuPresenter.g;
|
|
if (menuBuilder != null) {
|
|
menuBuilder.p(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean onHoverEvent(MotionEvent motionEvent) {
|
|
int actionMasked = motionEvent.getActionMasked();
|
|
if (actionMasked == 9) {
|
|
this.l = false;
|
|
}
|
|
if (!this.l) {
|
|
boolean onHoverEvent = super.onHoverEvent(motionEvent);
|
|
if (actionMasked == 9 && !onHoverEvent) {
|
|
this.l = true;
|
|
}
|
|
}
|
|
if (actionMasked != 10 && actionMasked != 3) {
|
|
return true;
|
|
}
|
|
this.l = false;
|
|
return true;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public boolean onTouchEvent(MotionEvent motionEvent) {
|
|
int actionMasked = motionEvent.getActionMasked();
|
|
if (actionMasked == 0) {
|
|
this.k = false;
|
|
}
|
|
if (!this.k) {
|
|
boolean onTouchEvent = super.onTouchEvent(motionEvent);
|
|
if (actionMasked == 0 && !onTouchEvent) {
|
|
this.k = true;
|
|
}
|
|
}
|
|
if (actionMasked != 1 && actionMasked != 3) {
|
|
return true;
|
|
}
|
|
this.k = false;
|
|
return true;
|
|
}
|
|
|
|
public void setContentHeight(int i) {
|
|
this.i = i;
|
|
requestLayout();
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setVisibility(int i) {
|
|
if (i != getVisibility()) {
|
|
ViewPropertyAnimatorCompat viewPropertyAnimatorCompat = this.j;
|
|
if (viewPropertyAnimatorCompat != null) {
|
|
viewPropertyAnimatorCompat.b();
|
|
}
|
|
super.setVisibility(i);
|
|
}
|
|
}
|
|
}
|