This commit is contained in:
Gustave Monce
2024-10-12 13:40:24 +02:00
parent 2d5b0fd3db
commit 00407d6f24
27 changed files with 99 additions and 90 deletions
+13 -5
View File
@@ -289,9 +289,17 @@ namespace WPinternals
return;
}
Dictionary<string, object> Params = new();
Params.Add("DeviceMode", DeviceMode);
Params.Add("ResetMethod", "HwReset");
Dictionary<string, object> Params = new()
{
{
"DeviceMode",
DeviceMode
},
{
"ResetMethod",
"HwReset"
}
};
try
{
((NokiaPhoneModel)PhoneNotifier.CurrentModel).ExecuteJsonMethodAsync("SetDeviceMode", Params);
@@ -1077,7 +1085,7 @@ namespace WPinternals
// We've been reading the GPT, so we let the phone reset once more to be sure that memory maps are the same
WPinternalsStatus LastStatus = WPinternalsStatus.Undefined;
List<FlashPart> Parts = new();
List<FlashPart> Parts = [];
FlashPart Part = new();
Part.StartSector = (uint)Target.FirstSector;
Part.Stream = SB;
@@ -1286,7 +1294,7 @@ namespace WPinternals
// We've been reading the GPT, so we let the phone reset once more to be sure that memory maps are the same
WPinternalsStatus LastStatus = WPinternalsStatus.Undefined;
List<FlashPart> Parts = new();
List<FlashPart> Parts = [];
FlashPart Part = new();
Part.StartSector = (uint)Target.FirstSector;
Part.Stream = SB;