diff options
author | Hridya Valsaraju <hridya@google.com> | 2018-09-24 16:01:35 -0700 |
---|---|---|
committer | Hridya Valsaraju <hridya@google.com> | 2018-09-25 16:25:46 -0700 |
commit | dca328d55cd562e95be03cf0e402fd179b3a02a5 (patch) | |
tree | 9c97a1a35e32fa3dc371468366d91f4751da9230 /fastboot/device/variables.cpp | |
parent | 6590255dbbcbd35c527b3a2e6871275ec88fee64 (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.cpp | 2 |
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; } |