* 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>
293 lines
6.5 KiB
Smali
293 lines
6.5 KiB
Smali
.class public Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment;
|
|
.super Landroidx/appcompat/app/AppCompatDialogFragment;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/material/bottomsheet/BottomSheetDialogFragment$BottomSheetDismissCallback;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroidx/appcompat/app/AppCompatDialogFragment;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final dismiss()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getDialog()Landroid/app/Dialog;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
instance-of v1, v0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
check-cast v0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->f()Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v0
|
|
|
|
.line 15
|
|
iget-boolean v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->M:Z
|
|
|
|
.line 16
|
|
.line 17
|
|
:cond_0
|
|
invoke-super {p0}, Landroidx/fragment/app/DialogFragment;->dismiss()V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
return-void
|
|
.end method
|
|
|
|
.method public final dismissAllowingStateLoss()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getDialog()Landroid/app/Dialog;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
instance-of v1, v0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
check-cast v0, Lcom/google/android/material/bottomsheet/BottomSheetDialog;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0}, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->f()Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v0
|
|
|
|
.line 15
|
|
iget-boolean v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->M:Z
|
|
|
|
.line 16
|
|
.line 17
|
|
:cond_0
|
|
invoke-super {p0}, Landroidx/fragment/app/DialogFragment;->dismissAllowingStateLoss()V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog;
|
|
.locals 5
|
|
|
|
.line 1
|
|
new-instance p1, Lcom/google/android/material/bottomsheet/BottomSheetDialog;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getTheme()I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v1
|
|
|
|
.line 11
|
|
const/4 v2, 0x1
|
|
|
|
.line 12
|
|
if-nez v1, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
new-instance v1, Landroid/util/TypedValue;
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-direct {v1}, Landroid/util/TypedValue;-><init>()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {v0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result-object v3
|
|
|
|
.line 23
|
|
sget v4, Lcom/google/android/material/R$attr;->bottomSheetDialogTheme:I
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {v3, v4, v1, v2}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result v3
|
|
|
|
.line 29
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 30
|
|
.line 31
|
|
iget v1, v1, Landroid/util/TypedValue;->resourceId:I
|
|
|
|
.line 32
|
|
.line 33
|
|
goto :goto_0
|
|
|
|
.line 34
|
|
:cond_0
|
|
sget v1, Lcom/google/android/material/R$style;->Theme_Design_Light_BottomSheetDialog:I
|
|
|
|
.line 35
|
|
.line 36
|
|
:cond_1
|
|
:goto_0
|
|
invoke-direct {p1, v0, v1}, Landroidx/appcompat/app/AppCompatDialog;-><init>(Landroid/content/Context;I)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
iput-boolean v2, p1, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->n:Z
|
|
|
|
.line 40
|
|
.line 41
|
|
iput-boolean v2, p1, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->o:Z
|
|
|
|
.line 42
|
|
.line 43
|
|
new-instance v0, Lcom/google/android/material/bottomsheet/BottomSheetDialog$5;
|
|
|
|
.line 44
|
|
.line 45
|
|
invoke-direct {v0, p1}, Lcom/google/android/material/bottomsheet/BottomSheetDialog$5;-><init>(Lcom/google/android/material/bottomsheet/BottomSheetDialog;)V
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
iput-object v0, p1, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->t:Lcom/google/android/material/bottomsheet/BottomSheetBehavior$BottomSheetCallback;
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {p1}, Landroidx/appcompat/app/AppCompatDialog;->c()Landroidx/appcompat/app/AppCompatDelegate;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result-object v0
|
|
|
|
.line 54
|
|
invoke-virtual {v0, v2}, Landroidx/appcompat/app/AppCompatDelegate;->y(I)Z
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
invoke-virtual {p1}, Landroid/app/Dialog;->getContext()Landroid/content/Context;
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
move-result-object v0
|
|
|
|
.line 61
|
|
invoke-virtual {v0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
move-result-object v0
|
|
|
|
.line 65
|
|
sget v1, Lcom/google/android/material/R$attr;->enableEdgeToEdge:I
|
|
|
|
.line 66
|
|
.line 67
|
|
filled-new-array {v1}, [I
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
move-result-object v1
|
|
|
|
.line 71
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
move-result-object v0
|
|
|
|
.line 75
|
|
const/4 v1, 0x0
|
|
|
|
.line 76
|
|
invoke-virtual {v0, v1, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
move-result v1
|
|
|
|
.line 80
|
|
iput-boolean v1, p1, Lcom/google/android/material/bottomsheet/BottomSheetDialog;->r:Z
|
|
|
|
.line 81
|
|
.line 82
|
|
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
return-object p1
|
|
.end method
|