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