Added support for Delete Task
Test: tested delete-logical-partition {partition} and flashall on Raven
Change-Id: I04f07c8132159deda42434b9178e8c98d5ab768b
Bug: 194686221
diff --git a/fastboot/task.cpp b/fastboot/task.cpp
index 799b5c5..e55cda5 100644
--- a/fastboot/task.cpp
+++ b/fastboot/task.cpp
@@ -180,3 +180,9 @@
};
do_for_partitions(pname_, slot_, resize_partition, false);
}
+
+DeleteTask::DeleteTask(FlashingPlan* fp, const std::string& pname) : fp_(fp), pname_(pname){};
+
+void DeleteTask::Run() {
+ fp_->fb->DeletePartition(pname_);
+}
\ No newline at end of file