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

am: 31d40d0235

Change-Id: I81de8d605b96d2e7ad55d452e85d63cd185e2224
This commit is contained in:
Josh Gao 2018-09-14 17:41:01 -07:00 committed by android-build-merger
commit 077e5b7dbf

View file

@ -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);