diff --git a/adb_shell/adb_device.py b/adb_shell/adb_device.py index 6886cef..3d1b92d 100644 --- a/adb_shell/adb_device.py +++ b/adb_shell/adb_device.py @@ -237,7 +237,7 @@ def connect(self, rsa_keys=None, transport_timeout_s=None, auth_timeout_s=consta raise exceptions.InvalidResponseError('Unknown AUTH response: %s %s %s' % (arg0, arg1, banner)) # 6.2. Sign the last ``banner`` and send it in an ``b'AUTH'`` message - signed_token = rsa_key.Sign(banner) + signed_token = rsa_key.Sign(banner) + b'\0' msg = AdbMessage(constants.AUTH, constants.AUTH_SIGNATURE, 0, signed_token) self._send(msg, adb_info)