mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-15 03:46:40 +10:00
Project Maintenance
This commit is contained in:
@@ -25,10 +25,10 @@ namespace WPinternals
|
||||
{
|
||||
internal class NokiaModeFlashViewModel : ContextViewModel
|
||||
{
|
||||
private NokiaFlashModel CurrentModel;
|
||||
Action<PhoneInterfaces?> RequestModeSwitch;
|
||||
private object LockDeviceInfo = new object();
|
||||
bool DeviceInfoLoaded = false;
|
||||
private readonly NokiaFlashModel CurrentModel;
|
||||
private readonly Action<PhoneInterfaces?> RequestModeSwitch;
|
||||
private readonly object LockDeviceInfo = new();
|
||||
private bool DeviceInfoLoaded = false;
|
||||
|
||||
internal NokiaModeFlashViewModel(NokiaPhoneModel CurrentModel, Action<PhoneInterfaces?> RequestModeSwitch)
|
||||
: base()
|
||||
@@ -40,7 +40,9 @@ namespace WPinternals
|
||||
internal override void EvaluateViewState()
|
||||
{
|
||||
if (IsActive)
|
||||
{
|
||||
new Thread(() => StartLoadDeviceInfo()).Start();
|
||||
}
|
||||
}
|
||||
|
||||
private bool? _EffectiveBootloaderSecurityStatus = null;
|
||||
@@ -53,7 +55,7 @@ namespace WPinternals
|
||||
set
|
||||
{
|
||||
_EffectiveBootloaderSecurityStatus = value;
|
||||
OnPropertyChanged("EffectiveBootloaderSecurityStatus");
|
||||
OnPropertyChanged(nameof(EffectiveBootloaderSecurityStatus));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,14 +73,9 @@ namespace WPinternals
|
||||
{
|
||||
UefiSecurityStatusResponse SecurityStatus = CurrentModel.ReadSecurityStatus();
|
||||
|
||||
if (SecurityStatus != null)
|
||||
{
|
||||
EffectiveBootloaderSecurityStatus = SecurityStatus.SecureFfuEfuseStatus && !SecurityStatus.AuthenticationStatus && !SecurityStatus.RdcStatus;
|
||||
}
|
||||
else
|
||||
{
|
||||
EffectiveBootloaderSecurityStatus = !Info.IsBootloaderSecure;
|
||||
}
|
||||
EffectiveBootloaderSecurityStatus = SecurityStatus != null
|
||||
? SecurityStatus.SecureFfuEfuseStatus && !SecurityStatus.AuthenticationStatus && !SecurityStatus.RdcStatus
|
||||
: !Info.IsBootloaderSecure;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user