Skip to content

Commit 901ad80

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

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
@@ -224,7 +224,7 @@ def connect(self, rsa_keys=None, timeout_s=None, auth_timeout_s=constants.DEFAUL
224224
raise exceptions.InvalidResponseError('Unknown AUTH response: %s %s %s' % (arg0, arg1, banner))
225225

226226
# 6.2. Sign the last ``banner`` and send it in an ``b'AUTH'`` message
227-
signed_token = rsa_key.Sign(banner)
227+
signed_token = rsa_key.Sign(banner) + b'\0'
228228
msg = AdbMessage(constants.AUTH, constants.AUTH_SIGNATURE, 0, signed_token)
229229
self._send(msg, adb_info)
230230

0 commit comments

Comments
 (0)