Skip to content

Commit 639a7fc

Browse files
authored
Use null-terminated string for the signed token
google/python-adb#152 (comment)
1 parent 2776f45 commit 639a7fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adb_shell/adb_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def connect(self, rsa_keys=None, timeout_s=None, auth_timeout_s=constants.DEFAUL
343343
raise exceptions.InvalidResponseError('Unknown AUTH response: %s %s %s' % (arg0, arg1, banner))
344344

345345
# 6.2. Sign the last ``banner`` and send it in an ``b'AUTH'`` message
346-
signed_token = rsa_key.Sign(banner)
346+
signed_token = rsa_key.Sign(banner) + b'\0'
347347
msg = AdbMessage(constants.AUTH, constants.AUTH_SIGNATURE, 0, signed_token)
348348
self._send(msg, adb_info)
349349

0 commit comments

Comments
 (0)