Closed Blacksli closed 1 year ago
Hey there @jefflirion, @ollo69, mind taking a look at this issue as it has been labeled with an integration (androidtv
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
androidtv documentation androidtv source (message by IssueLinks)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
Android TV box based on Android 12 not show current app
https://github.com/JeffLIrion/python-androidtv/blob/428e835ee14ff7f0f274513a2d386c9cc22ab6b5/androidtv/basetv/basetv.py#L157
This line is limited to the 11th version. Need to add 12.
The result of running the command on my TV Box with Android 12
dumpsys window windows
and
CURRENT_APP=$(dumpsys window windows | grep 'mObscuringWindow') && CURRENT_APP=${CURRENT_APP%%/*} && CURRENT_APP=${CURRENT_APP##* } && echo $CURRENT_APP
return
adb_response: com.ottplay.ottplay
There are also mentions of the 11th version of android in other methods of this component. It needs to be updated to version 12.
What version of Home Assistant Core has the issue?
2023.3.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Android TV
Link to integration documentation on our website
https://www.home-assistant.io/integrations/androidtv
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response