Skip to content

Commit 926f73a

Browse files
committed
Use null-terminated string for the signed token
google/python-adb#152 (comment)
1 parent 3682322 commit 926f73a

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
@@ -237,7 +237,7 @@ def connect(self, rsa_keys=None, transport_timeout_s=None, auth_timeout_s=consta
237237
raise exceptions.InvalidResponseError('Unknown AUTH response: %s %s %s' % (arg0, arg1, banner))
238238

239239
# 6.2. Sign the last ``banner`` and send it in an ``b'AUTH'`` message
240-
signed_token = rsa_key.Sign(banner)
240+
signed_token = rsa_key.Sign(banner) + b'\0'
241241
msg = AdbMessage(constants.AUTH, constants.AUTH_SIGNATURE, 0, signed_token)
242242
self._send(msg, adb_info)
243243

0 commit comments

Comments
 (0)