androidtv package¶
Submodules¶
Module contents¶
Connect to a device and determine whether it’s an Android TV or an Amazon Fire TV.
ADB Debugging must be enabled.
-
androidtv.
setup
(host, adbkey='', adb_server_ip='', adb_server_port=5037, device_class='auto')[source]¶ Connect to a device and determine whether it’s an Android TV or an Amazon Fire TV.
Parameters: - host (str) – The address of the device in the format
<ip address>:<host>
- adbkey (str) – The path to the
adbkey
file for ADB authentication; the fileadbkey.pub
must be in the same directory - adb_server_ip (str) – The IP address of the ADB server
- adb_server_port (int) – The port for the ADB server
- device_class (str) – The type of device:
'auto'
(detect whether it is an Android TV or Fire TV device),'androidtv'
, or'firetv'`
Returns: aftv – The representation of the device
Return type: - host (str) – The address of the device in the format