* 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>
430 lines
9.2 KiB
Smali
430 lines
9.2 KiB
Smali
.class Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroidx/appcompat/widget/AppCompatSpinner$SpinnerPopup;
|
|
.implements Landroid/content/DialogInterface$OnClickListener;
|
|
|
|
|
|
# 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 = "DialogPopup"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public c:Landroidx/appcompat/app/AlertDialog;
|
|
|
|
.field public f:Landroid/widget/ListAdapter;
|
|
|
|
.field public g:Ljava/lang/CharSequence;
|
|
|
|
.field public final synthetic h:Landroidx/appcompat/widget/AppCompatSpinner;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/appcompat/widget/AppCompatSpinner;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->h:Landroidx/appcompat/widget/AppCompatSpinner;
|
|
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->c:Landroidx/appcompat/app/AlertDialog;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v0
|
|
|
|
.line 9
|
|
return v0
|
|
|
|
.line 10
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 11
|
|
return v0
|
|
.end method
|
|
|
|
.method public final c()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final dismiss()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->c:Landroidx/appcompat/app/AlertDialog;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0}, Landroidx/appcompat/app/AppCompatDialog;->dismiss()V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->c:Landroidx/appcompat/app/AlertDialog;
|
|
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final e(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string p1, "AppCompatSpinner"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v0, "Cannot set horizontal offset for MODE_DIALOG, ignoring"
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public final f()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->g:Ljava/lang/CharSequence;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final h()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
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$DialogPopup;->g:Ljava/lang/CharSequence;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public final k(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string p1, "AppCompatSpinner"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v0, "Cannot set popup background for MODE_DIALOG, ignoring"
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public final l(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string p1, "AppCompatSpinner"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v0, "Cannot set vertical offset for MODE_DIALOG, ignoring"
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public final m(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string p1, "AppCompatSpinner"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v0, "Cannot set horizontal (original) offset for MODE_DIALOG, ignoring"
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public final n(II)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->f:Landroid/widget/ListAdapter;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_0
|
|
new-instance v0, Landroidx/appcompat/app/AlertDialog$Builder;
|
|
|
|
.line 7
|
|
.line 8
|
|
iget-object v1, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->h:Landroidx/appcompat/widget/AppCompatSpinner;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v1}, Landroidx/appcompat/widget/AppCompatSpinner;->getPopupContext()Landroid/content/Context;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v2
|
|
|
|
.line 14
|
|
invoke-direct {v0, v2}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
iget-object v2, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->g:Ljava/lang/CharSequence;
|
|
|
|
.line 18
|
|
.line 19
|
|
iget-object v3, v0, Landroidx/appcompat/app/AlertDialog$Builder;->a:Landroidx/appcompat/app/AlertController$AlertParams;
|
|
|
|
.line 20
|
|
.line 21
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 22
|
|
.line 23
|
|
iput-object v2, v3, Landroidx/appcompat/app/AlertController$AlertParams;->d:Ljava/lang/CharSequence;
|
|
|
|
.line 24
|
|
.line 25
|
|
:cond_1
|
|
iget-object v2, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->f:Landroid/widget/ListAdapter;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {v1}, Landroid/widget/AdapterView;->getSelectedItemPosition()I
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result v1
|
|
|
|
.line 31
|
|
iput-object v2, v3, Landroidx/appcompat/app/AlertController$AlertParams;->i:Landroid/widget/ListAdapter;
|
|
|
|
.line 32
|
|
.line 33
|
|
iput-object p0, v3, Landroidx/appcompat/app/AlertController$AlertParams;->j:Landroid/content/DialogInterface$OnClickListener;
|
|
|
|
.line 34
|
|
.line 35
|
|
iput v1, v3, Landroidx/appcompat/app/AlertController$AlertParams;->m:I
|
|
|
|
.line 36
|
|
.line 37
|
|
const/4 v1, 0x1
|
|
|
|
.line 38
|
|
iput-boolean v1, v3, Landroidx/appcompat/app/AlertController$AlertParams;->l:Z
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {v0}, Landroidx/appcompat/app/AlertDialog$Builder;->a()Landroidx/appcompat/app/AlertDialog;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result-object v0
|
|
|
|
.line 44
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->c:Landroidx/appcompat/app/AlertDialog;
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-virtual {v0}, Landroidx/appcompat/app/AlertDialog;->e()Landroidx/appcompat/app/AlertController$RecycleListView;
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result-object v0
|
|
|
|
.line 50
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setTextDirection(I)V
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
invoke-virtual {v0, p2}, Landroid/view/View;->setTextAlignment(I)V
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->c:Landroidx/appcompat/app/AlertDialog;
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {p1}, Landroid/app/Dialog;->show()V
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
return-void
|
|
.end method
|
|
|
|
.method public final o()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final onClick(Landroid/content/DialogInterface;I)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->h:Landroidx/appcompat/widget/AppCompatSpinner;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p1, p2}, Landroid/widget/AdapterView;->setSelection(I)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p1}, Landroid/widget/AdapterView;->getOnItemClickListener()Landroid/widget/AdapterView$OnItemClickListener;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v0
|
|
|
|
.line 10
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->f:Landroid/widget/ListAdapter;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-interface {v0, p2}, Landroid/widget/Adapter;->getItemId(I)J
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-wide v0
|
|
|
|
.line 18
|
|
const/4 v2, 0x0
|
|
|
|
.line 19
|
|
invoke-virtual {p1, v2, p2, v0, v1}, Landroid/widget/AdapterView;->performItemClick(Landroid/view/View;IJ)Z
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->dismiss()V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
return-void
|
|
.end method
|
|
|
|
.method public final p(Landroid/widget/ListAdapter;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatSpinner$DialogPopup;->f:Landroid/widget/ListAdapter;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|