* 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>
457 lines
11 KiB
Smali
457 lines
11 KiB
Smali
.class public Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;
|
|
.super Landroidx/appcompat/widget/AppCompatImageView;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/accessibility/AccessibilityManager$AccessibilityStateChangeListener;
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic l:I
|
|
|
|
|
|
# instance fields
|
|
.field public h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.field public i:Z
|
|
|
|
.field public j:Z
|
|
|
|
.field public k:Z
|
|
|
|
|
|
# direct methods
|
|
.method private setBottomSheetBehavior(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
|
|
.locals 5
|
|
.param p1 # Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/android/material/bottomsheet/BottomSheetBehavior<",
|
|
"*>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->e0:Ljava/util/ArrayList;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->J(Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
iget-object v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.line 17
|
|
.line 18
|
|
iput-object v1, v0, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->c0:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 19
|
|
.line 20
|
|
:cond_0
|
|
iput-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.line 21
|
|
.line 22
|
|
const/4 v0, 0x0
|
|
|
|
.line 23
|
|
const/4 v2, 0x1
|
|
|
|
.line 24
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {p1, p0}, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->J(Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
new-instance v3, Ljava/lang/ref/WeakReference;
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-direct {v3, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
iput-object v3, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->c0:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 40
|
|
.line 41
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.line 42
|
|
.line 43
|
|
iget p1, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->R:I
|
|
|
|
.line 44
|
|
.line 45
|
|
const/4 v3, 0x4
|
|
|
|
.line 46
|
|
if-ne p1, v3, :cond_1
|
|
|
|
.line 47
|
|
.line 48
|
|
iput-boolean v2, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->i:Z
|
|
|
|
.line 49
|
|
.line 50
|
|
goto :goto_0
|
|
|
|
.line 51
|
|
:cond_1
|
|
const/4 v3, 0x3
|
|
|
|
.line 52
|
|
if-ne p1, v3, :cond_2
|
|
|
|
.line 53
|
|
.line 54
|
|
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->i:Z
|
|
|
|
.line 55
|
|
.line 56
|
|
:cond_2
|
|
:goto_0
|
|
sget-object p1, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$AccessibilityActionCompat;->g:Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$AccessibilityActionCompat;
|
|
|
|
.line 57
|
|
.line 58
|
|
new-instance v3, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/c;
|
|
|
|
.line 59
|
|
.line 60
|
|
const/4 v4, 0x4
|
|
|
|
.line 61
|
|
invoke-direct {v3, v4, p0}, Lcom/google/android/datatransport/runtime/scheduling/jobscheduling/c;-><init>(ILjava/lang/Object;)V
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
invoke-static {p0, p1, v3}, Landroidx/core/view/ViewCompat;->w(Landroid/view/View;Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$AccessibilityActionCompat;Landroidx/core/view/accessibility/AccessibilityViewCommand;)V
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.line 68
|
|
.line 69
|
|
iget-object p1, p1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;->e0:Ljava/util/ArrayList;
|
|
|
|
.line 70
|
|
.line 71
|
|
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
move-result v3
|
|
|
|
.line 75
|
|
if-nez v3, :cond_3
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
:cond_3
|
|
iget-object p1, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->h:Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.line 81
|
|
.line 82
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 83
|
|
.line 84
|
|
move v0, v2
|
|
|
|
.line 85
|
|
:cond_4
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setClickable(Z)V
|
|
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onAccessibilityStateChanged(Z)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onAttachedToWindow()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/ImageView;->onAttachedToWindow()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-object v0, p0
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
instance-of v1, v0, Landroid/view/View;
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 v2, 0x0
|
|
|
|
.line 12
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
.line 15
|
|
.line 16
|
|
goto :goto_0
|
|
|
|
.line 17
|
|
:cond_1
|
|
move-object v0, v2
|
|
|
|
.line 18
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v1
|
|
|
|
.line 24
|
|
instance-of v2, v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
.line 25
|
|
.line 26
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 27
|
|
.line 28
|
|
check-cast v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
.line 29
|
|
.line 30
|
|
iget-object v1, v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->a:Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
.line 31
|
|
.line 32
|
|
instance-of v2, v1, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.line 33
|
|
.line 34
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 35
|
|
.line 36
|
|
move-object v2, v1
|
|
|
|
.line 37
|
|
check-cast v2, Lcom/google/android/material/bottomsheet/BottomSheetBehavior;
|
|
|
|
.line 38
|
|
.line 39
|
|
:cond_2
|
|
invoke-direct {p0, v2}, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->setBottomSheetBehavior(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onDetachedFromWindow()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
invoke-direct {p0, v0}, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->setBottomSheetBehavior(Lcom/google/android/material/bottomsheet/BottomSheetBehavior;)V
|
|
|
|
.line 3
|
|
.line 4
|
|
.line 5
|
|
invoke-super {p0}, Landroid/widget/ImageView;->onDetachedFromWindow()V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->k:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->j:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 11
|
|
throw p1
|
|
|
|
.line 12
|
|
:cond_1
|
|
:goto_0
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result p1
|
|
|
|
.line 16
|
|
return p1
|
|
.end method
|
|
|
|
.method public setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
.locals 1
|
|
.param p1 # Landroid/view/View$OnClickListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v0, 0x1
|
|
|
|
.line 4
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 6
|
|
:goto_0
|
|
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->k:Z
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnTouchListener(Landroid/view/View$OnTouchListener;)V
|
|
.locals 1
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"ClickableViewAccessibility"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v0, 0x1
|
|
|
|
.line 4
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 6
|
|
:goto_0
|
|
iput-boolean v0, p0, Lcom/google/android/material/bottomsheet/BottomSheetDragHandleView;->j:Z
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
return-void
|
|
.end method
|