* 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>
626 lines
12 KiB
Smali
626 lines
12 KiB
Smali
.class public Lcom/google/android/material/motion/MaterialBottomContainerBackHelper;
|
|
.super Lcom/google/android/material/motion/MaterialBackAnimationHelper;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/android/material/motion/MaterialBackAnimationHelper<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final g:F
|
|
|
|
.field public final h:F
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/motion/MaterialBackAnimationHelper;-><init>(Landroid/view/View;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object p1
|
|
|
|
.line 8
|
|
sget v0, Lcom/google/android/material/R$dimen;->m3_back_progress_bottom_container_max_scale_x_distance:I
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result v0
|
|
|
|
.line 14
|
|
iput v0, p0, Lcom/google/android/material/motion/MaterialBottomContainerBackHelper;->g:F
|
|
|
|
.line 15
|
|
.line 16
|
|
sget v0, Lcom/google/android/material/R$dimen;->m3_back_progress_bottom_container_max_scale_y_distance:I
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result p1
|
|
|
|
.line 22
|
|
iput p1, p0, Lcom/google/android/material/motion/MaterialBottomContainerBackHelper;->h:F
|
|
|
|
.line 23
|
|
.line 24
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final b()Landroid/animation/AnimatorSet;
|
|
.locals 9
|
|
|
|
.line 1
|
|
new-instance v0, Landroid/animation/AnimatorSet;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Landroid/animation/AnimatorSet;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
sget-object v1, Landroid/view/View;->SCALE_X:Landroid/util/Property;
|
|
|
|
.line 7
|
|
.line 8
|
|
const/4 v2, 0x1
|
|
|
|
.line 9
|
|
new-array v3, v2, [F
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 v4, 0x0
|
|
|
|
.line 12
|
|
const/high16 v5, 0x3f800000 # 1.0f
|
|
|
|
.line 13
|
|
.line 14
|
|
aput v5, v3, v4
|
|
|
|
.line 15
|
|
.line 16
|
|
iget-object v6, p0, Lcom/google/android/material/motion/MaterialBackAnimationHelper;->b:Landroid/view/View;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-static {v6, v1, v3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v1
|
|
|
|
.line 22
|
|
sget-object v3, Landroid/view/View;->SCALE_Y:Landroid/util/Property;
|
|
|
|
.line 23
|
|
.line 24
|
|
new-array v7, v2, [F
|
|
|
|
.line 25
|
|
.line 26
|
|
aput v5, v7, v4
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-static {v6, v3, v7}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v3
|
|
|
|
.line 32
|
|
const/4 v7, 0x2
|
|
|
|
.line 33
|
|
new-array v7, v7, [Landroid/animation/Animator;
|
|
|
|
.line 34
|
|
.line 35
|
|
aput-object v1, v7, v4
|
|
|
|
.line 36
|
|
.line 37
|
|
aput-object v3, v7, v2
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {v0, v7}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
instance-of v1, v6, Landroid/view/ViewGroup;
|
|
|
|
.line 43
|
|
.line 44
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 45
|
|
.line 46
|
|
check-cast v6, Landroid/view/ViewGroup;
|
|
|
|
.line 47
|
|
.line 48
|
|
move v1, v4
|
|
|
|
.line 49
|
|
:goto_0
|
|
invoke-virtual {v6}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
move-result v3
|
|
|
|
.line 53
|
|
if-ge v1, v3, :cond_0
|
|
|
|
.line 54
|
|
.line 55
|
|
invoke-virtual {v6, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
move-result-object v3
|
|
|
|
.line 59
|
|
sget-object v7, Landroid/view/View;->SCALE_Y:Landroid/util/Property;
|
|
|
|
.line 60
|
|
.line 61
|
|
new-array v8, v2, [F
|
|
|
|
.line 62
|
|
.line 63
|
|
aput v5, v8, v4
|
|
|
|
.line 64
|
|
.line 65
|
|
invoke-static {v3, v7, v8}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
move-result-object v3
|
|
|
|
.line 69
|
|
new-array v7, v2, [Landroid/animation/Animator;
|
|
|
|
.line 70
|
|
.line 71
|
|
aput-object v3, v7, v4
|
|
|
|
.line 72
|
|
.line 73
|
|
invoke-virtual {v0, v7}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 77
|
|
.line 78
|
|
goto :goto_0
|
|
|
|
.line 79
|
|
:cond_0
|
|
new-instance v1, Landroidx/interpolator/view/animation/FastOutSlowInInterpolator;
|
|
|
|
.line 80
|
|
.line 81
|
|
invoke-direct {v1}, Landroidx/interpolator/view/animation/FastOutSlowInInterpolator;-><init>()V
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
invoke-virtual {v0, v1}, Landroid/animation/AnimatorSet;->setInterpolator(Landroid/animation/TimeInterpolator;)V
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final c(Landroidx/activity/BackEventCompat;Landroid/animation/Animator$AnimatorListener;)V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/motion/MaterialBackAnimationHelper;->b:Landroid/view/View;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/view/View;->getHeight()I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v1
|
|
|
|
.line 7
|
|
int-to-float v1, v1
|
|
|
|
.line 8
|
|
invoke-virtual {v0}, Landroid/view/View;->getScaleY()F
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result v2
|
|
|
|
.line 12
|
|
mul-float/2addr v2, v1
|
|
|
|
.line 13
|
|
sget-object v1, Landroid/view/View;->TRANSLATION_Y:Landroid/util/Property;
|
|
|
|
.line 14
|
|
.line 15
|
|
const/4 v3, 0x1
|
|
|
|
.line 16
|
|
new-array v3, v3, [F
|
|
|
|
.line 17
|
|
.line 18
|
|
const/4 v4, 0x0
|
|
|
|
.line 19
|
|
aput v2, v3, v4
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-static {v0, v1, v3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object v0
|
|
|
|
.line 25
|
|
new-instance v1, Landroidx/interpolator/view/animation/FastOutSlowInInterpolator;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-direct {v1}, Landroidx/interpolator/view/animation/FastOutSlowInInterpolator;-><init>()V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {v0, v1}, Landroid/animation/Animator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
iget v1, p0, Lcom/google/android/material/motion/MaterialBackAnimationHelper;->d:I
|
|
|
|
.line 34
|
|
.line 35
|
|
iget p1, p1, Landroidx/activity/BackEventCompat;->c:F
|
|
|
|
.line 36
|
|
.line 37
|
|
iget v2, p0, Lcom/google/android/material/motion/MaterialBackAnimationHelper;->c:I
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-static {p1, v2, v1}, Lcom/google/android/material/animation/AnimationUtils;->c(FII)I
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
move-result p1
|
|
|
|
.line 43
|
|
int-to-long v1, p1
|
|
|
|
.line 44
|
|
invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
new-instance p1, Lcom/google/android/material/motion/MaterialBottomContainerBackHelper$1;
|
|
|
|
.line 48
|
|
.line 49
|
|
invoke-direct {p1, p0}, Lcom/google/android/material/motion/MaterialBottomContainerBackHelper$1;-><init>(Lcom/google/android/material/motion/MaterialBottomContainerBackHelper;)V
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
invoke-virtual {v0, p1}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
invoke-virtual {v0, p2}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
return-void
|
|
.end method
|
|
|
|
.method public final d(F)V
|
|
.locals 7
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/motion/MaterialBackAnimationHelper;->a:Landroid/view/animation/PathInterpolator;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Landroid/view/animation/PathInterpolator;->getInterpolation(F)F
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result p1
|
|
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/motion/MaterialBackAnimationHelper;->b:Landroid/view/View;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {v0}, Landroid/view/View;->getWidth()I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v1
|
|
|
|
.line 13
|
|
int-to-float v1, v1
|
|
|
|
.line 14
|
|
invoke-virtual {v0}, Landroid/view/View;->getHeight()I
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result v2
|
|
|
|
.line 18
|
|
int-to-float v2, v2
|
|
|
|
.line 19
|
|
const/4 v3, 0x0
|
|
|
|
.line 20
|
|
cmpg-float v4, v1, v3
|
|
|
|
.line 21
|
|
.line 22
|
|
if-lez v4, :cond_3
|
|
|
|
.line 23
|
|
.line 24
|
|
cmpg-float v4, v2, v3
|
|
|
|
.line 25
|
|
.line 26
|
|
if-gtz v4, :cond_0
|
|
|
|
.line 27
|
|
.line 28
|
|
goto :goto_2
|
|
|
|
.line 29
|
|
:cond_0
|
|
iget v4, p0, Lcom/google/android/material/motion/MaterialBottomContainerBackHelper;->g:F
|
|
|
|
.line 30
|
|
.line 31
|
|
div-float/2addr v4, v1
|
|
|
|
.line 32
|
|
iget v1, p0, Lcom/google/android/material/motion/MaterialBottomContainerBackHelper;->h:F
|
|
|
|
.line 33
|
|
.line 34
|
|
div-float/2addr v1, v2
|
|
|
|
.line 35
|
|
invoke-static {v3, v4, p1}, Lcom/google/android/material/animation/AnimationUtils;->a(FFF)F
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
move-result v4
|
|
|
|
.line 39
|
|
invoke-static {v3, v1, p1}, Lcom/google/android/material/animation/AnimationUtils;->a(FFF)F
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
move-result p1
|
|
|
|
.line 43
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
.line 44
|
|
.line 45
|
|
sub-float v4, v1, v4
|
|
|
|
.line 46
|
|
.line 47
|
|
sub-float p1, v1, p1
|
|
|
|
.line 48
|
|
.line 49
|
|
invoke-static {v4}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
move-result v5
|
|
|
|
.line 53
|
|
if-nez v5, :cond_3
|
|
|
|
.line 54
|
|
.line 55
|
|
invoke-static {p1}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
move-result v5
|
|
|
|
.line 59
|
|
if-eqz v5, :cond_1
|
|
|
|
.line 60
|
|
.line 61
|
|
goto :goto_2
|
|
|
|
.line 62
|
|
:cond_1
|
|
invoke-virtual {v0, v4}, Landroid/view/View;->setScaleX(F)V
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->setPivotY(F)V
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setScaleY(F)V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
instance-of v2, v0, Landroid/view/ViewGroup;
|
|
|
|
.line 72
|
|
.line 73
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 74
|
|
.line 75
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
.line 76
|
|
.line 77
|
|
const/4 v2, 0x0
|
|
|
|
.line 78
|
|
:goto_0
|
|
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
move-result v5
|
|
|
|
.line 82
|
|
if-ge v2, v5, :cond_3
|
|
|
|
.line 83
|
|
.line 84
|
|
invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
move-result-object v5
|
|
|
|
.line 88
|
|
invoke-virtual {v5}, Landroid/view/View;->getTop()I
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
move-result v6
|
|
|
|
.line 92
|
|
neg-int v6, v6
|
|
|
|
.line 93
|
|
int-to-float v6, v6
|
|
|
|
.line 94
|
|
invoke-virtual {v5, v6}, Landroid/view/View;->setPivotY(F)V
|
|
|
|
.line 95
|
|
.line 96
|
|
.line 97
|
|
cmpl-float v6, p1, v3
|
|
|
|
.line 98
|
|
.line 99
|
|
if-eqz v6, :cond_2
|
|
|
|
.line 100
|
|
.line 101
|
|
div-float v6, v4, p1
|
|
|
|
.line 102
|
|
.line 103
|
|
goto :goto_1
|
|
|
|
.line 104
|
|
:cond_2
|
|
move v6, v1
|
|
|
|
.line 105
|
|
:goto_1
|
|
invoke-virtual {v5, v6}, Landroid/view/View;->setScaleY(F)V
|
|
|
|
.line 106
|
|
.line 107
|
|
.line 108
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 109
|
|
.line 110
|
|
goto :goto_0
|
|
|
|
.line 111
|
|
:cond_3
|
|
:goto_2
|
|
return-void
|
|
.end method
|