diff options
author | Hridya Valsaraju <hridya@google.com> | 2018-09-14 15:37:40 -0700 |
---|---|---|
committer | Hridya Valsaraju <hridya@google.com> | 2018-09-17 15:37:42 -0700 |
commit | ddaa8ecb379479a3450c954161df33fda1348685 (patch) | |
tree | 898f9138f9a6f2ce580cb77c3686d406afd32a88 /fastboot | |
parent | fff86f4b4b5d703c4ab7842b7d0ef47ea8628c06 (diff) | |
download | android_hardware_interfaces-ddaa8ecb379479a3450c954161df33fda1348685.tar.gz android_hardware_interfaces-ddaa8ecb379479a3450c954161df33fda1348685.tar.bz2 android_hardware_interfaces-ddaa8ecb379479a3450c954161df33fda1348685.zip |
Add command to pass oem commands to HAL
Bug: 79480454
Bug: 78793464
Test: fastboot oem command
Change-Id: Ifa20badace91550812742702f3b16f5abe56be72
Diffstat (limited to 'fastboot')
-rw-r--r-- | fastboot/1.0/IFastboot.hal | 10 | ||||
-rw-r--r-- | fastboot/1.0/types.hal | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/fastboot/1.0/IFastboot.hal b/fastboot/1.0/IFastboot.hal index 653fd79ef..5e42c1704 100644 --- a/fastboot/1.0/IFastboot.hal +++ b/fastboot/1.0/IFastboot.hal @@ -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); }; diff --git a/fastboot/1.0/types.hal b/fastboot/1.0/types.hal index 8453deb2a..3fbe63959 100644 --- a/fastboot/1.0/types.hal +++ b/fastboot/1.0/types.hal @@ -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; }; |