soul-browser/app/smali/androidx/constraintlayout/motion/widget/MotionLayout$StateCache.smali
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

279 lines
6.2 KiB
Smali

.class Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/constraintlayout/motion/widget/MotionLayout;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "StateCache"
.end annotation
# instance fields
.field public a:F
.field public b:F
.field public c:I
.field public d:I
.field public final synthetic e:Landroidx/constraintlayout/motion/widget/MotionLayout;
# direct methods
.method public constructor <init>(Landroidx/constraintlayout/motion/widget/MotionLayout;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
.line 3
.line 4
iput-object p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->e:Landroidx/constraintlayout/motion/widget/MotionLayout;
.line 5
.line 6
const/high16 p1, 0x7fc00000 # Float.NaN
.line 7
.line 8
iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->a:F
.line 9
.line 10
iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->b:F
.line 11
.line 12
const/4 p1, -0x1
.line 13
iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->c:I
.line 14
.line 15
iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->d:I
.line 16
.line 17
return-void
.end method
# virtual methods
.method public final a()V
.locals 6
.line 1
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->c:I
.line 2
.line 3
iget-object v1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->e:Landroidx/constraintlayout/motion/widget/MotionLayout;
.line 4
.line 5
const/4 v2, -0x1
.line 6
if-ne v0, v2, :cond_0
.line 7
.line 8
iget v3, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->d:I
.line 9
.line 10
if-eq v3, v2, :cond_5
.line 11
.line 12
:cond_0
sget-object v3, Landroidx/constraintlayout/motion/widget/MotionLayout$TransitionState;->c:Landroidx/constraintlayout/motion/widget/MotionLayout$TransitionState;
.line 13
.line 14
if-ne v0, v2, :cond_1
.line 15
.line 16
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->d:I
.line 17
.line 18
invoke-virtual {v1, v0}, Landroidx/constraintlayout/motion/widget/MotionLayout;->u(I)V
.line 19
.line 20
.line 21
goto :goto_0
.line 22
:cond_1
iget v4, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->d:I
.line 23
.line 24
if-ne v4, v2, :cond_4
.line 25
.line 26
invoke-virtual {v1, v3}, Landroidx/constraintlayout/motion/widget/MotionLayout;->setState(Landroidx/constraintlayout/motion/widget/MotionLayout$TransitionState;)V
.line 27
.line 28
.line 29
iput v0, v1, Landroidx/constraintlayout/motion/widget/MotionLayout;->A:I
.line 30
.line 31
iput v2, v1, Landroidx/constraintlayout/motion/widget/MotionLayout;->z:I
.line 32
.line 33
iput v2, v1, Landroidx/constraintlayout/motion/widget/MotionLayout;->B:I
.line 34
.line 35
iget-object v4, v1, Landroidx/constraintlayout/widget/ConstraintLayout;->o:Landroidx/constraintlayout/widget/ConstraintLayoutStates;
.line 36
.line 37
if-eqz v4, :cond_2
.line 38
.line 39
int-to-float v5, v2
.line 40
invoke-virtual {v4, v5, v5, v0}, Landroidx/constraintlayout/widget/ConstraintLayoutStates;->b(FFI)V
.line 41
.line 42
.line 43
goto :goto_0
.line 44
:cond_2
iget-object v0, v1, Landroidx/constraintlayout/motion/widget/MotionLayout;->w:Landroidx/constraintlayout/motion/widget/MotionScene;
.line 45
.line 46
if-nez v0, :cond_3
.line 47
.line 48
goto :goto_0
.line 49
:cond_3
const/4 v0, 0x0
.line 50
throw v0
.line 51
:cond_4
invoke-virtual {v1, v0, v4}, Landroidx/constraintlayout/motion/widget/MotionLayout;->t(II)V
.line 52
.line 53
.line 54
:goto_0
invoke-virtual {v1, v3}, Landroidx/constraintlayout/motion/widget/MotionLayout;->setState(Landroidx/constraintlayout/motion/widget/MotionLayout$TransitionState;)V
.line 55
.line 56
.line 57
:cond_5
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->b:F
.line 58
.line 59
invoke-static {v0}, Ljava/lang/Float;->isNaN(F)Z
.line 60
.line 61
.line 62
move-result v0
.line 63
if-eqz v0, :cond_7
.line 64
.line 65
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->a:F
.line 66
.line 67
invoke-static {v0}, Ljava/lang/Float;->isNaN(F)Z
.line 68
.line 69
.line 70
move-result v0
.line 71
if-eqz v0, :cond_6
.line 72
.line 73
return-void
.line 74
:cond_6
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->a:F
.line 75
.line 76
invoke-virtual {v1, v0}, Landroidx/constraintlayout/motion/widget/MotionLayout;->setProgress(F)V
.line 77
.line 78
.line 79
return-void
.line 80
:cond_7
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->a:F
.line 81
.line 82
iget v3, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->b:F
.line 83
.line 84
invoke-virtual {v1, v0, v3}, Landroidx/constraintlayout/motion/widget/MotionLayout;->s(FF)V
.line 85
.line 86
.line 87
const/high16 v0, 0x7fc00000 # Float.NaN
.line 88
.line 89
iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->a:F
.line 90
.line 91
iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->b:F
.line 92
.line 93
iput v2, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->c:I
.line 94
.line 95
iput v2, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$StateCache;->d:I
.line 96
.line 97
return-void
.end method