From dac655b4ae0f36f1addb6d540e229c2366f60a3f Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Sun, 27 Aug 2023 19:18:22 -0400 Subject: [PATCH] adb: add catch for uninitialized amlib requests --- core/aimedb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/aimedb.py b/core/aimedb.py index f608231..3ac8b9d 100644 --- a/core/aimedb.py +++ b/core/aimedb.py @@ -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: