summaryrefslogtreecommitdiffstats
path: root/recovery_main.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-09-24 21:41:22 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-09-24 21:41:22 +0200
commitc2e6f0410c3d730bfc043ecd90b13df8c4536464 (patch)
tree3097d45168b65d735e73f91fc40b7dc740155d9f /recovery_main.cpp
parentMerge "Refactor update_verifier into a class" (diff)
parentEnter into userspace fastboot only if the device supports it (diff)
downloadandroid_bootable_recovery-c2e6f0410c3d730bfc043ecd90b13df8c4536464.tar
android_bootable_recovery-c2e6f0410c3d730bfc043ecd90b13df8c4536464.tar.gz
android_bootable_recovery-c2e6f0410c3d730bfc043ecd90b13df8c4536464.tar.bz2
android_bootable_recovery-c2e6f0410c3d730bfc043ecd90b13df8c4536464.tar.lz
android_bootable_recovery-c2e6f0410c3d730bfc043ecd90b13df8c4536464.tar.xz
android_bootable_recovery-c2e6f0410c3d730bfc043ecd90b13df8c4536464.tar.zst
android_bootable_recovery-c2e6f0410c3d730bfc043ecd90b13df8c4536464.zip
Diffstat (limited to 'recovery_main.cpp')
-rw-r--r--recovery_main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp
index 29a5865a2..78350944c 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;