Add command to read fastboot variable 'variant'

Bug: 79480454
Test: fastboot getvar variant
Change-Id: I04f588f09d03e121c066449b0a7223f51d2e59af
This commit is contained in:
Hridya Valsaraju 2018-09-26 13:06:21 -07:00
parent b4484686ab
commit 3f27a7b373

View file

@ -39,4 +39,15 @@ interface IFastboot {
* FAILURE_UNKNOWN for an invalid/unsupported command. * FAILURE_UNKNOWN for an invalid/unsupported command.
*/ */
doOemCommand(string oemCmd) generates (Result result); 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);
}; };