usrlock: Set WVLOCK too

Change-Id: I4db9d2558c3a6f88317d213cf8605e011fa11eb1
Signed-off-by: Woomymy <woomy@woomy.be>
This commit is contained in:
Woomymy 2023-11-03 19:17:03 +01:00 committed by Andrey Smirnoff
parent 2e541040fb
commit 8c65273bed

View file

@ -72,6 +72,7 @@ def write_nvme(key: str):
fb = fastboot.Fastboot() fb = fastboot.Fastboot()
fb.connect() fb.connect()
fb.write_nvme("USRKEY", m.digest()) fb.write_nvme("USRKEY", m.digest())
fb.write_nvme("WVLOCK", key.encode())
ui.success("Bootloader code updated") ui.success("Bootloader code updated")
ui.info("Rebooting device...") ui.info("Rebooting device...")
fb.reboot() fb.reboot()