JeffLIrion / python-androidtv

Communicate with an Android TV or Fire TV device via ADB over a network.
MIT License
165 stars 57 forks source link

Fix for current application in android 11 #321

Closed grimpy closed 1 year ago

grimpy commented 1 year ago

Parsing of current app is broken incase google assitant gets triggered and closed again. Suddenly we have Windows #1 as mOwnerUid=10050 showForAllUsers=false package=com.google.android.inputmethod.latin appop=NONE this is not correct.

In this pull request based on the link issue, I've moved the command to find the windows that has the inputfocus instead

See: https://github.com/home-assistant/core/issues/69723

JeffLIrion commented 1 year ago

Thanks for contributing this! Please fix test_constants.py and any other failing tests.

grimpy commented 1 year ago

@JeffLIrion seems I was hastly when I checked why the tests failed, I noticed a bunch of adb connect failures and ignored it, they should be good this time

grimpy commented 1 year ago

Thanks for merging can we bump the version so we can bump the dependency on HA aswell?