From 0de740364003d16c7e0520b9814f1565e8dc7e66 Mon Sep 17 00:00:00 2001 From: TBM Date: Thu, 6 May 2021 22:21:08 -0300 Subject: [PATCH] Fix FBLOCK state detection on legacy devices (#63) --- PotatoNV-next/Core.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PotatoNV-next/Core.cs b/PotatoNV-next/Core.cs index 5d7dc37..19228c7 100644 --- a/PotatoNV-next/Core.cs +++ b/PotatoNV-next/Core.cs @@ -85,7 +85,13 @@ namespace PotatoNV_next var fblock = fb.Command("oem lock-state info"); var state = Regex.IsMatch(fblock.Payload, @"FB[\w: ]{1,}UNLOCKED"); - + + if (!state) + { + fblock = fb.Command("oem backdoor info"); + state = Regex.IsMatch(fblock.Payload, @"FB[\w: ]{1,}UNLOCKED"); + } + Log.Info($"FBLOCK state: {(state ? "unlocked" : "locked")}"); LogResponse(fblock);