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:
parent
da46f9067a
commit
7f41a2cc4d
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue