From 338b0c70ef0fc7c610aa92fe4519b51928b53e57 Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju Date: Wed, 26 Sep 2018 13:06:21 -0700 Subject: [PATCH] Add command to read fastboot variable 'variant' Bug: 79480454 Test: fastboot getvar variant Change-Id: I04f588f09d03e121c066449b0a7223f51d2e59af Merged-In: I04f588f09d03e121c066449b0a7223f51d2e59af (cherry picked from commit 3f27a7b373305f98117607f159eeb3c4e1fe4f6f) --- fastboot/1.0/IFastboot.hal | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fastboot/1.0/IFastboot.hal b/fastboot/1.0/IFastboot.hal index 5e42c17042..c5979d9c78 100644 --- a/fastboot/1.0/IFastboot.hal +++ b/fastboot/1.0/IFastboot.hal @@ -39,4 +39,15 @@ interface IFastboot { * FAILURE_UNKNOWN for an invalid/unsupported command. */ doOemCommand(string oemCmd) generates (Result result); + + /** + * Returns an OEM-defined string indicating the variant of the device, for + * example, US and ROW. + * + * @response variant Indicates the device variant. + * @response result Returns the status SUCCESS if the operation is successful, + * FAILURE_UNKNOWN otherwise. + */ + getVariant() generates (string variant, Result result); + };