Skip to content

Commit c23dca6

Browse files
alesharikcocool97
andauthored
feat: add fastboot reboot type (#119)
* feat: add fastboot reboot type * feat: add fastboot command to cli --------- Co-authored-by: LIAUD Corentin <[email protected]>
1 parent 2bc338f commit c23dca6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

adb_cli/src/models/reboot_type.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub enum RebootTypeCommand {
88
Recovery,
99
Sideload,
1010
SideloadAutoReboot,
11+
Fastboot,
1112
}
1213

1314
impl From<RebootTypeCommand> for RebootType {
@@ -18,6 +19,7 @@ impl From<RebootTypeCommand> for RebootType {
1819
RebootTypeCommand::Recovery => RebootType::Recovery,
1920
RebootTypeCommand::Sideload => RebootType::Sideload,
2021
RebootTypeCommand::SideloadAutoReboot => RebootType::SideloadAutoReboot,
22+
RebootTypeCommand::Fastboot => RebootType::Fastboot,
2123
}
2224
}
2325
}

adb_client/src/models/reboot_type.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ pub enum RebootType {
1313
Sideload,
1414
/// Same as `Sideload` but reboots after sideloading
1515
SideloadAutoReboot,
16+
/// Reboots to fastboot
17+
Fastboot,
1618
}
1719

1820
impl Display for RebootType {
@@ -23,6 +25,7 @@ impl Display for RebootType {
2325
RebootType::Recovery => write!(f, "recovery"),
2426
RebootType::Sideload => write!(f, "sideload"),
2527
RebootType::SideloadAutoReboot => write!(f, "sideload-auto-reboot"),
28+
RebootType::Fastboot => write!(f, "fastboot"),
2629
}
2730
}
2831
}

0 commit comments

Comments
 (0)