From f92196747fa23f7fbc703d6be833e528efceb97a Mon Sep 17 00:00:00 2001 From: Primal-Origin <208849103+Primal-Origin@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:17:06 +0000 Subject: [PATCH 1/2] init_flash: use the 00cb reset blob for 06cb:00b7 Fixes the 0404 failure at reset_blob on HP EliteBook x360 1040 G6. Tested only on that laptop. --- validitysensor/init_flash.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/validitysensor/init_flash.py b/validitysensor/init_flash.py index 375667a..464f1b7 100644 --- a/validitysensor/init_flash.py +++ b/validitysensor/init_flash.py @@ -202,7 +202,11 @@ def init_flash(): if (dev.idVendor, dev.idProduct) == (0x138a, 0x00ab): prepare_clean_slate_reset() - rsp = usb.cmd(reset_blob) + if (dev.idVendor, dev.idProduct) == (0x06cb, 0x00b7): + from . import blobs_00cb + rsp = usb.cmd(blobs_00cb.reset_blob) + else: + rsp = usb.cmd(reset_blob) status, = unpack(' Date: Wed, 18 Nov 2026 09:53:42 +0000 Subject: [PATCH 2/2] blobs: use the 00cb blob set for 06cb:00b7 Same blobs as blobs_9a except reset_blob, which this chip accepts (9a's is rejected with 0404). Done in blobs.py so factory_reset in sensor.py gets it too, and the init_flash.py special case is reverted. Suggested by Karloss1234 in the PR. --- validitysensor/blobs.py | 8 ++++---- validitysensor/init_flash.py | 6 +----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/validitysensor/blobs.py b/validitysensor/blobs.py index ec43954..7e705ab 100644 --- a/validitysensor/blobs.py +++ b/validitysensor/blobs.py @@ -14,10 +14,10 @@ def __load_blob(blob: str) -> bytes: if usb.usb_dev().idProduct == 0x009a: from . import blobs_9a as blobs elif usb.usb_dev().idProduct == 0x00b7: - # The 138a:00ab reset payload has not been validated on this - # 0x969 variant. Keep the established non-destructive init blobs - # until a complete 06cb:00b7 Windows provisioning capture exists. - from . import blobs_9a as blobs + # HP EliteBook x360 1040 G6 (0x969). Same blobs as blobs_9a except + # reset_blob, and this one is accepted by the chip where the 9a + # reset_blob is rejected with status 0404. + from . import blobs_00cb as blobs elif usb.usb_dev().idProduct == 0x00cb: from . import blobs_00cb as blobs # HP Pavilion x360 14-dh; 0x969, own reset_blob diff --git a/validitysensor/init_flash.py b/validitysensor/init_flash.py index 464f1b7..375667a 100644 --- a/validitysensor/init_flash.py +++ b/validitysensor/init_flash.py @@ -202,11 +202,7 @@ def init_flash(): if (dev.idVendor, dev.idProduct) == (0x138a, 0x00ab): prepare_clean_slate_reset() - if (dev.idVendor, dev.idProduct) == (0x06cb, 0x00b7): - from . import blobs_00cb - rsp = usb.cmd(blobs_00cb.reset_blob) - else: - rsp = usb.cmd(reset_blob) + rsp = usb.cmd(reset_blob) status, = unpack('