JeffLIrion / python-androidtv

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

Fix for current application in android 11 #321

Closed grimpy closed 2 years ago

grimpy commented 2 years 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 2 years ago

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

grimpy commented 2 years 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 2 years ago

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