adb: type checking fix

This commit is contained in:
Hay1tsme 2023-05-22 17:36:15 -04:00
parent afef15fb00
commit 8f29c796b1

View File

@ -82,7 +82,7 @@ class AimedbProtocol(Protocol):
resp = handler(decrypted, resp_code)
if type(resp) == ADBBaseResponse:
if type(resp) == ADBBaseResponse or issubclass(type(resp), ADBBaseResponse):
resp_bytes = resp.make()
if len(resp_bytes) != resp.head.length:
resp_bytes = self.append_padding(resp_bytes)