Merge "Adding force_flash functionality" into main

This commit is contained in:
Keith Mok 2023-08-09 20:45:24 +00:00 committed by Gerrit Code Review
commit eb2165079a
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ FlashTask::FlashTask(const std::string& slot, const std::string& pname, const st
void FlashTask::Run() { void FlashTask::Run() {
auto flash = [&](const std::string& partition) { 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 " die("The partition you are trying to flash is dynamic, and "
"should be flashed via fastbootd. Please run:\n" "should be flashed via fastbootd. Please run:\n"
"\n" "\n"