From c23dca61d703bbcbe41719bdf5153fc9d7eb334d Mon Sep 17 00:00:00 2001 From: alesharik Date: Mon, 12 May 2025 20:47:56 +0300 Subject: [PATCH] feat: add fastboot reboot type (#119) * feat: add fastboot reboot type * feat: add fastboot command to cli --------- Co-authored-by: LIAUD Corentin --- adb_cli/src/models/reboot_type.rs | 2 ++ adb_client/src/models/reboot_type.rs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/adb_cli/src/models/reboot_type.rs b/adb_cli/src/models/reboot_type.rs index 06b4f6d..91e37ae 100644 --- a/adb_cli/src/models/reboot_type.rs +++ b/adb_cli/src/models/reboot_type.rs @@ -8,6 +8,7 @@ pub enum RebootTypeCommand { Recovery, Sideload, SideloadAutoReboot, + Fastboot, } impl From for RebootType { @@ -18,6 +19,7 @@ impl From for RebootType { RebootTypeCommand::Recovery => RebootType::Recovery, RebootTypeCommand::Sideload => RebootType::Sideload, RebootTypeCommand::SideloadAutoReboot => RebootType::SideloadAutoReboot, + RebootTypeCommand::Fastboot => RebootType::Fastboot, } } } diff --git a/adb_client/src/models/reboot_type.rs b/adb_client/src/models/reboot_type.rs index e340889..5ddf3e3 100644 --- a/adb_client/src/models/reboot_type.rs +++ b/adb_client/src/models/reboot_type.rs @@ -13,6 +13,8 @@ pub enum RebootType { Sideload, /// Same as `Sideload` but reboots after sideloading SideloadAutoReboot, + /// Reboots to fastboot + Fastboot, } impl Display for RebootType { @@ -23,6 +25,7 @@ impl Display for RebootType { RebootType::Recovery => write!(f, "recovery"), RebootType::Sideload => write!(f, "sideload"), RebootType::SideloadAutoReboot => write!(f, "sideload-auto-reboot"), + RebootType::Fastboot => write!(f, "fastboot"), } } }