diff options
author | Hridya Valsaraju <hridya@google.com> | 2018-09-28 11:41:22 -0700 |
---|---|---|
committer | Hridya Valsaraju <hridya@google.com> | 2018-09-28 14:28:49 -0700 |
commit | 47658caae4ded29374c12e96394636b71cf834af (patch) | |
tree | 1e395e74395fc64aa65acdbe0b473a5885d1c256 /fastboot/device/variables.h | |
parent | 7c9bbe948b446b6e995ea9fdd3a3226362372ca9 (diff) | |
download | system_core-47658caae4ded29374c12e96394636b71cf834af.tar.gz system_core-47658caae4ded29374c12e96394636b71cf834af.tar.bz2 system_core-47658caae4ded29374c12e96394636b71cf834af.zip |
Interface with health HAL to read battery voltage
Bug: 78793464
Test: fastboot getvar battery-voltage
Change-Id: Ie0763e4f08327ec7649c5629066eb73e8142e0e6
Diffstat (limited to 'fastboot/device/variables.h')
-rw-r--r-- | fastboot/device/variables.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fastboot/device/variables.h b/fastboot/device/variables.h index b06881ead..e7c3c7c83 100644 --- a/fastboot/device/variables.h +++ b/fastboot/device/variables.h @@ -55,7 +55,8 @@ bool GetHardwareRevision(FastbootDevice* device, const std::vector<std::string>& bool GetVariant(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); bool GetOffModeChargeState(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); - +bool GetBatteryVoltage(FastbootDevice* device, const std::vector<std::string>& args, + std::string* message); // Helpers for getvar all. std::vector<std::vector<std::string>> GetAllPartitionArgsWithSlot(FastbootDevice* device); std::vector<std::vector<std::string>> GetAllPartitionArgsNoSlot(FastbootDevice* device); |