From 77af6affd8ff78c612a47e9261258c7369764bfc Mon Sep 17 00:00:00 2001 From: Daniel Zheng Date: Thu, 20 Apr 2023 14:30:28 -0700 Subject: [PATCH] Removing {userspace} from reboot task' Removing as we're no longer support reboot userspace in fastboot-info.txt. Use reboot fastboot instead Test: fastboot reboot fastboot Change-Id: Ibd8bf597615dacde23ad446bde4f23837686710b --- fastboot/task.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastboot/task.cpp b/fastboot/task.cpp index 054c1edba..ce46e91d5 100644 --- a/fastboot/task.cpp +++ b/fastboot/task.cpp @@ -65,7 +65,7 @@ RebootTask::RebootTask(const FlashingPlan* fp, const std::string& reboot_target) : reboot_target_(reboot_target), fp_(fp){}; void RebootTask::Run() { - if ((reboot_target_ == "userspace" || reboot_target_ == "fastboot")) { + if (reboot_target_ == "fastboot") { if (!is_userspace_fastboot()) { reboot_to_userspace_fastboot(); fp_->fb->WaitForDisconnect();