diff options
author | David Anderson <dvander@google.com> | 2018-08-02 11:05:00 -0700 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2018-08-09 15:06:53 -0700 |
commit | d9ba061e772e9f3aae0913e1e8644251608304da (patch) | |
tree | 043b679ea507a33047b4c58e576df0f87a34b03e /fastboot/device/variables.cpp | |
parent | 0d4277d7b34eb1f5e37f268732ad7230ad903855 (diff) |
fastbootd: Add is-userspace variable.
Bug: 78793464
Test: fastboot getvar is-userspace
returns true for fastbootd
fastboot getvar is-userspace
returns false or error for bootloader fastboot.
Change-Id: I80e1ef6dcf3922e4f555cb2e409e3e098c16fbbc
Diffstat (limited to 'fastboot/device/variables.cpp')
-rw-r--r-- | fastboot/device/variables.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fastboot/device/variables.cpp b/fastboot/device/variables.cpp index 70e4bcc4c..a5dead212 100644 --- a/fastboot/device/variables.cpp +++ b/fastboot/device/variables.cpp @@ -165,3 +165,7 @@ bool GetPartitionIsLogical(FastbootDevice* device, const std::vector<std::string } return device->WriteFail("Partition not found"); } + +bool GetIsUserspace(FastbootDevice* device, const std::vector<std::string>& /* args */) { + return device->WriteOkay("yes"); +} |