From 7f41a2cc4dccb9af3cdaf23e6c61f90645cbc964 Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju Date: Wed, 19 Sep 2018 16:29:01 -0700 Subject: 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 --- recovery_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recovery_main.cpp b/recovery_main.cpp index c3168fc23..c4e3af207 100644 --- a/recovery_main.cpp +++ b/recovery_main.cpp @@ -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; -- cgit v1.2.3