mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 10:44:41 +00:00
Add command to pass oem commands to HAL
Bug: 79480454 Bug: 78793464 Test: fastboot oem command Change-Id: Ifa20badace91550812742702f3b16f5abe56be72
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user