* 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>
626 lines
13 KiB
Smali
626 lines
13 KiB
Smali
.class Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;
|
|
.super Landroidx/appcompat/widget/ListPopupWindow;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/appcompat/widget/AppCompatSpinner;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = "DropdownPopup"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public H:Ljava/lang/CharSequence;
|
|
|
|
.field public I:Landroid/widget/ListAdapter;
|
|
|
|
.field public final J:Landroid/graphics/Rect;
|
|
|
|
.field public K:I
|
|
|
|
.field public final synthetic L:Landroidx/appcompat/widget/AppCompatSpinner;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/appcompat/widget/AppCompatSpinner;Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->L:Landroidx/appcompat/widget/AppCompatSpinner;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v0, 0x0
|
|
|
|
.line 4
|
|
invoke-direct {p0, p2, p3, p4, v0}, Landroidx/appcompat/widget/ListPopupWindow;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
new-instance p2, Landroid/graphics/Rect;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-direct {p2}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
iput-object p2, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->J:Landroid/graphics/Rect;
|
|
|
|
.line 13
|
|
.line 14
|
|
iput-object p1, p0, Landroidx/appcompat/widget/ListPopupWindow;->s:Landroid/view/View;
|
|
|
|
.line 15
|
|
.line 16
|
|
const/4 p1, 0x1
|
|
|
|
.line 17
|
|
iput-boolean p1, p0, Landroidx/appcompat/widget/ListPopupWindow;->C:Z
|
|
|
|
.line 18
|
|
.line 19
|
|
iget-object p2, p0, Landroidx/appcompat/widget/ListPopupWindow;->D:Landroid/widget/PopupWindow;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-virtual {p2, p1}, Landroid/widget/PopupWindow;->setFocusable(Z)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
new-instance p1, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup$1;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-direct {p1, p0}, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup$1;-><init>(Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
iput-object p1, p0, Landroidx/appcompat/widget/ListPopupWindow;->t:Landroid/widget/AdapterView$OnItemClickListener;
|
|
|
|
.line 30
|
|
.line 31
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final f()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->H:Ljava/lang/CharSequence;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final j(Ljava/lang/CharSequence;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->H:Ljava/lang/CharSequence;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public final m(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->K:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public final n(II)V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ListPopupWindow;->D:Landroid/widget/PopupWindow;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v1
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->s()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
const/4 v2, 0x2
|
|
|
|
.line 11
|
|
invoke-virtual {v0, v2}, Landroid/widget/PopupWindow;->setInputMethodMode(I)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/ListPopupWindow;->b()V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
iget-object v2, p0, Landroidx/appcompat/widget/ListPopupWindow;->g:Landroidx/appcompat/widget/DropDownListView;
|
|
|
|
.line 18
|
|
.line 19
|
|
const/4 v3, 0x1
|
|
|
|
.line 20
|
|
invoke-virtual {v2, v3}, Landroid/widget/AbsListView;->setChoiceMode(I)V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v2, p1}, Landroid/view/View;->setTextDirection(I)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v2, p2}, Landroid/view/View;->setTextAlignment(I)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->L:Landroidx/appcompat/widget/AppCompatSpinner;
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-virtual {p1}, Landroid/widget/AdapterView;->getSelectedItemPosition()I
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result p2
|
|
|
|
.line 35
|
|
iget-object v2, p0, Landroidx/appcompat/widget/ListPopupWindow;->g:Landroidx/appcompat/widget/DropDownListView;
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result v4
|
|
|
|
.line 41
|
|
if-eqz v4, :cond_0
|
|
|
|
.line 42
|
|
.line 43
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 44
|
|
.line 45
|
|
const/4 v4, 0x0
|
|
|
|
.line 46
|
|
invoke-virtual {v2, v4}, Landroidx/appcompat/widget/DropDownListView;->setListSelectionHidden(Z)V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
invoke-virtual {v2, p2}, Landroid/widget/AdapterView;->setSelection(I)V
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
invoke-virtual {v2}, Landroid/widget/AbsListView;->getChoiceMode()I
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
move-result v4
|
|
|
|
.line 56
|
|
if-eqz v4, :cond_0
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {v2, p2, v3}, Landroid/widget/AbsListView;->setItemChecked(IZ)V
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
:cond_0
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 62
|
|
.line 63
|
|
goto :goto_0
|
|
|
|
.line 64
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
move-result-object p1
|
|
|
|
.line 68
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 69
|
|
.line 70
|
|
new-instance p2, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup$2;
|
|
|
|
.line 71
|
|
.line 72
|
|
invoke-direct {p2, p0}, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup$2;-><init>(Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;)V
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
invoke-virtual {p1, p2}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
|
|
|
|
.line 76
|
|
.line 77
|
|
.line 78
|
|
new-instance p1, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup$3;
|
|
|
|
.line 79
|
|
.line 80
|
|
invoke-direct {p1, p0, p2}, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup$3;-><init>(Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
invoke-virtual {v0, p1}, Landroid/widget/PopupWindow;->setOnDismissListener(Landroid/widget/PopupWindow$OnDismissListener;)V
|
|
|
|
.line 84
|
|
.line 85
|
|
.line 86
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final p(Landroid/widget/ListAdapter;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/ListPopupWindow;->p(Landroid/widget/ListAdapter;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->I:Landroid/widget/ListAdapter;
|
|
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final s()V
|
|
.locals 10
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->L:Landroidx/appcompat/widget/AppCompatSpinner;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, v0, Landroidx/appcompat/widget/AppCompatSpinner;->l:Landroid/graphics/Rect;
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v2, p0, Landroidx/appcompat/widget/ListPopupWindow;->D:Landroid/widget/PopupWindow;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v2}, Landroid/widget/PopupWindow;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v3
|
|
|
|
.line 11
|
|
const/4 v4, 0x1
|
|
|
|
.line 12
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v3, v1}, Landroid/graphics/drawable/Drawable;->getPadding(Landroid/graphics/Rect;)Z
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
sget-boolean v3, Landroidx/appcompat/widget/ViewUtils;->a:Z
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutDirection()I
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result v3
|
|
|
|
.line 23
|
|
if-ne v3, v4, :cond_0
|
|
|
|
.line 24
|
|
.line 25
|
|
iget v3, v1, Landroid/graphics/Rect;->right:I
|
|
|
|
.line 26
|
|
.line 27
|
|
goto :goto_0
|
|
|
|
.line 28
|
|
:cond_0
|
|
iget v3, v1, Landroid/graphics/Rect;->left:I
|
|
|
|
.line 29
|
|
.line 30
|
|
neg-int v3, v3
|
|
|
|
.line 31
|
|
goto :goto_0
|
|
|
|
.line 32
|
|
:cond_1
|
|
const/4 v3, 0x0
|
|
|
|
.line 33
|
|
iput v3, v1, Landroid/graphics/Rect;->right:I
|
|
|
|
.line 34
|
|
.line 35
|
|
iput v3, v1, Landroid/graphics/Rect;->left:I
|
|
|
|
.line 36
|
|
.line 37
|
|
:goto_0
|
|
invoke-virtual {v0}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result v5
|
|
|
|
.line 41
|
|
invoke-virtual {v0}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result v6
|
|
|
|
.line 45
|
|
invoke-virtual {v0}, Landroid/view/View;->getWidth()I
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
move-result v7
|
|
|
|
.line 49
|
|
iget v8, v0, Landroidx/appcompat/widget/AppCompatSpinner;->k:I
|
|
|
|
.line 50
|
|
.line 51
|
|
const/4 v9, -0x2
|
|
|
|
.line 52
|
|
if-ne v8, v9, :cond_3
|
|
|
|
.line 53
|
|
.line 54
|
|
iget-object v8, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->I:Landroid/widget/ListAdapter;
|
|
|
|
.line 55
|
|
.line 56
|
|
check-cast v8, Landroid/widget/SpinnerAdapter;
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {v2}, Landroid/widget/PopupWindow;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result-object v2
|
|
|
|
.line 62
|
|
invoke-virtual {v0, v8, v2}, Landroidx/appcompat/widget/AppCompatSpinner;->a(Landroid/widget/SpinnerAdapter;Landroid/graphics/drawable/Drawable;)I
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
move-result v2
|
|
|
|
.line 66
|
|
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result-object v8
|
|
|
|
.line 70
|
|
invoke-virtual {v8}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 71
|
|
.line 72
|
|
.line 73
|
|
move-result-object v8
|
|
|
|
.line 74
|
|
invoke-virtual {v8}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
move-result-object v8
|
|
|
|
.line 78
|
|
iget v8, v8, Landroid/util/DisplayMetrics;->widthPixels:I
|
|
|
|
.line 79
|
|
.line 80
|
|
iget v9, v1, Landroid/graphics/Rect;->left:I
|
|
|
|
.line 81
|
|
.line 82
|
|
sub-int/2addr v8, v9
|
|
|
|
.line 83
|
|
iget v1, v1, Landroid/graphics/Rect;->right:I
|
|
|
|
.line 84
|
|
.line 85
|
|
sub-int/2addr v8, v1
|
|
|
|
.line 86
|
|
if-le v2, v8, :cond_2
|
|
|
|
.line 87
|
|
.line 88
|
|
move v2, v8
|
|
|
|
.line 89
|
|
:cond_2
|
|
sub-int v1, v7, v5
|
|
|
|
.line 90
|
|
.line 91
|
|
sub-int/2addr v1, v6
|
|
|
|
.line 92
|
|
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
.line 93
|
|
.line 94
|
|
.line 95
|
|
move-result v1
|
|
|
|
.line 96
|
|
invoke-virtual {p0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->r(I)V
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
goto :goto_1
|
|
|
|
.line 100
|
|
:cond_3
|
|
const/4 v1, -0x1
|
|
|
|
.line 101
|
|
if-ne v8, v1, :cond_4
|
|
|
|
.line 102
|
|
.line 103
|
|
sub-int v1, v7, v5
|
|
|
|
.line 104
|
|
.line 105
|
|
sub-int/2addr v1, v6
|
|
|
|
.line 106
|
|
invoke-virtual {p0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->r(I)V
|
|
|
|
.line 107
|
|
.line 108
|
|
.line 109
|
|
goto :goto_1
|
|
|
|
.line 110
|
|
:cond_4
|
|
invoke-virtual {p0, v8}, Landroidx/appcompat/widget/ListPopupWindow;->r(I)V
|
|
|
|
.line 111
|
|
.line 112
|
|
.line 113
|
|
:goto_1
|
|
sget-boolean v1, Landroidx/appcompat/widget/ViewUtils;->a:Z
|
|
|
|
.line 114
|
|
.line 115
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutDirection()I
|
|
|
|
.line 116
|
|
.line 117
|
|
.line 118
|
|
move-result v0
|
|
|
|
.line 119
|
|
if-ne v0, v4, :cond_5
|
|
|
|
.line 120
|
|
.line 121
|
|
sub-int/2addr v7, v6
|
|
|
|
.line 122
|
|
iget v0, p0, Landroidx/appcompat/widget/ListPopupWindow;->i:I
|
|
|
|
.line 123
|
|
.line 124
|
|
sub-int/2addr v7, v0
|
|
|
|
.line 125
|
|
iget v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->K:I
|
|
|
|
.line 126
|
|
.line 127
|
|
sub-int/2addr v7, v0
|
|
|
|
.line 128
|
|
add-int/2addr v7, v3
|
|
|
|
.line 129
|
|
goto :goto_2
|
|
|
|
.line 130
|
|
:cond_5
|
|
iget v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DropdownPopup;->K:I
|
|
|
|
.line 131
|
|
.line 132
|
|
add-int/2addr v5, v0
|
|
|
|
.line 133
|
|
add-int v7, v5, v3
|
|
|
|
.line 134
|
|
.line 135
|
|
:goto_2
|
|
iput v7, p0, Landroidx/appcompat/widget/ListPopupWindow;->j:I
|
|
|
|
.line 136
|
|
.line 137
|
|
return-void
|
|
.end method
|