mirror of
https://github.com/mashed-potatoes/PotatoNV-crossplatform.git
synced 2024-11-10 01:02:17 +01:00
usrlock: Set WVLOCK too
Change-Id: I4db9d2558c3a6f88317d213cf8605e011fa11eb1 Signed-off-by: Woomymy <woomy@woomy.be>
This commit is contained in:
parent
2e541040fb
commit
8c65273bed
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue