summaryrefslogtreecommitdiff
path: root/fastboot/device/variables.cpp
diff options
context:
space:
mode:
authorHridya Valsaraju <hridya@google.com>2018-09-24 16:01:35 -0700
committerHridya Valsaraju <hridya@google.com>2018-09-25 16:25:46 -0700
commitdca328d55cd562e95be03cf0e402fd179b3a02a5 (patch)
tree9c97a1a35e32fa3dc371468366d91f4751da9230 /fastboot/device/variables.cpp
parent6590255dbbcbd35c527b3a2e6871275ec88fee64 (diff)
Support 'fastboot getvar unlocked' command.
Test: fastboot getvar unlocked. Bug: 78793464 Change-Id: Ie59c6db90a503e9a6e9ac1c416e4ee5deac60479
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;
}