* 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>
416 lines
11 KiB
Java
416 lines
11 KiB
Java
package androidx.appcompat.view.menu;
|
|
|
|
import android.R;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.res.ColorStateList;
|
|
import android.graphics.PorterDuff;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.view.ContextMenu;
|
|
import android.view.KeyEvent;
|
|
import android.view.MenuItem;
|
|
import android.view.SubMenu;
|
|
import android.view.View;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.core.internal.view.SupportMenuItem;
|
|
import androidx.core.view.ActionProvider;
|
|
|
|
@RestrictTo
|
|
/* loaded from: classes.dex */
|
|
public class ActionMenuItem implements SupportMenuItem {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public CharSequence f160a;
|
|
public CharSequence b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public Intent f161c;
|
|
public char d;
|
|
public int e;
|
|
public char f;
|
|
public int g;
|
|
public Drawable h;
|
|
public Context i;
|
|
public CharSequence j;
|
|
public CharSequence k;
|
|
public ColorStateList l;
|
|
public PorterDuff.Mode m;
|
|
public boolean n;
|
|
public boolean o;
|
|
public int p;
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem
|
|
public final SupportMenuItem a(ActionProvider actionProvider) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem
|
|
public final ActionProvider b() {
|
|
return null;
|
|
}
|
|
|
|
public final void c() {
|
|
Drawable drawable = this.h;
|
|
if (drawable != null) {
|
|
if (this.n || this.o) {
|
|
this.h = drawable;
|
|
Drawable mutate = drawable.mutate();
|
|
this.h = mutate;
|
|
if (this.n) {
|
|
mutate.setTintList(this.l);
|
|
}
|
|
if (this.o) {
|
|
this.h.setTintMode(this.m);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean collapseActionView() {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean expandActionView() {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final android.view.ActionProvider getActionProvider() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final View getActionView() {
|
|
return null;
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final int getAlphabeticModifiers() {
|
|
return this.g;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final char getAlphabeticShortcut() {
|
|
return this.f;
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final CharSequence getContentDescription() {
|
|
return this.j;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final int getGroupId() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final Drawable getIcon() {
|
|
return this.h;
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final ColorStateList getIconTintList() {
|
|
return this.l;
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final PorterDuff.Mode getIconTintMode() {
|
|
return this.m;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final Intent getIntent() {
|
|
return this.f161c;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final int getItemId() {
|
|
return R.id.home;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final ContextMenu.ContextMenuInfo getMenuInfo() {
|
|
return null;
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final int getNumericModifiers() {
|
|
return this.e;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final char getNumericShortcut() {
|
|
return this.d;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final int getOrder() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final SubMenu getSubMenu() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final CharSequence getTitle() {
|
|
return this.f160a;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final CharSequence getTitleCondensed() {
|
|
CharSequence charSequence = this.b;
|
|
if (charSequence != null) {
|
|
return charSequence;
|
|
}
|
|
return this.f160a;
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final CharSequence getTooltipText() {
|
|
return this.k;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean hasSubMenu() {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean isActionViewExpanded() {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean isCheckable() {
|
|
if ((this.p & 1) != 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean isChecked() {
|
|
if ((this.p & 2) != 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean isEnabled() {
|
|
if ((this.p & 16) != 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean isVisible() {
|
|
if ((this.p & 8) == 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setActionProvider(android.view.ActionProvider actionProvider) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setActionView(View view) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setAlphabeticShortcut(char c2) {
|
|
this.f = Character.toLowerCase(c2);
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setCheckable(boolean z) {
|
|
this.p = (z ? 1 : 0) | (this.p & (-2));
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setChecked(boolean z) {
|
|
int i;
|
|
int i2 = this.p & (-3);
|
|
if (z) {
|
|
i = 2;
|
|
} else {
|
|
i = 0;
|
|
}
|
|
this.p = i | i2;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setContentDescription(CharSequence charSequence) {
|
|
this.j = charSequence;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setEnabled(boolean z) {
|
|
int i;
|
|
int i2 = this.p & (-17);
|
|
if (z) {
|
|
i = 16;
|
|
} else {
|
|
i = 0;
|
|
}
|
|
this.p = i | i2;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setIcon(Drawable drawable) {
|
|
this.h = drawable;
|
|
c();
|
|
return this;
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final MenuItem setIconTintList(ColorStateList colorStateList) {
|
|
this.l = colorStateList;
|
|
this.n = true;
|
|
c();
|
|
return this;
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final MenuItem setIconTintMode(PorterDuff.Mode mode) {
|
|
this.m = mode;
|
|
this.o = true;
|
|
c();
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setIntent(Intent intent) {
|
|
this.f161c = intent;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setNumericShortcut(char c2) {
|
|
this.d = c2;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setOnActionExpandListener(MenuItem.OnActionExpandListener onActionExpandListener) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener onMenuItemClickListener) {
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setShortcut(char c2, char c3) {
|
|
this.d = c2;
|
|
this.f = Character.toLowerCase(c3);
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final void setShowAsAction(int i) {
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setShowAsActionFlags(int i) {
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setTitle(CharSequence charSequence) {
|
|
this.f160a = charSequence;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setTitleCondensed(CharSequence charSequence) {
|
|
this.b = charSequence;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setTooltipText(CharSequence charSequence) {
|
|
this.k = charSequence;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setVisible(boolean z) {
|
|
int i = 8;
|
|
int i2 = this.p & 8;
|
|
if (z) {
|
|
i = 0;
|
|
}
|
|
this.p = i2 | i;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setActionView(int i) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final MenuItem setAlphabeticShortcut(char c2, int i) {
|
|
this.f = Character.toLowerCase(c2);
|
|
this.g = KeyEvent.normalizeMetaState(i);
|
|
return this;
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final SupportMenuItem setContentDescription(CharSequence charSequence) {
|
|
this.j = charSequence;
|
|
return this;
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final MenuItem setNumericShortcut(char c2, int i) {
|
|
this.d = c2;
|
|
this.e = KeyEvent.normalizeMetaState(i);
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setTitle(int i) {
|
|
this.f160a = this.i.getResources().getString(i);
|
|
return this;
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final SupportMenuItem setTooltipText(CharSequence charSequence) {
|
|
this.k = charSequence;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setIcon(int i) {
|
|
this.h = this.i.getDrawable(i);
|
|
c();
|
|
return this;
|
|
}
|
|
|
|
@Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem
|
|
public final MenuItem setShortcut(char c2, char c3, int i, int i2) {
|
|
this.d = c2;
|
|
this.e = KeyEvent.normalizeMetaState(i);
|
|
this.f = Character.toLowerCase(c3);
|
|
this.g = KeyEvent.normalizeMetaState(i2);
|
|
return this;
|
|
}
|
|
}
|