* 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>
466 lines
9.1 KiB
Smali
466 lines
9.1 KiB
Smali
.class public Lcom/google/android/material/carousel/MaskableFrameLayout;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/material/carousel/Maskable;
|
|
.implements Lcom/google/android/material/shape/Shapeable;
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic h:I
|
|
|
|
|
|
# instance fields
|
|
.field public c:F
|
|
|
|
.field public f:Lcom/google/android/material/carousel/OnMaskChangedListener;
|
|
|
|
.field public g:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/carousel/MaskableFrameLayout;->c:F
|
|
|
|
.line 2
|
|
.line 3
|
|
const/high16 v1, -0x40800000 # -1.0f
|
|
|
|
.line 4
|
|
.line 5
|
|
cmpl-float v0, v0, v1
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p0}, Landroid/view/View;->getWidth()I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v0
|
|
|
|
.line 13
|
|
int-to-float v0, v0
|
|
|
|
.line 14
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
.line 15
|
|
.line 16
|
|
div-float/2addr v0, v1
|
|
|
|
.line 17
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
.line 18
|
|
.line 19
|
|
iget v2, p0, Lcom/google/android/material/carousel/MaskableFrameLayout;->c:F
|
|
|
|
.line 20
|
|
.line 21
|
|
const/4 v3, 0x0
|
|
|
|
.line 22
|
|
invoke-static {v3, v0, v3, v1, v2}, Lcom/google/android/material/animation/AnimationUtils;->b(FFFFF)F
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result v0
|
|
|
|
.line 26
|
|
new-instance v1, Landroid/graphics/RectF;
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {p0}, Landroid/view/View;->getWidth()I
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result v2
|
|
|
|
.line 32
|
|
int-to-float v2, v2
|
|
|
|
.line 33
|
|
sub-float/2addr v2, v0
|
|
|
|
.line 34
|
|
invoke-virtual {p0}, Landroid/view/View;->getHeight()I
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result v4
|
|
|
|
.line 38
|
|
int-to-float v4, v4
|
|
|
|
.line 39
|
|
invoke-direct {v1, v0, v3, v2, v4}, Landroid/graphics/RectF;-><init>(FFFF)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
invoke-virtual {p0, v1}, Lcom/google/android/material/carousel/MaskableFrameLayout;->setMaskRectF(Landroid/graphics/RectF;)V
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final dispatchDraw(Landroid/graphics/Canvas;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final getFocusedRect(Landroid/graphics/Rect;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
throw p1
|
|
.end method
|
|
|
|
.method public getMaskRectF()Landroid/graphics/RectF;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getMaskXPercentage()F
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/carousel/MaskableFrameLayout;->c:F
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public getShapeAppearanceModel()Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/carousel/MaskableFrameLayout;->g:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final onAttachedToWindow()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/FrameLayout;->onAttachedToWindow()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onDetachedFromWindow()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final onHoverEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const/4 p1, 0x0
|
|
|
|
.line 5
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const/4 v0, 0x0
|
|
|
|
.line 5
|
|
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->getBoundsInScreen(Landroid/graphics/Rect;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/view/View;->getX()F
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result p1
|
|
|
|
.line 12
|
|
const/4 v1, 0x0
|
|
|
|
.line 13
|
|
cmpl-float p1, p1, v1
|
|
|
|
.line 14
|
|
.line 15
|
|
if-gtz p1, :cond_1
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {p0}, Landroid/view/View;->getY()F
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result p1
|
|
|
|
.line 21
|
|
cmpl-float p1, p1, v1
|
|
|
|
.line 22
|
|
.line 23
|
|
if-lez p1, :cond_0
|
|
|
|
.line 24
|
|
.line 25
|
|
throw v0
|
|
|
|
.line 26
|
|
:cond_0
|
|
throw v0
|
|
|
|
.line 27
|
|
:cond_1
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final onSizeChanged(IIII)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/FrameLayout;->onSizeChanged(IIII)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget p1, p0, Lcom/google/android/material/carousel/MaskableFrameLayout;->c:F
|
|
|
|
.line 5
|
|
.line 6
|
|
const/high16 p2, -0x40800000 # -1.0f
|
|
|
|
.line 7
|
|
.line 8
|
|
cmpl-float p1, p1, p2
|
|
|
|
.line 9
|
|
.line 10
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {p0}, Lcom/google/android/material/carousel/MaskableFrameLayout;->a()V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setForceCompatClipping(Z)V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setMaskRectF(Landroid/graphics/RectF;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/RectF;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setMaskXPercentage(F)V
|
|
.locals 2
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
.line 3
|
|
.line 4
|
|
invoke-static {p1, v0, v1}, Landroidx/core/math/MathUtils;->a(FFF)F
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result p1
|
|
|
|
.line 8
|
|
iget v0, p0, Lcom/google/android/material/carousel/MaskableFrameLayout;->c:F
|
|
|
|
.line 9
|
|
.line 10
|
|
cmpl-float v0, v0, p1
|
|
|
|
.line 11
|
|
.line 12
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
iput p1, p0, Lcom/google/android/material/carousel/MaskableFrameLayout;->c:F
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p0}, Lcom/google/android/material/carousel/MaskableFrameLayout;->a()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnHoverListener(Landroid/view/View$OnHoverListener;)V
|
|
.locals 0
|
|
.param p1 # Landroid/view/View$OnHoverListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnMaskChangedListener(Lcom/google/android/material/carousel/OnMaskChangedListener;)V
|
|
.locals 0
|
|
.param p1 # Lcom/google/android/material/carousel/OnMaskChangedListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/carousel/MaskableFrameLayout;->f:Lcom/google/android/material/carousel/OnMaskChangedListener;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShapeAppearanceModel(Lcom/google/android/material/shape/ShapeAppearanceModel;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/gms/internal/ads/e;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p1, v0}, Lcom/google/android/material/shape/ShapeAppearanceModel;->h(Lcom/google/android/material/shape/ShapeAppearanceModel$CornerSizeUnaryOperator;)Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p1
|
|
|
|
.line 10
|
|
iput-object p1, p0, Lcom/google/android/material/carousel/MaskableFrameLayout;->g:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 11
|
|
.line 12
|
|
const/4 p1, 0x0
|
|
|
|
.line 13
|
|
throw p1
|
|
.end method
|