Just upgraded to 83.2 and got new adb keys. Running the above I get:
>>> import firetv
>>> host = '192.168.1.41:5555'
>>> abdkey = '/config/adbkey'
>>> f = firetv.FireTV(host, abdkey)
Traceback (most recent call last):
File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 226, in Unpack
cls.format, message)
struct.error: unpack requires a buffer of 24 bytes
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/config/deps/lib/python3.6/site-packages/firetv/__init__.py", line 106, in __init__
self.connect()
File "/config/deps/lib/python3.6/site-packages/firetv/__init__.py", line 119, in connect
self._adb = adb_commands.AdbCommands().ConnectDevice(**kwargs)
File "/config/deps/lib/python3.6/site-packages/adb/adb_commands.py", line 142, in ConnectDevice
self._Connect(**kwargs)
File "/config/deps/lib/python3.6/site-packages/adb/adb_commands.py", line 173, in _Connect
conn_str = self.protocol_handler.Connect(self._handle, banner=banner, **kwargs)
File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 314, in Connect
cmd, arg0, arg1, banner = cls.Read(usb, [b'CNXN', b'AUTH'])
File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 243, in Read
cmd, arg0, arg1, data_length, data_checksum = cls.Unpack(msg)
File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 228, in Unpack
raise ValueError('Unable to unpack ADB command.', cls.format, message, e)
ValueError: ('Unable to unpack ADB command.', b'<6I', b'', error('unpack requires a buffer of 24 bytes',))
>>>
And this:
>>> f = firetv.FireTV(host, abdkey)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/config/deps/lib/python3.6/site-packages/firetv/__init__.py", line 106, in __init__
self.connect()
File "/config/deps/lib/python3.6/site-packages/firetv/__init__.py", line 119, in connect
self._adb = adb_commands.AdbCommands().ConnectDevice(**kwargs)
File "/config/deps/lib/python3.6/site-packages/adb/adb_commands.py", line 142, in ConnectDevice
self._Connect(**kwargs)
File "/config/deps/lib/python3.6/site-packages/adb/adb_commands.py", line 173, in _Connect
conn_str = self.protocol_handler.Connect(self._handle, banner=banner, **kwargs)
File "/config/deps/lib/python3.6/site-packages/adb/adb_protocol.py", line 336, in Connect
data=rsa_keys[0].GetPublicKey() + b'\0')
TypeError: must be str, not bytes
>>>
Any ideas?