diff options
author | Hridya Valsaraju <hridya@google.com> | 2018-09-21 16:06:30 -0700 |
---|---|---|
committer | Hridya Valsaraju <hridya@google.com> | 2018-09-25 23:23:36 +0000 |
commit | f5fda3976a1e0ea1ff479c480bdc926eb9ba2e6a (patch) | |
tree | a33d330bc89df695be3b2da51bd2f2d7db4c1c11 /fastboot | |
parent | 0d30daba94d703fa05e16e2296688bc510f34a79 (diff) | |
download | android_hardware_interfaces-f5fda3976a1e0ea1ff479c480bdc926eb9ba2e6a.tar.gz android_hardware_interfaces-f5fda3976a1e0ea1ff479c480bdc926eb9ba2e6a.tar.bz2 android_hardware_interfaces-f5fda3976a1e0ea1ff479c480bdc926eb9ba2e6a.zip |
Reland "Add command to pass oem commands to HAL"
Test: make
This reverts commit 2e880493d6a227b050dabc6caa294eea408338ca.
Change-Id: I7cdfa6a01b5d776659dd4e7595915574b341cd9c
Merged-In: I7cdfa6a01b5d776659dd4e7595915574b341cd9c
(cherry picked from commit 3c2443ec29984c7c003e8b21a26fc25ad519475d)
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; }; |