adb: add catch for uninitialized amlib requests

This commit is contained in:
Hay1tsme 2023-08-27 19:18:22 -04:00
parent 37e2da2051
commit dac655b4ae
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ class AimedbProtocol(Protocol):
return
if head.keychip_id == "ABCD1234567" or head.store_id == 0xfff0:
self.logger.warning(f"Request from uninitialized AMLib: {vars(head)}")
handler, resp_code, name = self.request_list.get(head.cmd, (self.handle_default, None, 'default'))
if resp_code is None: