Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gus33000 committed Oct 21, 2024
1 parent 6be24fa commit bc77e8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions WPinternals/Models/Lumia/UEFI/Flash/LumiaFlashAppModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,14 @@ internal void StartAsyncFlash()
ExecuteRawMethod(Request);
}

// Erases MODEM_FS1 and MODEM_FS2, and restores MODEM_FSG to MODEM_FS1
internal void DoFactoryReset()
{
byte[] Request = new byte[4];
ByteOperations.WriteAsciiString(Request, 0, FactoryResetSignature);
ExecuteRawMethod(Request);
}

internal void EndAsyncFlash()
{
byte[] Request = new byte[7];
Expand Down
1 change: 0 additions & 1 deletion WPinternals/ViewModels/LumiaUnlockBootViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ void ReturnFunction(string FFUPath, string LoadersPath, string SBL3Path, string
await StorePaths();

bool AlreadyUnlocked = false;
LumiaFlashAppModel FlashModel = (LumiaFlashAppModel)PhoneNotifier.CurrentModel;

MachineState OriginalState = State;
State = MachineState.LumiaGetGPT; // Stop handling arrival notifications in this screen
Expand Down
2 changes: 1 addition & 1 deletion WPinternals/ViewModels/LumiaUnlockBootloaderViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static async Task<GPT> ReadGPTFromFlashOrBootMgr(PhoneNotifierViewModel N

if (ModernFlashApp)
{
FlashModel.SwitchToFlashAppContext();
FlashModel.SwitchToBootManagerContext();
}
else
{
Expand Down

0 comments on commit bc77e8b

Please sign in to comment.