Skip to content

Commit

Permalink
允许fastbootd下刷入rec/boot
Browse files Browse the repository at this point in the history
  • Loading branch information
mujianwu committed Dec 29, 2024
1 parent 3650b67 commit 6aa9d0d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions UotanToolbox/Features/Basicflash/BasicflashView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private async Task FlashRec(string shell)
if (await GetDevicesInfo.SetDevicesInfoLittle())
{
MainViewModel sukiViewModel = GlobalData.MainViewModelInstance;
if (sukiViewModel.Status == GetTranslation("Home_Fastboot"))
if (sukiViewModel.Status == GetTranslation("Home_Fastboot") || sukiViewModel.Status == GetTranslation("Home_Fastbootd"))
{
Global.checkdevice = false;
BusyFlash.IsBusy = true;
Expand Down Expand Up @@ -631,9 +631,8 @@ private async Task FlashBoot(string boot)
{
if (await GetDevicesInfo.SetDevicesInfoLittle())
{

MainViewModel sukiViewModel = GlobalData.MainViewModelInstance;
if (sukiViewModel.Status == GetTranslation("Home_Fastboot"))
if (sukiViewModel.Status == GetTranslation("Home_Fastboot") || sukiViewModel.Status == GetTranslation("Home_Fastbootd"))
{
Global.checkdevice = false;
string output = await CallExternalProgram.Fastboot($"-s {Global.thisdevice} flash boot \"{boot}\"");
Expand Down

0 comments on commit 6aa9d0d

Please sign in to comment.