Merge "Enter into userspace fastboot only if the device supports it"

This commit is contained in:
Treehugger Robot
2018-09-24 19:41:22 +00:00
committed by Gerrit Code Review

View File

@@ -364,7 +364,8 @@ int main(int argc, char** argv) {
std::string option = OPTIONS[option_index].name;
if (option == "locale") {
locale = optarg;
} else if (option == "fastboot") {
} else if (option == "fastboot" &&
android::base::GetBoolProperty("ro.boot.logical_partitions", false)) {
fastboot = true;
}
break;