* 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>
389 lines
8.6 KiB
Smali
389 lines
8.6 KiB
Smali
.class public Landroidx/appcompat/view/StandaloneActionMode;
|
|
.super Landroidx/appcompat/view/ActionMode;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroidx/appcompat/view/menu/MenuBuilder$Callback;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public g:Landroid/content/Context;
|
|
|
|
.field public h:Landroidx/appcompat/widget/ActionBarContextView;
|
|
|
|
.field public i:Landroidx/appcompat/view/ActionMode$Callback;
|
|
|
|
.field public j:Ljava/lang/ref/WeakReference;
|
|
|
|
.field public k:Z
|
|
|
|
.field public l:Landroidx/appcompat/view/menu/MenuBuilder;
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Landroidx/appcompat/view/menu/MenuBuilder;Landroid/view/MenuItem;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-object p1, p0, Landroidx/appcompat/view/StandaloneActionMode;->i:Landroidx/appcompat/view/ActionMode$Callback;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-interface {p1, p0, p2}, Landroidx/appcompat/view/ActionMode$Callback;->c(Landroidx/appcompat/view/ActionMode;Landroid/view/MenuItem;)Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result p1
|
|
|
|
.line 7
|
|
return p1
|
|
.end method
|
|
|
|
.method public final b(Landroidx/appcompat/view/menu/MenuBuilder;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/appcompat/view/StandaloneActionMode;->i()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object p1, p0, Landroidx/appcompat/view/StandaloneActionMode;->h:Landroidx/appcompat/widget/ActionBarContextView;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p1}, Landroidx/appcompat/widget/ActionBarContextView;->i()Z
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->k:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 7
|
|
iput-boolean v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->k:Z
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->i:Landroidx/appcompat/view/ActionMode$Callback;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-interface {v0, p0}, Landroidx/appcompat/view/ActionMode$Callback;->a(Landroidx/appcompat/view/ActionMode;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
return-void
|
|
.end method
|
|
|
|
.method public final d()Landroid/view/View;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->j:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
.line 10
|
|
.line 11
|
|
return-object v0
|
|
|
|
.line 12
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 13
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final e()Landroidx/appcompat/view/menu/MenuBuilder;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->l:Landroidx/appcompat/view/menu/MenuBuilder;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final f()Landroid/view/MenuInflater;
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Landroidx/appcompat/view/SupportMenuInflater;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, p0, Landroidx/appcompat/view/StandaloneActionMode;->h:Landroidx/appcompat/widget/ActionBarContextView;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v1
|
|
|
|
.line 9
|
|
invoke-direct {v0, v1}, Landroidx/appcompat/view/SupportMenuInflater;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final g()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->h:Landroidx/appcompat/widget/ActionBarContextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionBarContextView;->getSubtitle()Ljava/lang/CharSequence;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final h()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->h:Landroidx/appcompat/widget/ActionBarContextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionBarContextView;->getTitle()Ljava/lang/CharSequence;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final i()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->i:Landroidx/appcompat/view/ActionMode$Callback;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, p0, Landroidx/appcompat/view/StandaloneActionMode;->l:Landroidx/appcompat/view/menu/MenuBuilder;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-interface {v0, p0, v1}, Landroidx/appcompat/view/ActionMode$Callback;->b(Landroidx/appcompat/view/ActionMode;Landroid/view/Menu;)Z
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public final j()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->h:Landroidx/appcompat/widget/ActionBarContextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-boolean v0, v0, Landroidx/appcompat/widget/ActionBarContextView;->w:Z
|
|
|
|
.line 4
|
|
.line 5
|
|
return v0
|
|
.end method
|
|
|
|
.method public final k(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->h:Landroidx/appcompat/widget/ActionBarContextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/ActionBarContextView;->setCustomView(Landroid/view/View;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
goto :goto_0
|
|
|
|
.line 14
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 15
|
|
:goto_0
|
|
iput-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->j:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 16
|
|
.line 17
|
|
return-void
|
|
.end method
|
|
|
|
.method public final l(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->g:Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object p1
|
|
|
|
.line 7
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/view/StandaloneActionMode;->m(Ljava/lang/CharSequence;)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
return-void
|
|
.end method
|
|
|
|
.method public final m(Ljava/lang/CharSequence;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->h:Landroidx/appcompat/widget/ActionBarContextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/ActionBarContextView;->setSubtitle(Ljava/lang/CharSequence;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final n(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->g:Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object p1
|
|
|
|
.line 7
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/view/StandaloneActionMode;->o(Ljava/lang/CharSequence;)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
return-void
|
|
.end method
|
|
|
|
.method public final o(Ljava/lang/CharSequence;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->h:Landroidx/appcompat/widget/ActionBarContextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/ActionBarContextView;->setTitle(Ljava/lang/CharSequence;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final p(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Landroidx/appcompat/view/ActionMode;->f:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v0, p0, Landroidx/appcompat/view/StandaloneActionMode;->h:Landroidx/appcompat/widget/ActionBarContextView;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/ActionBarContextView;->setTitleOptional(Z)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|