* 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>
479 lines
9.2 KiB
Smali
479 lines
9.2 KiB
Smali
.class public Lcom/google/android/material/snackbar/SnackbarContentLayout;
|
|
.super Landroid/widget/LinearLayout;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/material/snackbar/ContentViewCallback;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public c:Landroid/widget/TextView;
|
|
|
|
.field public f:Landroid/widget/Button;
|
|
|
|
.field public g:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
sget p2, Lcom/google/android/material/R$attr;->motionEasingEmphasizedInterpolator:I
|
|
|
|
.line 5
|
|
.line 6
|
|
sget-object v0, Lcom/google/android/material/animation/AnimationUtils;->b:Landroidx/interpolator/view/animation/FastOutSlowInInterpolator;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p1, p2, v0}, Lcom/google/android/material/motion/MotionUtils;->d(Landroid/content/Context;ILandroid/animation/TimeInterpolator;)Landroid/animation/TimeInterpolator;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(III)Z
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getOrientation()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
const/4 v1, 0x1
|
|
|
|
.line 6
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->setOrientation(I)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move p1, v1
|
|
|
|
.line 12
|
|
goto :goto_0
|
|
|
|
.line 13
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 14
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/google/android/material/snackbar/SnackbarContentLayout;->c:Landroid/widget/TextView;
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result v0
|
|
|
|
.line 20
|
|
if-ne v0, p2, :cond_2
|
|
|
|
.line 21
|
|
.line 22
|
|
iget-object v0, p0, Lcom/google/android/material/snackbar/SnackbarContentLayout;->c:Landroid/widget/TextView;
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {v0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result v0
|
|
|
|
.line 28
|
|
if-eq v0, p3, :cond_1
|
|
|
|
.line 29
|
|
.line 30
|
|
goto :goto_1
|
|
|
|
.line 31
|
|
:cond_1
|
|
return p1
|
|
|
|
.line 32
|
|
:cond_2
|
|
:goto_1
|
|
iget-object p1, p0, Lcom/google/android/material/snackbar/SnackbarContentLayout;->c:Landroid/widget/TextView;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {p1}, Landroid/view/View;->isPaddingRelative()Z
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result v0
|
|
|
|
.line 38
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {p1}, Landroid/view/View;->getPaddingStart()I
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result v0
|
|
|
|
.line 44
|
|
invoke-virtual {p1}, Landroid/view/View;->getPaddingEnd()I
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result v2
|
|
|
|
.line 48
|
|
invoke-virtual {p1, v0, p2, v2, p3}, Landroid/view/View;->setPaddingRelative(IIII)V
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
return v1
|
|
|
|
.line 52
|
|
:cond_3
|
|
invoke-virtual {p1}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
move-result v0
|
|
|
|
.line 56
|
|
invoke-virtual {p1}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result v2
|
|
|
|
.line 60
|
|
invoke-virtual {p1, v0, p2, v2, p3}, Landroid/view/View;->setPadding(IIII)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
return v1
|
|
.end method
|
|
|
|
.method public getActionView()Landroid/widget/Button;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/snackbar/SnackbarContentLayout;->f:Landroid/widget/Button;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getMessageView()Landroid/widget/TextView;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/snackbar/SnackbarContentLayout;->c:Landroid/widget/TextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final onFinishInflate()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/LinearLayout;->onFinishInflate()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
sget v0, Lcom/google/android/material/R$id;->snackbar_text:I
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v0
|
|
|
|
.line 10
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
.line 11
|
|
.line 12
|
|
iput-object v0, p0, Lcom/google/android/material/snackbar/SnackbarContentLayout;->c:Landroid/widget/TextView;
|
|
|
|
.line 13
|
|
.line 14
|
|
sget v0, Lcom/google/android/material/R$id;->snackbar_action:I
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v0
|
|
|
|
.line 20
|
|
check-cast v0, Landroid/widget/Button;
|
|
|
|
.line 21
|
|
.line 22
|
|
iput-object v0, p0, Lcom/google/android/material/snackbar/SnackbarContentLayout;->f:Landroid/widget/Button;
|
|
|
|
.line 23
|
|
.line 24
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onMeasure(II)V
|
|
.locals 7
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2}, Landroid/widget/LinearLayout;->onMeasure(II)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getOrientation()I
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result v0
|
|
|
|
.line 8
|
|
const/4 v1, 0x1
|
|
|
|
.line 9
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
goto :goto_3
|
|
|
|
.line 12
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v0
|
|
|
|
.line 16
|
|
sget v2, Lcom/google/android/material/R$dimen;->design_snackbar_padding_vertical_2lines:I
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v0
|
|
|
|
.line 22
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object v2
|
|
|
|
.line 26
|
|
sget v3, Lcom/google/android/material/R$dimen;->design_snackbar_padding_vertical:I
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result v2
|
|
|
|
.line 32
|
|
iget-object v3, p0, Lcom/google/android/material/snackbar/SnackbarContentLayout;->c:Landroid/widget/TextView;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {v3}, Landroid/widget/TextView;->getLayout()Landroid/text/Layout;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v3
|
|
|
|
.line 38
|
|
const/4 v4, 0x0
|
|
|
|
.line 39
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 40
|
|
.line 41
|
|
invoke-virtual {v3}, Landroid/text/Layout;->getLineCount()I
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result v3
|
|
|
|
.line 45
|
|
if-le v3, v1, :cond_1
|
|
|
|
.line 46
|
|
.line 47
|
|
move v3, v1
|
|
|
|
.line 48
|
|
goto :goto_0
|
|
|
|
.line 49
|
|
:cond_1
|
|
move v3, v4
|
|
|
|
.line 50
|
|
:goto_0
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 51
|
|
.line 52
|
|
iget v5, p0, Lcom/google/android/material/snackbar/SnackbarContentLayout;->g:I
|
|
|
|
.line 53
|
|
.line 54
|
|
if-lez v5, :cond_2
|
|
|
|
.line 55
|
|
.line 56
|
|
iget-object v5, p0, Lcom/google/android/material/snackbar/SnackbarContentLayout;->f:Landroid/widget/Button;
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {v5}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result v5
|
|
|
|
.line 62
|
|
iget v6, p0, Lcom/google/android/material/snackbar/SnackbarContentLayout;->g:I
|
|
|
|
.line 63
|
|
.line 64
|
|
if-le v5, v6, :cond_2
|
|
|
|
.line 65
|
|
.line 66
|
|
sub-int v2, v0, v2
|
|
|
|
.line 67
|
|
.line 68
|
|
invoke-virtual {p0, v1, v0, v2}, Lcom/google/android/material/snackbar/SnackbarContentLayout;->a(III)Z
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
move-result v0
|
|
|
|
.line 72
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 73
|
|
.line 74
|
|
goto :goto_2
|
|
|
|
.line 75
|
|
:cond_2
|
|
if-eqz v3, :cond_3
|
|
|
|
.line 76
|
|
.line 77
|
|
goto :goto_1
|
|
|
|
.line 78
|
|
:cond_3
|
|
move v0, v2
|
|
|
|
.line 79
|
|
:goto_1
|
|
invoke-virtual {p0, v4, v0, v0}, Lcom/google/android/material/snackbar/SnackbarContentLayout;->a(III)Z
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
move-result v0
|
|
|
|
.line 83
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 84
|
|
.line 85
|
|
:goto_2
|
|
invoke-super {p0, p1, p2}, Landroid/widget/LinearLayout;->onMeasure(II)V
|
|
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
:cond_4
|
|
:goto_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMaxInlineActionWidth(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/snackbar/SnackbarContentLayout;->g:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|