Enter into userspace fastboot only if the device supports it

Test: For devices not supporting logical partitions, 'adb reboot
fastboot' command reboots into  Android.
Bug: 78793464

Change-Id: Ie6c6ccdebfee9302a9996ac5bc66069dbd817987
This commit is contained in:
Hridya Valsaraju 2018-09-19 16:29:01 -07:00
parent da46f9067a
commit 7f41a2cc4d

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;