Skip to content

Fix Molotov launch command after Fubo acquisition#829

Open
HerissonMan-TMP wants to merge 1 commit into
PRProd:mainfrom
HerissonMan-TMP:main
Open

Fix Molotov launch command after Fubo acquisition#829
HerissonMan-TMP wants to merge 1 commit into
PRProd:mainfrom
HerissonMan-TMP:main

Conversation

@HerissonMan-TMP
Copy link
Copy Markdown

Problem

The Molotov app no longer launches on Android-based devices. The current adbLaunchCommand uses am start -n tv.molotov.app/tv.molotov.android.main.MainActivity, which fails with:
Error type 3
Error: Activity class {tv.molotov.app/tv.molotov.android.main.MainActivity} does not exist.

This is because Molotov was acquired by Fubo and the app was rebuilt on top of the Fubo codebase. The main activity was renamed to:
tv.fubo.mobile.presentation.onboarding.dispatch.controller.DispatchActivity

Fix

Replaced the explicit am start -n ... command with:
adb shell monkey -p tv.molotov.app -c android.intent.category.LAUNCHER 1

This launches the app by package name + LAUNCHER category, equivalent to clicking its icon in the Android launcher. It bypasses the activity-name issue entirely and should be resilient to future renames as Molotov/Fubo continues to merge their codebases.

Applied to all Android-based device families: amazon-fire, chromecast, homatics, nvidia-shield, onn, xiaomi. apple-tv is unchanged since it uses a different mechanism.

Testing

Tested on NVIDIA Shield TV Pro 2019 with the Home Assistant androidtv integration. App launches correctly from the firemote card. Verified via dumpsys window windows that the Fubo activity is what gets resolved when launching by package name.

The previous adbLaunchCommand pointed to tv.molotov.android.main.MainActivity, which no longer exists since Molotov was acquired by Fubo and the main activity was renamed to tv.fubo.mobile.presentation.onboarding.dispatch.controller.DispatchActivity.

Replaced "am start -n ..." with "monkey -p tv.molotov.app -c android.intent.category.LAUNCHER 1" for all Android-based device families (amazon-fire, chromecast, homatics, nvidia-shield, onn, xiaomi). This launches the app by package name and category, making it resilient to future activity renames within the Molotov/Fubo app.

Tested on NVIDIA Shield TV Pro 2019 with Home Assistant androidtv integration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant