Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f41a2cc authored by Hridya Valsaraju's avatar Hridya Valsaraju
Browse files

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
parent da46f906
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;