* 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>
360 lines
7.4 KiB
Smali
360 lines
7.4 KiB
Smali
.class public Lcom/google/android/material/internal/CheckableImageButton;
|
|
.super Landroidx/appcompat/widget/AppCompatImageButton;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/widget/Checkable;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/material/internal/CheckableImageButton$SavedState;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final k:[I
|
|
|
|
|
|
# instance fields
|
|
.field public h:Z
|
|
|
|
.field public i:Z
|
|
|
|
.field public j:Z
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const v0, 0x10100a0
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
filled-new-array {v0}, [I
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v0
|
|
|
|
.line 8
|
|
sput-object v0, Lcom/google/android/material/internal/CheckableImageButton;->k:[I
|
|
|
|
.line 9
|
|
.line 10
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget v0, Landroidx/appcompat/R$attr;->imageButtonStyle:I
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/appcompat/widget/AppCompatImageButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const/4 p1, 0x1
|
|
|
|
.line 7
|
|
iput-boolean p1, p0, Lcom/google/android/material/internal/CheckableImageButton;->i:Z
|
|
|
|
.line 8
|
|
.line 9
|
|
iput-boolean p1, p0, Lcom/google/android/material/internal/CheckableImageButton;->j:Z
|
|
|
|
.line 10
|
|
.line 11
|
|
new-instance p1, Lcom/google/android/material/internal/CheckableImageButton$1;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-direct {p1, p0}, Lcom/google/android/material/internal/CheckableImageButton$1;-><init>(Lcom/google/android/material/internal/CheckableImageButton;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
invoke-static {p0, p1}, Landroidx/core/view/ViewCompat;->z(Landroid/view/View;Landroidx/core/view/AccessibilityDelegateCompat;)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final isChecked()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/internal/CheckableImageButton;->h:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final onCreateDrawableState(I)[I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/internal/CheckableImageButton;->h:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->onCreateDrawableState(I)[I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
sget-object v0, Lcom/google/android/material/internal/CheckableImageButton;->k:[I
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {p1, v0}, Landroid/view/View;->mergeDrawableStates([I[I)[I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object p1
|
|
|
|
.line 17
|
|
return-object p1
|
|
|
|
.line 18
|
|
:cond_0
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->onCreateDrawableState(I)[I
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object p1
|
|
|
|
.line 22
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
instance-of v0, p1, Lcom/google/android/material/internal/CheckableImageButton$SavedState;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
|
|
.line 9
|
|
:cond_0
|
|
check-cast p1, Lcom/google/android/material/internal/CheckableImageButton$SavedState;
|
|
|
|
.line 10
|
|
.line 11
|
|
iget-object v0, p1, Landroidx/customview/view/AbsSavedState;->c:Landroid/os/Parcelable;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-super {p0, v0}, Landroid/widget/ImageButton;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
iget-boolean p1, p1, Lcom/google/android/material/internal/CheckableImageButton$SavedState;->g:Z
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/internal/CheckableImageButton;->setChecked(Z)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onSaveInstanceState()Landroid/os/Parcelable;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/ImageButton;->onSaveInstanceState()Landroid/os/Parcelable;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
new-instance v1, Lcom/google/android/material/internal/CheckableImageButton$SavedState;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-direct {v1, v0}, Landroidx/customview/view/AbsSavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
iget-boolean v0, p0, Lcom/google/android/material/internal/CheckableImageButton;->h:Z
|
|
|
|
.line 11
|
|
.line 12
|
|
iput-boolean v0, v1, Lcom/google/android/material/internal/CheckableImageButton$SavedState;->g:Z
|
|
|
|
.line 13
|
|
.line 14
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public setCheckable(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/internal/CheckableImageButton;->i:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-boolean p1, p0, Lcom/google/android/material/internal/CheckableImageButton;->i:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 p1, 0x0
|
|
|
|
.line 8
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->sendAccessibilityEvent(I)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setChecked(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/internal/CheckableImageButton;->i:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-boolean v0, p0, Lcom/google/android/material/internal/CheckableImageButton;->h:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
iput-boolean p1, p0, Lcom/google/android/material/internal/CheckableImageButton;->h:Z
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p0}, Landroid/view/View;->refreshDrawableState()V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
const/16 p1, 0x800
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->sendAccessibilityEvent(I)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPressable(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/material/internal/CheckableImageButton;->j:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPressed(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/internal/CheckableImageButton;->j:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setPressed(Z)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final toggle()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/internal/CheckableImageButton;->h:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/internal/CheckableImageButton;->setChecked(Z)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|