Fix FBLOCK state detection on legacy devices (#63)

This commit is contained in:
TBM 2021-05-06 22:21:08 -03:00 committed by GitHub
parent 79552c2097
commit 0de7403640
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);