Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7723c72c authored by David Anderson's avatar David Anderson Committed by Gerrit Code Review
Browse files

Merge "Unable to mount filesystem in fastbootd mode on the user build."

parents 4efe03b4 09090946
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@

#include <android-base/file.h>
#include <android-base/logging.h>
#include <android-base/properties.h>
#include <android-base/strings.h>
#include <ext4_utils/ext4_utils.h>
#include <fs_mgr_overlayfs.h>
@@ -162,7 +163,9 @@ int Flash(FastbootDevice* device, const std::string& partition_name) {
                partition_name == "boot_b")) {
        CopyAVBFooter(&data, block_device_size);
    }
    if (android::base::GetProperty("ro.system.build.type", "") != "user") {
        WipeOverlayfsForPartition(device, partition_name);
    }
    int result = FlashBlockDevice(handle.fd(), data);
    sync();
    return result;