Skip to content

Commit 153feae

Browse files
committed
Use null-terminated string for the signed token
1 parent 0a21c37 commit 153feae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adb_shell/adb_device_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ async def connect(self, rsa_keys=None, transport_timeout_s=None, auth_timeout_s=
217217
raise exceptions.InvalidResponseError('Unknown AUTH response: %s %s %s' % (arg0, arg1, banner))
218218

219219
# 6.2. Sign the last ``banner`` and send it in an ``b'AUTH'`` message
220-
signed_token = rsa_key.Sign(banner)
220+
signed_token = rsa_key.Sign(banner) + b'\0'
221221
msg = AdbMessage(constants.AUTH, constants.AUTH_SIGNATURE, 0, signed_token)
222222
await self._send(msg, adb_info)
223223

0 commit comments

Comments
 (0)