Skip to content

Commit e64ce85

Browse files
committed
Use null-terminated string for the signed token
1 parent 54e9570 commit e64ce85

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

234234
# 6.2. Sign the last ``banner`` and send it in an ``b'AUTH'`` message
235-
signed_token = rsa_key.Sign(banner)
235+
signed_token = rsa_key.Sign(banner) + b'\0'
236236
msg = AdbMessage(constants.AUTH, constants.AUTH_SIGNATURE, 0, signed_token)
237237
await self._send(msg, adb_info)
238238

0 commit comments

Comments
 (0)