* 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>
492 lines
10 KiB
Smali
492 lines
10 KiB
Smali
.class public final Lcom/google/android/gms/internal/cast/zzdx;
|
|
.super Lcom/google/android/gms/internal/cast/zzdr;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public final c:Landroid/widget/RelativeLayout;
|
|
|
|
.field public final d:Landroid/widget/TextView;
|
|
|
|
.field public final e:Lcom/google/android/gms/cast/framework/media/widget/CastSeekBar;
|
|
|
|
.field public final f:Lcom/google/android/gms/cast/framework/media/uicontroller/zza;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/widget/RelativeLayout;Lcom/google/android/gms/cast/framework/media/widget/CastSeekBar;Lcom/google/android/gms/cast/framework/media/uicontroller/zza;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const/4 v0, 0x1
|
|
|
|
.line 5
|
|
iput-boolean v0, p0, Lcom/google/android/gms/internal/cast/zzdr;->b:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
iput-object p1, p0, Lcom/google/android/gms/internal/cast/zzdx;->c:Landroid/widget/RelativeLayout;
|
|
|
|
.line 8
|
|
.line 9
|
|
sget v0, Lcom/google/android/gms/cast/framework/R$id;->tooltip:I
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p1
|
|
|
|
.line 15
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
.line 16
|
|
.line 17
|
|
iput-object p1, p0, Lcom/google/android/gms/internal/cast/zzdx;->d:Landroid/widget/TextView;
|
|
|
|
.line 18
|
|
.line 19
|
|
iput-object p2, p0, Lcom/google/android/gms/internal/cast/zzdx;->e:Lcom/google/android/gms/cast/framework/media/widget/CastSeekBar;
|
|
|
|
.line 20
|
|
.line 21
|
|
iput-object p3, p0, Lcom/google/android/gms/internal/cast/zzdx;->f:Lcom/google/android/gms/cast/framework/media/uicontroller/zza;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result-object p2
|
|
|
|
.line 27
|
|
sget-object p3, Lcom/google/android/gms/cast/framework/R$styleable;->CastExpandedController:[I
|
|
|
|
.line 28
|
|
.line 29
|
|
sget v0, Lcom/google/android/gms/cast/framework/R$attr;->castExpandedControllerStyle:I
|
|
|
|
.line 30
|
|
.line 31
|
|
sget v1, Lcom/google/android/gms/cast/framework/R$style;->CastExpandedController:I
|
|
|
|
.line 32
|
|
.line 33
|
|
const/4 v2, 0x0
|
|
|
|
.line 34
|
|
invoke-virtual {p2, v2, p3, v0, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object p2
|
|
|
|
.line 38
|
|
sget p3, Lcom/google/android/gms/cast/framework/R$styleable;->CastExpandedController_castSeekBarTooltipBackgroundColor:I
|
|
|
|
.line 39
|
|
.line 40
|
|
const/4 v0, 0x0
|
|
|
|
.line 41
|
|
invoke-virtual {p2, p3, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result p3
|
|
|
|
.line 45
|
|
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result-object p2
|
|
|
|
.line 52
|
|
invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
move-result-object p2
|
|
|
|
.line 56
|
|
invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getColor(I)I
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result p2
|
|
|
|
.line 60
|
|
invoke-virtual {p1}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
move-result-object p1
|
|
|
|
.line 64
|
|
sget-object p3, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 65
|
|
.line 66
|
|
invoke-virtual {p1, p2, p3}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final b()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/gms/internal/cast/zzdx;->h()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final d(Lcom/google/android/gms/cast/framework/CastSession;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Lcom/google/android/gms/cast/framework/media/uicontroller/UIController;->d(Lcom/google/android/gms/cast/framework/CastSession;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/gms/internal/cast/zzdx;->h()V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
.end method
|
|
|
|
.method public final e()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
iput-object v0, p0, Lcom/google/android/gms/cast/framework/media/uicontroller/UIController;->a:Lcom/google/android/gms/cast/framework/media/RemoteMediaClient;
|
|
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/gms/internal/cast/zzdx;->h()V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
.end method
|
|
|
|
.method public final f(J)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/gms/internal/cast/zzdx;->h()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final g(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/gms/internal/cast/zzdr;->b:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/gms/internal/cast/zzdx;->h()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final h()V
|
|
.locals 9
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/gms/cast/framework/media/uicontroller/UIController;->a:Lcom/google/android/gms/cast/framework/media/RemoteMediaClient;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, p0, Lcom/google/android/gms/internal/cast/zzdx;->c:Landroid/widget/RelativeLayout;
|
|
|
|
.line 4
|
|
.line 5
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0}, Lcom/google/android/gms/cast/framework/media/RemoteMediaClient;->j()Z
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v0
|
|
|
|
.line 11
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-boolean v0, p0, Lcom/google/android/gms/internal/cast/zzdr;->b:Z
|
|
|
|
.line 14
|
|
.line 15
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
goto :goto_0
|
|
|
|
.line 18
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 19
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
iget-object v1, p0, Lcom/google/android/gms/internal/cast/zzdx;->e:Lcom/google/android/gms/cast/framework/media/widget/CastSeekBar;
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {v1}, Lcom/google/android/gms/cast/framework/media/widget/CastSeekBar;->getProgress()I
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result v2
|
|
|
|
.line 28
|
|
int-to-long v2, v2
|
|
|
|
.line 29
|
|
iget-object v4, p0, Lcom/google/android/gms/internal/cast/zzdx;->f:Lcom/google/android/gms/cast/framework/media/uicontroller/zza;
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-virtual {v4}, Lcom/google/android/gms/cast/framework/media/uicontroller/zza;->f()J
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-wide v5
|
|
|
|
.line 35
|
|
add-long/2addr v5, v2
|
|
|
|
.line 36
|
|
invoke-virtual {v4, v5, v6}, Lcom/google/android/gms/cast/framework/media/uicontroller/zza;->k(J)Ljava/lang/String;
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result-object v2
|
|
|
|
.line 40
|
|
iget-object v3, p0, Lcom/google/android/gms/internal/cast/zzdx;->d:Landroid/widget/TextView;
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
invoke-virtual {v1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
move-result v2
|
|
|
|
.line 49
|
|
invoke-virtual {v1}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
move-result v4
|
|
|
|
.line 53
|
|
sub-int/2addr v2, v4
|
|
|
|
.line 54
|
|
invoke-virtual {v1}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
move-result v4
|
|
|
|
.line 58
|
|
sub-int/2addr v2, v4
|
|
|
|
.line 59
|
|
const/high16 v4, -0x80000000
|
|
|
|
.line 60
|
|
.line 61
|
|
invoke-static {v2, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
move-result v4
|
|
|
|
.line 65
|
|
invoke-static {v0, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
move-result v5
|
|
|
|
.line 69
|
|
invoke-virtual {v3, v4, v5}, Landroid/view/View;->measure(II)V
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
invoke-virtual {v3}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
move-result v4
|
|
|
|
.line 76
|
|
invoke-virtual {v1}, Lcom/google/android/gms/cast/framework/media/widget/CastSeekBar;->getProgress()I
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
move-result v5
|
|
|
|
.line 80
|
|
int-to-double v5, v5
|
|
|
|
.line 81
|
|
invoke-virtual {v1}, Lcom/google/android/gms/cast/framework/media/widget/CastSeekBar;->getMaxProgress()I
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
move-result v1
|
|
|
|
.line 85
|
|
int-to-double v7, v1
|
|
|
|
.line 86
|
|
div-int/lit8 v1, v4, 0x2
|
|
|
|
.line 87
|
|
.line 88
|
|
div-double/2addr v5, v7
|
|
|
|
.line 89
|
|
int-to-double v7, v2
|
|
|
|
.line 90
|
|
mul-double/2addr v5, v7
|
|
|
|
.line 91
|
|
double-to-int v5, v5
|
|
|
|
.line 92
|
|
sub-int/2addr v5, v1
|
|
|
|
.line 93
|
|
invoke-static {v0, v5}, Ljava/lang/Math;->max(II)I
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
move-result v0
|
|
|
|
.line 97
|
|
sub-int/2addr v2, v4
|
|
|
|
.line 98
|
|
invoke-static {v0, v2}, Ljava/lang/Math;->min(II)I
|
|
|
|
.line 99
|
|
.line 100
|
|
.line 101
|
|
move-result v0
|
|
|
|
.line 102
|
|
invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.line 103
|
|
.line 104
|
|
.line 105
|
|
move-result-object v1
|
|
|
|
.line 106
|
|
check-cast v1, Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
.line 107
|
|
.line 108
|
|
iput v0, v1, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I
|
|
|
|
.line 109
|
|
.line 110
|
|
invoke-virtual {v3, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 111
|
|
.line 112
|
|
.line 113
|
|
return-void
|
|
|
|
.line 114
|
|
:cond_1
|
|
:goto_0
|
|
const/16 v0, 0x8
|
|
|
|
.line 115
|
|
.line 116
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 117
|
|
.line 118
|
|
.line 119
|
|
return-void
|
|
.end method
|