Reland "Add command to pass oem commands to HAL"
Test: make This reverts commit2e880493d6
. Change-Id: I7cdfa6a01b5d776659dd4e7595915574b341cd9c Merged-In: I7cdfa6a01b5d776659dd4e7595915574b341cd9c (cherry picked from commit3c2443ec29
)
This commit is contained in:
parent
0d30daba94
commit
f5fda3976a
2 changed files with 12 additions and 2 deletions
|
@ -29,4 +29,14 @@ interface IFastboot {
|
|||
* reformatting.
|
||||
*/
|
||||
getPartitionType(string partitionName) generates (FileSystemType type, Result result);
|
||||
|
||||
/**
|
||||
* Executes a fastboot OEM command.
|
||||
*
|
||||
* @param oemCmdArgs The oem command that is passed to the fastboot HAL.
|
||||
* @response result Returns the status SUCCESS if the operation is successful,
|
||||
* INVALID_ARGUMENT for bad arguments,
|
||||
* FAILURE_UNKNOWN for an invalid/unsupported command.
|
||||
*/
|
||||
doOemCommand(string oemCmd) generates (Result result);
|
||||
};
|
||||
|
|
|
@ -53,9 +53,9 @@ enum FileSystemType : uint8_t {
|
|||
struct Result {
|
||||
Status status;
|
||||
/**
|
||||
* Error message pertaining to the status. It must be a failure message for
|
||||
* Message pertaining to the status. It must be a failure message for
|
||||
* Status FAILURE_UNKNOWN/NOT_SUPPORTED or an informative message for
|
||||
* Status SUCCESS.
|
||||
*/
|
||||
string error;
|
||||
string message;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue