* 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>
432 lines
9.3 KiB
Smali
432 lines
9.3 KiB
Smali
.class public Landroidx/appcompat/widget/ActivityChooserView;
|
|
.super Landroid/view/ViewGroup;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroidx/appcompat/widget/ActivityChooserModel$ActivityChooserModelClient;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/appcompat/widget/ActivityChooserView$ActivityChooserViewAdapter;,
|
|
Landroidx/appcompat/widget/ActivityChooserView$Callbacks;,
|
|
Landroidx/appcompat/widget/ActivityChooserView$InnerLayout;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public c:Landroidx/core/view/ActionProvider;
|
|
|
|
.field public final f:Landroid/database/DataSetObserver;
|
|
|
|
.field public final g:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
|
|
|
|
.field public h:Landroidx/appcompat/widget/ListPopupWindow;
|
|
|
|
.field public i:Landroid/widget/PopupWindow$OnDismissListener;
|
|
|
|
.field public j:Z
|
|
|
|
.field public k:I
|
|
|
|
.field public l:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
const/4 v1, 0x0
|
|
|
|
.line 3
|
|
invoke-direct {p0, v1, v1, v0}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
new-instance v0, Landroidx/appcompat/widget/ActivityChooserView$1;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-direct {v0, p0}, Landroidx/appcompat/widget/ActivityChooserView$1;-><init>(Landroidx/appcompat/widget/ActivityChooserView;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
iput-object v0, p0, Landroidx/appcompat/widget/ActivityChooserView;->f:Landroid/database/DataSetObserver;
|
|
|
|
.line 12
|
|
.line 13
|
|
new-instance v0, Landroidx/appcompat/widget/ActivityChooserView$2;
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-direct {v0, p0}, Landroidx/appcompat/widget/ActivityChooserView$2;-><init>(Landroidx/appcompat/widget/ActivityChooserView;)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
iput-object v0, p0, Landroidx/appcompat/widget/ActivityChooserView;->g:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
|
|
|
|
.line 19
|
|
.line 20
|
|
const/4 v0, 0x4
|
|
|
|
.line 21
|
|
iput v0, p0, Landroidx/appcompat/widget/ActivityChooserView;->k:I
|
|
|
|
.line 22
|
|
.line 23
|
|
throw v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/ActivityChooserView;->b()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/ActivityChooserView;->getListPopupWindow()Landroidx/appcompat/widget/ListPopupWindow;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ListPopupWindow;->dismiss()V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {p0}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
invoke-virtual {v0}, Landroid/view/ViewTreeObserver;->isAlive()Z
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v1
|
|
|
|
.line 22
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 23
|
|
.line 24
|
|
iget-object v1, p0, Landroidx/appcompat/widget/ActivityChooserView;->g:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->removeGlobalOnLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/ActivityChooserView;->getListPopupWindow()Landroidx/appcompat/widget/ListPopupWindow;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
iget-object v0, v0, Landroidx/appcompat/widget/ListPopupWindow;->D:Landroid/widget/PopupWindow;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v0
|
|
|
|
.line 11
|
|
return v0
|
|
.end method
|
|
|
|
.method public final c(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
throw p1
|
|
.end method
|
|
|
|
.method public getDataModel()Landroidx/appcompat/widget/ActivityChooserModel;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
throw v0
|
|
.end method
|
|
|
|
.method public getListPopupWindow()Landroidx/appcompat/widget/ListPopupWindow;
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActivityChooserView;->h:Landroidx/appcompat/widget/ListPopupWindow;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
new-instance v0, Landroidx/appcompat/widget/ListPopupWindow;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-direct {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
iput-object v0, p0, Landroidx/appcompat/widget/ActivityChooserView;->h:Landroidx/appcompat/widget/ListPopupWindow;
|
|
|
|
.line 15
|
|
.line 16
|
|
const/4 v1, 0x0
|
|
|
|
.line 17
|
|
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/ListPopupWindow;->p(Landroid/widget/ListAdapter;)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActivityChooserView;->h:Landroidx/appcompat/widget/ListPopupWindow;
|
|
|
|
.line 21
|
|
.line 22
|
|
iput-object p0, v0, Landroidx/appcompat/widget/ListPopupWindow;->s:Landroid/view/View;
|
|
|
|
.line 23
|
|
.line 24
|
|
const/4 v1, 0x1
|
|
|
|
.line 25
|
|
iput-boolean v1, v0, Landroidx/appcompat/widget/ListPopupWindow;->C:Z
|
|
|
|
.line 26
|
|
.line 27
|
|
iget-object v0, v0, Landroidx/appcompat/widget/ListPopupWindow;->D:Landroid/widget/PopupWindow;
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setFocusable(Z)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActivityChooserView;->h:Landroidx/appcompat/widget/ListPopupWindow;
|
|
|
|
.line 33
|
|
.line 34
|
|
const/4 v1, 0x0
|
|
|
|
.line 35
|
|
iput-object v1, v0, Landroidx/appcompat/widget/ListPopupWindow;->t:Landroid/widget/AdapterView$OnItemClickListener;
|
|
|
|
.line 36
|
|
.line 37
|
|
iget-object v0, v0, Landroidx/appcompat/widget/ListPopupWindow;->D:Landroid/widget/PopupWindow;
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setOnDismissListener(Landroid/widget/PopupWindow$OnDismissListener;)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ActivityChooserView;->h:Landroidx/appcompat/widget/ListPopupWindow;
|
|
|
|
.line 43
|
|
.line 44
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final onAttachedToWindow()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onAttachedToWindow()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const/4 v0, 0x0
|
|
|
|
.line 5
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final onDetachedFromWindow()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const/4 v0, 0x0
|
|
|
|
.line 5
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final onLayout(ZIIII)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final onMeasure(II)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setActivityChooserModel(Landroidx/appcompat/widget/ActivityChooserModel;)V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setDefaultActionButtonContentDescription(I)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setExpandActivityOverflowButtonContentDescription(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
const/4 p1, 0x0
|
|
|
|
.line 9
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setExpandActivityOverflowButtonDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setInitialActivityCount(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Landroidx/appcompat/widget/ActivityChooserView;->k:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnDismissListener(Landroid/widget/PopupWindow$OnDismissListener;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/appcompat/widget/ActivityChooserView;->i:Landroid/widget/PopupWindow$OnDismissListener;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProvider(Landroidx/core/view/ActionProvider;)V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/appcompat/widget/ActivityChooserView;->c:Landroidx/core/view/ActionProvider;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|