* 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>
343 lines
18 KiB
XML
343 lines
18 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/expanded_controller_layout"
|
|
android:background="@color/cast_expanded_controller_background_color"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<ImageView
|
|
android:id="@+id/background_image_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:contentDescription="@string/cast_expanded_controller_background_image"/>
|
|
<ImageView
|
|
android:id="@+id/blurred_background_image_view"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:contentDescription="@string/cast_expanded_controller_background_image"/>
|
|
<RelativeLayout
|
|
android:background="@drawable/cast_expanded_controller_bg_gradient_light"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:theme="?attr/castExpandedControllerToolbarStyle"
|
|
android:id="@+id/toolbar"
|
|
android:background="@drawable/cast_expanded_controller_actionbar_bg_gradient_light"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="@dimen/cast_expanded_controller_control_toolbar_min_height"/>
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_above="@+id/status_text"
|
|
android:layout_below="@+id/toolbar">
|
|
<ImageView
|
|
android:id="@+id/background_place_holder_image_view"
|
|
android:layout_width="96dp"
|
|
android:layout_height="96dp"
|
|
android:src="0x7f0804e9"
|
|
android:scaleType="fitCenter"
|
|
android:layout_centerInParent="true"
|
|
android:contentDescription="@string/cast_expanded_controller_background_image"/>
|
|
<RelativeLayout
|
|
android:id="@+id/ad_container"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/cast_expanded_controller_ad_container_layout_height"
|
|
android:layout_centerInParent="true">
|
|
<TextView
|
|
android:id="@+id/ad_label"
|
|
android:paddingLeft="5dp"
|
|
android:paddingRight="5dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/cast_expanded_controller_ad_label_layout_height"
|
|
android:text="@string/cast_ad_label"
|
|
android:layout_centerHorizontal="true"/>
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_below="@+id/ad_label">
|
|
<View
|
|
android:id="@+id/ad_background_image_view"
|
|
android:background="@android:color/black"
|
|
android:visibility="gone"
|
|
android:layout_width="@dimen/cast_expanded_controller_ad_background_layout_width"
|
|
android:layout_height="@dimen/cast_expanded_controller_ad_background_layout_height"
|
|
android:layout_centerHorizontal="true"/>
|
|
<TextView
|
|
android:gravity="center"
|
|
android:id="@+id/ad_in_progress_label"
|
|
android:visibility="gone"
|
|
android:layout_width="@dimen/cast_expanded_controller_ad_layout_width"
|
|
android:layout_height="@dimen/cast_expanded_controller_ad_layout_height"
|
|
android:layout_centerHorizontal="true"/>
|
|
<ImageView
|
|
android:id="@+id/ad_image_view"
|
|
android:visibility="gone"
|
|
android:clickable="false"
|
|
android:layout_width="@dimen/cast_expanded_controller_ad_layout_width"
|
|
android:layout_height="@dimen/cast_expanded_controller_ad_layout_height"
|
|
android:src="0x7f0804ea"
|
|
android:scaleType="centerInside"
|
|
android:adjustViewBounds="true"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:contentDescription="@string/cast_expanded_controller_ad_image_description"/>
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
<TextView
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="@color/cast_expanded_controller_text_color"
|
|
android:id="@+id/ad_skip_text"
|
|
android:paddingLeft="15dp"
|
|
android:paddingTop="4dp"
|
|
android:paddingRight="15dp"
|
|
android:paddingBottom="4dp"
|
|
android:visibility="gone"
|
|
android:clickable="false"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="4dp"
|
|
android:text="@string/cast_expanded_controller_skip_ad_text"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_centerHorizontal="true"/>
|
|
<TextView
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="@color/cast_expanded_controller_text_color"
|
|
android:id="@+id/ad_skip_button"
|
|
android:background="@drawable/cast_skip_ad_label_border"
|
|
android:paddingLeft="15dp"
|
|
android:paddingTop="4dp"
|
|
android:paddingRight="15dp"
|
|
android:paddingBottom="4dp"
|
|
android:visibility="gone"
|
|
android:clickable="false"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="4dp"
|
|
android:text="@string/cast_expanded_controller_skip_ad_label"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_centerHorizontal="true"/>
|
|
<ProgressBar
|
|
android:id="@+id/loading_indicator"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
style="?android:attr/progressBarStyleLarge"/>
|
|
</RelativeLayout>
|
|
<TextView
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="@color/cast_expanded_controller_text_color"
|
|
android:ellipsize="end"
|
|
android:gravity="center_horizontal"
|
|
android:id="@+id/status_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/cast_expanded_controller_margin_between_status_text_and_seek_bar"
|
|
android:minHeight="20dp"
|
|
android:maxLines="1"
|
|
android:layout_above="@+id/controllers"/>
|
|
<RelativeLayout
|
|
android:id="@+id/tooltip_container"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="24dp"
|
|
android:layout_marginRight="24dp"
|
|
android:layout_marginBottom="12dp"
|
|
android:layout_above="@+id/controllers"
|
|
android:layout_alignParentLeft="true"
|
|
android:layoutDirection="ltr"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_marginEnd="24dp">
|
|
<TextView
|
|
android:textColor="@color/cast_expanded_controller_progress_text_color"
|
|
android:gravity="center"
|
|
android:id="@+id/tooltip"
|
|
android:background="@drawable/cast_tooltip_background"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="32dp"
|
|
android:maxLines="1"/>
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:id="@+id/controllers"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp">
|
|
<com.google.android.gms.cast.framework.media.widget.CastSeekBar
|
|
android:disabledAlpha="1"
|
|
android:id="@+id/cast_seek_bar"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="20dp"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_centerVertical="true"
|
|
android:contentDescription="@string/cast_seek_bar"/>
|
|
<SeekBar
|
|
android:disabledAlpha="1"
|
|
android:id="@+id/seek_bar"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="20dp"
|
|
android:layout_below="@+id/cast_seek_bar"
|
|
android:layout_centerVertical="true"
|
|
android:contentDescription="@string/cast_seek_bar"/>
|
|
<RelativeLayout
|
|
android:id="@+id/seek_bar_indicators"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:minHeight="20dp"
|
|
android:layout_below="@+id/cast_seek_bar"
|
|
android:layoutDirection="ltr"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp">
|
|
<RelativeLayout
|
|
android:id="@+id/start_text_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="20dp"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_centerVertical="true"
|
|
android:layoutDirection="ltr">
|
|
<TextView
|
|
android:textColor="@color/cast_expanded_controller_progress_text_color"
|
|
android:id="@+id/start_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/cast_invalid_stream_position_text"
|
|
android:maxLines="1"
|
|
android:layout_centerVertical="true"/>
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:id="@+id/end_text_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="20dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layoutDirection="ltr">
|
|
<TextView
|
|
android:textColor="@color/cast_expanded_controller_progress_text_color"
|
|
android:id="@+id/end_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="12dp"
|
|
android:text="@string/cast_invalid_stream_duration_text"
|
|
android:maxLines="1"
|
|
android:layout_centerVertical="true"/>
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:id="@+id/live_indicators"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="20dp"
|
|
android:layout_toLeftOf="@+id/end_text_container"
|
|
android:layout_toRightOf="@+id/start_text_container"
|
|
android:layoutDirection="ltr"
|
|
android:layout_toStartOf="@+id/end_text_container"
|
|
android:layout_toEndOf="@+id/start_text_container">
|
|
<TextView
|
|
android:textColor="@color/cast_expanded_controller_progress_text_color"
|
|
android:id="@+id/live_indicator_text"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/cast_live_label"
|
|
android:maxLines="1"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:contentDescription="@string/cast_expanded_controller_live_stream_indicator"/>
|
|
<ImageView
|
|
android:id="@+id/live_indicator_dot"
|
|
android:paddingLeft="6dp"
|
|
android:paddingTop="6dp"
|
|
android:paddingRight="4dp"
|
|
android:paddingBottom="6dp"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/cast_expanded_controller_live_indicator_drawable"
|
|
android:minWidth="18dp"
|
|
android:minHeight="20dp"
|
|
android:layout_toLeftOf="@+id/live_indicator_text"
|
|
android:layout_centerVertical="true"
|
|
android:contentDescription="@string/cast_expanded_controller_live_head_description"
|
|
android:layout_toStartOf="@+id/live_indicator_text"/>
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/cast_expanded_controller_margin_between_seek_bar_and_control_buttons"
|
|
android:layout_below="@+id/seek_bar_indicators">
|
|
<ImageButton
|
|
android:id="@+id/button_0"
|
|
android:padding="0dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="@dimen/cast_expanded_controller_control_button_margin"
|
|
android:layout_toLeftOf="@+id/button_1"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="@dimen/cast_expanded_controller_control_button_margin"
|
|
android:layout_toStartOf="@+id/button_1"/>
|
|
<ImageButton
|
|
android:id="@+id/button_1"
|
|
android:padding="0dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="@dimen/cast_expanded_controller_control_button_margin"
|
|
android:layout_toLeftOf="@+id/button_play_pause_toggle"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="@dimen/cast_expanded_controller_control_button_margin"
|
|
android:layout_toStartOf="@+id/button_play_pause_toggle"/>
|
|
<ImageButton
|
|
android:id="@+id/button_play_pause_toggle"
|
|
android:padding="0dp"
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:scaleType="fitCenter"
|
|
android:layout_centerInParent="true"/>
|
|
<ImageButton
|
|
android:id="@+id/button_2"
|
|
android:padding="0dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/cast_expanded_controller_control_button_margin"
|
|
android:layout_toRightOf="@+id/button_play_pause_toggle"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginStart="@dimen/cast_expanded_controller_control_button_margin"
|
|
android:layout_toEndOf="@+id/button_play_pause_toggle"/>
|
|
<ImageButton
|
|
android:id="@+id/button_3"
|
|
android:padding="0dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/cast_expanded_controller_control_button_margin"
|
|
android:layout_toRightOf="@+id/button_2"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginStart="@dimen/cast_expanded_controller_control_button_margin"
|
|
android:layout_toEndOf="@+id/button_2"/>
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|