* 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>
260 lines
10 KiB
Java
260 lines
10 KiB
Java
package androidx.appcompat.widget;
|
|
|
|
import android.R;
|
|
import android.content.Context;
|
|
import android.content.res.ColorStateList;
|
|
import android.graphics.PorterDuff;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.text.method.KeyListener;
|
|
import android.text.method.NumberKeyListener;
|
|
import android.util.AttributeSet;
|
|
import android.view.ActionMode;
|
|
import android.view.inputmethod.EditorInfo;
|
|
import android.view.inputmethod.InputConnection;
|
|
import android.view.inspector.PropertyMapper;
|
|
import android.view.inspector.PropertyReader;
|
|
import android.widget.AutoCompleteTextView;
|
|
import androidx.annotation.DrawableRes;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresApi;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.appcompat.content.res.AppCompatResources;
|
|
import androidx.core.view.TintableBackgroundView;
|
|
import androidx.core.widget.TextViewCompat;
|
|
import androidx.core.widget.TintableCompoundDrawablesView;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class AppCompatAutoCompleteTextView extends AutoCompleteTextView implements TintableBackgroundView, EmojiCompatConfigurationView, TintableCompoundDrawablesView {
|
|
public static final int[] h = {R.attr.popupBackground};
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final AppCompatBackgroundHelper f217c;
|
|
public final AppCompatTextHelper f;
|
|
public final AppCompatEmojiEditTextHelper g;
|
|
|
|
@RequiresApi
|
|
@RestrictTo
|
|
/* loaded from: classes.dex */
|
|
public final class InspectionCompanion implements android.view.inspector.InspectionCompanion {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public int f218a;
|
|
public int b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public int f219c;
|
|
public int d;
|
|
|
|
public final void mapProperties(PropertyMapper propertyMapper) {
|
|
this.f218a = propertyMapper.mapObject("backgroundTint", androidx.appcompat.R.attr.backgroundTint);
|
|
this.b = propertyMapper.mapObject("backgroundTintMode", androidx.appcompat.R.attr.backgroundTintMode);
|
|
this.f219c = propertyMapper.mapObject("drawableTint", androidx.appcompat.R.attr.drawableTint);
|
|
this.d = propertyMapper.mapObject("drawableTintMode", androidx.appcompat.R.attr.drawableTintMode);
|
|
}
|
|
|
|
public final void readProperties(Object obj, PropertyReader propertyReader) {
|
|
AppCompatAutoCompleteTextView appCompatAutoCompleteTextView = (AppCompatAutoCompleteTextView) obj;
|
|
propertyReader.readObject(this.f218a, appCompatAutoCompleteTextView.getBackgroundTintList());
|
|
propertyReader.readObject(this.b, appCompatAutoCompleteTextView.getBackgroundTintMode());
|
|
propertyReader.readObject(this.f219c, appCompatAutoCompleteTextView.getCompoundDrawableTintList());
|
|
propertyReader.readObject(this.d, appCompatAutoCompleteTextView.getCompoundDrawableTintMode());
|
|
}
|
|
}
|
|
|
|
public AppCompatAutoCompleteTextView(Context context, AttributeSet attributeSet) {
|
|
this(context, attributeSet, androidx.appcompat.R.attr.autoCompleteTextViewStyle);
|
|
}
|
|
|
|
@Override // android.widget.TextView, android.view.View
|
|
public final void drawableStateChanged() {
|
|
super.drawableStateChanged();
|
|
AppCompatBackgroundHelper appCompatBackgroundHelper = this.f217c;
|
|
if (appCompatBackgroundHelper != null) {
|
|
appCompatBackgroundHelper.a();
|
|
}
|
|
AppCompatTextHelper appCompatTextHelper = this.f;
|
|
if (appCompatTextHelper != null) {
|
|
appCompatTextHelper.b();
|
|
}
|
|
}
|
|
|
|
@Override // android.widget.TextView
|
|
@Nullable
|
|
public ActionMode.Callback getCustomSelectionActionModeCallback() {
|
|
return TextViewCompat.g(super.getCustomSelectionActionModeCallback());
|
|
}
|
|
|
|
@Nullable
|
|
@RestrictTo
|
|
public ColorStateList getSupportBackgroundTintList() {
|
|
AppCompatBackgroundHelper appCompatBackgroundHelper = this.f217c;
|
|
if (appCompatBackgroundHelper != null) {
|
|
return appCompatBackgroundHelper.b();
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Nullable
|
|
@RestrictTo
|
|
public PorterDuff.Mode getSupportBackgroundTintMode() {
|
|
AppCompatBackgroundHelper appCompatBackgroundHelper = this.f217c;
|
|
if (appCompatBackgroundHelper != null) {
|
|
return appCompatBackgroundHelper.c();
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Nullable
|
|
@RestrictTo
|
|
public ColorStateList getSupportCompoundDrawablesTintList() {
|
|
return this.f.d();
|
|
}
|
|
|
|
@Nullable
|
|
@RestrictTo
|
|
public PorterDuff.Mode getSupportCompoundDrawablesTintMode() {
|
|
return this.f.e();
|
|
}
|
|
|
|
@Override // android.widget.TextView, android.view.View
|
|
public InputConnection onCreateInputConnection(EditorInfo editorInfo) {
|
|
InputConnection onCreateInputConnection = super.onCreateInputConnection(editorInfo);
|
|
AppCompatHintHelper.a(onCreateInputConnection, editorInfo, this);
|
|
return this.g.b.b(onCreateInputConnection, editorInfo);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setBackgroundDrawable(@Nullable Drawable drawable) {
|
|
super.setBackgroundDrawable(drawable);
|
|
AppCompatBackgroundHelper appCompatBackgroundHelper = this.f217c;
|
|
if (appCompatBackgroundHelper != null) {
|
|
appCompatBackgroundHelper.e();
|
|
}
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setBackgroundResource(@DrawableRes int i) {
|
|
super.setBackgroundResource(i);
|
|
AppCompatBackgroundHelper appCompatBackgroundHelper = this.f217c;
|
|
if (appCompatBackgroundHelper != null) {
|
|
appCompatBackgroundHelper.f(i);
|
|
}
|
|
}
|
|
|
|
@Override // android.widget.TextView
|
|
public final void setCompoundDrawables(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
|
|
super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4);
|
|
AppCompatTextHelper appCompatTextHelper = this.f;
|
|
if (appCompatTextHelper != null) {
|
|
appCompatTextHelper.b();
|
|
}
|
|
}
|
|
|
|
@Override // android.widget.TextView
|
|
public final void setCompoundDrawablesRelative(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
|
|
super.setCompoundDrawablesRelative(drawable, drawable2, drawable3, drawable4);
|
|
AppCompatTextHelper appCompatTextHelper = this.f;
|
|
if (appCompatTextHelper != null) {
|
|
appCompatTextHelper.b();
|
|
}
|
|
}
|
|
|
|
@Override // android.widget.TextView
|
|
public void setCustomSelectionActionModeCallback(@Nullable ActionMode.Callback callback) {
|
|
super.setCustomSelectionActionModeCallback(TextViewCompat.h(callback, this));
|
|
}
|
|
|
|
@Override // android.widget.AutoCompleteTextView
|
|
public void setDropDownBackgroundResource(@DrawableRes int i) {
|
|
setDropDownBackgroundDrawable(AppCompatResources.a(getContext(), i));
|
|
}
|
|
|
|
public void setEmojiCompatEnabled(boolean z) {
|
|
this.g.b.c(z);
|
|
}
|
|
|
|
@Override // android.widget.TextView
|
|
public void setKeyListener(@Nullable KeyListener keyListener) {
|
|
super.setKeyListener(this.g.a(keyListener));
|
|
}
|
|
|
|
@RestrictTo
|
|
public void setSupportBackgroundTintList(@Nullable ColorStateList colorStateList) {
|
|
AppCompatBackgroundHelper appCompatBackgroundHelper = this.f217c;
|
|
if (appCompatBackgroundHelper != null) {
|
|
appCompatBackgroundHelper.h(colorStateList);
|
|
}
|
|
}
|
|
|
|
@RestrictTo
|
|
public void setSupportBackgroundTintMode(@Nullable PorterDuff.Mode mode) {
|
|
AppCompatBackgroundHelper appCompatBackgroundHelper = this.f217c;
|
|
if (appCompatBackgroundHelper != null) {
|
|
appCompatBackgroundHelper.i(mode);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.core.widget.TintableCompoundDrawablesView
|
|
@RestrictTo
|
|
public void setSupportCompoundDrawablesTintList(@Nullable ColorStateList colorStateList) {
|
|
AppCompatTextHelper appCompatTextHelper = this.f;
|
|
appCompatTextHelper.k(colorStateList);
|
|
appCompatTextHelper.b();
|
|
}
|
|
|
|
@Override // androidx.core.widget.TintableCompoundDrawablesView
|
|
@RestrictTo
|
|
public void setSupportCompoundDrawablesTintMode(@Nullable PorterDuff.Mode mode) {
|
|
AppCompatTextHelper appCompatTextHelper = this.f;
|
|
appCompatTextHelper.l(mode);
|
|
appCompatTextHelper.b();
|
|
}
|
|
|
|
@Override // android.widget.TextView
|
|
public final void setTextAppearance(Context context, int i) {
|
|
super.setTextAppearance(context, i);
|
|
AppCompatTextHelper appCompatTextHelper = this.f;
|
|
if (appCompatTextHelper != null) {
|
|
appCompatTextHelper.g(context, i);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public AppCompatAutoCompleteTextView(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
TintContextWrapper.a(context);
|
|
ThemeUtils.a(getContext(), this);
|
|
TintTypedArray e = TintTypedArray.e(getContext(), attributeSet, h, i);
|
|
if (e.b.hasValue(0)) {
|
|
setDropDownBackgroundDrawable(e.b(0));
|
|
}
|
|
e.f();
|
|
AppCompatBackgroundHelper appCompatBackgroundHelper = new AppCompatBackgroundHelper(this);
|
|
this.f217c = appCompatBackgroundHelper;
|
|
appCompatBackgroundHelper.d(attributeSet, i);
|
|
AppCompatTextHelper appCompatTextHelper = new AppCompatTextHelper(this);
|
|
this.f = appCompatTextHelper;
|
|
appCompatTextHelper.f(attributeSet, i);
|
|
appCompatTextHelper.b();
|
|
AppCompatEmojiEditTextHelper appCompatEmojiEditTextHelper = new AppCompatEmojiEditTextHelper(this);
|
|
this.g = appCompatEmojiEditTextHelper;
|
|
appCompatEmojiEditTextHelper.b(attributeSet, i);
|
|
KeyListener keyListener = getKeyListener();
|
|
if (keyListener instanceof NumberKeyListener) {
|
|
return;
|
|
}
|
|
boolean isFocusable = super.isFocusable();
|
|
boolean isClickable = super.isClickable();
|
|
boolean isLongClickable = super.isLongClickable();
|
|
int inputType = super.getInputType();
|
|
KeyListener a2 = appCompatEmojiEditTextHelper.a(keyListener);
|
|
if (a2 == keyListener) {
|
|
return;
|
|
}
|
|
super.setKeyListener(a2);
|
|
super.setRawInputType(inputType);
|
|
super.setFocusable(isFocusable);
|
|
super.setClickable(isClickable);
|
|
super.setLongClickable(isLongClickable);
|
|
}
|
|
}
|