summaryrefslogtreecommitdiff
path: root/fastboot/device/variables.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-09-26 16:21:28 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-09-26 16:21:28 +0000
commite4931c5bd4d8acd85f1ebfc93759754d7e5866e8 (patch)
tree6874197507b07bdc588269eb205b16f77c352d27 /fastboot/device/variables.cpp
parent6cc0d76d834dadc67ee23cbce4dbda7547ff6132 (diff)
parentdca328d55cd562e95be03cf0e402fd179b3a02a5 (diff)
Merge "Support 'fastboot getvar unlocked' command."
Diffstat (limited to 'fastboot/device/variables.cpp')
-rw-r--r--fastboot/device/variables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/device/variables.cpp b/fastboot/device/variables.cpp
index 75352489e..002e04349 100644
--- a/fastboot/device/variables.cpp
+++ b/fastboot/device/variables.cpp
@@ -148,7 +148,7 @@ bool GetMaxDownloadSize(FastbootDevice* /* device */, const std::vector<std::str
bool GetUnlocked(FastbootDevice* /* device */, const std::vector<std::string>& /* args */,
std::string* message) {
- *message = "yes";
+ *message = GetDeviceLockStatus() ? "no" : "yes";
return true;
}