Merge "Adding force_flash functionality" into main am: eb2165079a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2700958 Change-Id: I1835f087e3724654806c0ac0cbe6ee6d005177dd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
c5e5e488b8
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ FlashTask::FlashTask(const std::string& slot, const std::string& pname, const st
|
|||
|
||||
void FlashTask::Run() {
|
||||
auto flash = [&](const std::string& partition) {
|
||||
if (should_flash_in_userspace(partition) && !is_userspace_fastboot()) {
|
||||
if (should_flash_in_userspace(partition) && !is_userspace_fastboot() && !fp_->force_flash) {
|
||||
die("The partition you are trying to flash is dynamic, and "
|
||||
"should be flashed via fastbootd. Please run:\n"
|
||||
"\n"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue