Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge "Adding force_flash functionality" into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ek9852 authored and Gerrit Code Review committed Aug 9, 2023
2 parents 86f037c + 376b704 commit eb21650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastboot/task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit eb21650

Please sign in to comment.