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

Commit 31d40d02 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "adbd: fix remount on non-system-as-root devices."

am: c2501fda

Change-Id: Idc56e32bc71aa82e0a80cbb1ac537b06e89c7129
parents 31e1c3f1 c2501fda
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -209,12 +209,8 @@ void remount_service(unique_fd fd, const std::string& cmd) {
    bool system_verified = !(android::base::GetProperty("partition.system.verified", "").empty());
    bool vendor_verified = !(android::base::GetProperty("partition.vendor.verified", "").empty());

    std::vector<std::string> partitions{"/odm", "/oem", "/product_services", "/product", "/vendor"};
    if (android::base::GetBoolProperty("ro.build.system_root_image", false)) {
        partitions.push_back("/");
    } else {
        partitions.push_back("/system");
    }
    std::vector<std::string> partitions{"/",        "/odm",   "/oem", "/product_services",
                                        "/product", "/vendor"};

    bool verity_enabled = (system_verified || vendor_verified);