diff --git a/androidtv/__init__.py b/androidtv/__init__.py index 8a0fe857..16e817a3 100644 --- a/androidtv/__init__.py +++ b/androidtv/__init__.py @@ -47,12 +47,14 @@ def setup(host, port=5555, adbkey='', adb_server_ip='', adb_server_port=5037, st atv = AndroidTVSync(host, port, adbkey, adb_server_ip, adb_server_port, state_detection_rules, signer) atv.adb_connect(auth_timeout_s=auth_timeout_s) atv.device_properties = atv.get_device_properties() + atv.installed_apps = atv.get_installed_apps() return atv if device_class == 'firetv': ftv = FireTVSync(host, port, adbkey, adb_server_ip, adb_server_port, state_detection_rules, signer) ftv.adb_connect(auth_timeout_s=auth_timeout_s) ftv.device_properties = ftv.get_device_properties() + ftv.installed_apps = ftv.get_installed_apps() return ftv if device_class != 'auto': @@ -66,6 +68,9 @@ def setup(host, port=5555, adbkey='', adb_server_ip='', adb_server_port=5037, st # get device properties aftv.device_properties = aftv.get_device_properties() + # get the installed apps + aftv.installed_apps = aftv.get_installed_apps() + # Fire TV if aftv.device_properties.get('manufacturer') == 'Amazon': aftv.__class__ = FireTVSync diff --git a/androidtv/setup_async.py b/androidtv/setup_async.py index 41388e2c..3a4c036b 100644 --- a/androidtv/setup_async.py +++ b/androidtv/setup_async.py @@ -64,6 +64,9 @@ async def setup(host, port=5555, adbkey='', adb_server_ip='', adb_server_port=50 # get device properties aftv.device_properties = await aftv.get_device_properties() + # get the installed apps + aftv.installed_apps = await aftv.get_installed_apps() + # Fire TV if aftv.device_properties.get('manufacturer') == 'Amazon': aftv.__class__ = FireTVAsync