From 3d76cf0d8e6abe52e459bb7bc741e58b34b9790d Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju Date: Thu, 27 Sep 2018 10:21:07 -0700 Subject: [PATCH] Add command to check whether off-mode-charging is enabled. Bug: 78793464 Bug: 79480454 Test: fastboot getvar off-mode-charge Change-Id: I1bd4148ff3476acf110e4aa95a40084300608875 --- fastboot/1.0/IFastboot.hal | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fastboot/1.0/IFastboot.hal b/fastboot/1.0/IFastboot.hal index c5979d9c78..a96755e499 100644 --- a/fastboot/1.0/IFastboot.hal +++ b/fastboot/1.0/IFastboot.hal @@ -50,4 +50,13 @@ interface IFastboot { */ getVariant() generates (string variant, Result result); + /** + * Returns whether off-mode-charging is enabled. If enabled, the device + * autoboots into a special mode when power is applied. + * + * @response state Returns whether off mode charging is enabled. + * @response result Returns the status SUCCESS if the operation is successful, + * FAILURE_UNKNOWN otherwise. + */ + getOffModeChargeState() generates (bool state, Result result); };