diff options
author | David Anderson <dvander@google.com> | 2018-09-04 18:11:03 -0700 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2018-09-05 12:52:15 -0700 |
commit | c091c176cbc93044c4d70d7f733fef4c59672f96 (patch) | |
tree | 4d5f6a962c878c75d5fe530200301e0b6146e436 /fastboot/device/variables.cpp | |
parent | 56843eec457cc06ccf7d39db56ebcd3dba25df8b (diff) |
fastbootd: Implement getvar hw-revision.
Bug: 78793464
Test: fastboot getvar hw-revision works
fuzzy_fastboot Conformance.GetVarRevision passes
Change-Id: I5a3e9893d61e18567f2f818ef06cad8e862d637f
Diffstat (limited to 'fastboot/device/variables.cpp')
-rw-r--r-- | fastboot/device/variables.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fastboot/device/variables.cpp b/fastboot/device/variables.cpp index 68efa08c3..a9601896d 100644 --- a/fastboot/device/variables.cpp +++ b/fastboot/device/variables.cpp @@ -256,3 +256,9 @@ std::vector<std::vector<std::string>> GetAllPartitionArgsNoSlot(FastbootDevice* } return args; } + +bool GetHardwareRevision(FastbootDevice* /* device */, const std::vector<std::string>& /* args */, + std::string* message) { + *message = android::base::GetProperty("ro.revision", ""); + return true; +} |