Skip to content

Conversation

@ius
Copy link

@ius ius commented Nov 30, 2025

Chromecast (HD) with Android 14 currently fails to return current_app correctly. See home-assistant/core#153778.

The 'Chromecast only' special cased command constants prevent the code path from reaching the (working) Android 13/14 constants. Fixed it by relying on the generic constants for Android 14.

Tested using:

#!/usr/bin/env python3
from androidtv.androidtv.androidtv_sync import AndroidTVSync

atv = AndroidTVSync("192.168.0.29", 5555, "/home/user/.android/adbkey")
atv.adb_connect()
atv.get_device_properties()

print("current_app:", atv.current_app())
print(atv.update())

Chromecast HD with Android 14 requires the generic Android 13/14 constants
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