Updating FlashTask to require img-name
Test: tested flash {partition} on pixel Bug: 194686221 Change-Id: I8018e48f68606ec9c559d06973154d79e7c0634a
This commit is contained in:
parent
980985af6e
commit
f1ddba9dfd
2 changed files with 0 additions and 6 deletions
|
@ -20,11 +20,6 @@
|
|||
#include "super_flash_helper.h"
|
||||
|
||||
using namespace std::string_literals;
|
||||
|
||||
FlashTask::FlashTask(const std::string& slot, const std::string& pname, const bool apply_vbmeta)
|
||||
: pname_(pname), fname_(find_item(pname)), slot_(slot), apply_vbmeta_(apply_vbmeta) {
|
||||
if (fname_.empty()) die("cannot determine image filename for '%s'", pname_.c_str());
|
||||
}
|
||||
FlashTask::FlashTask(const std::string& _slot, const std::string& _pname, const std::string& _fname,
|
||||
const bool apply_vbmeta)
|
||||
: pname_(_pname), fname_(_fname), slot_(_slot), apply_vbmeta_(apply_vbmeta) {}
|
||||
|
|
|
@ -32,7 +32,6 @@ class Task {
|
|||
|
||||
class FlashTask : public Task {
|
||||
public:
|
||||
FlashTask(const std::string& slot, const std::string& pname, const bool apply_vbmeta);
|
||||
FlashTask(const std::string& slot, const std::string& pname, const std::string& fname,
|
||||
const bool apply_vbmeta);
|
||||
|
||||
|
|
Loading…
Reference in a new issue