diff options
author | Hridya Valsaraju <hridya@google.com> | 2018-09-19 16:29:01 -0700 |
---|---|---|
committer | Hridya Valsaraju <hridya@google.com> | 2018-09-19 21:35:47 -0700 |
commit | 7f41a2cc4dccb9af3cdaf23e6c61f90645cbc964 (patch) | |
tree | 68596cb18a08d228352a41f874c228b2ff9d62c9 /recovery_main.cpp | |
parent | da46f9067a66ee4d58934d1c6e17d0397ea90da7 (diff) |
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
Diffstat (limited to 'recovery_main.cpp')
-rw-r--r-- | recovery_main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp index c3168fc2..c4e3af20 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; |