Skip to content

Commit

Permalink
Use null-terminated string for the signed token
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffLIrion committed Aug 1, 2020
1 parent 54e9570 commit e64ce85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adb_shell/adb_device_async.py
Expand Up @@ -232,7 +232,7 @@ async def connect(self, rsa_keys=None, transport_timeout_s=None, auth_timeout_s=
raise exceptions.InvalidResponseError('Unknown AUTH response: %s %s %s' % (arg0, arg1, banner))

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

Expand Down

0 comments on commit e64ce85

Please sign in to comment.