]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/platform-hardware-interfaces.git/commitdiff
Add command to pass oem commands to HAL
authorHridya Valsaraju <hridya@google.com>
Fri, 14 Sep 2018 22:37:40 +0000 (15:37 -0700)
committerHridya Valsaraju <hridya@google.com>
Mon, 17 Sep 2018 22:37:42 +0000 (15:37 -0700)
Bug: 79480454
Bug: 78793464
Test: fastboot oem command

Change-Id: Ifa20badace91550812742702f3b16f5abe56be72

fastboot/1.0/IFastboot.hal
fastboot/1.0/types.hal

index 653fd79ef5e25f03176fbf99e74c22cfc81c13cd..5e42c17042ba21e78afa3b3e05569124ca577584 100644 (file)
@@ -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);
 };
index 8453deb2a421c0b9bff0b1e3336c0a6675ca8704..3fbe63959c6e9f70875e9dacd4fed5b689d306e9 100644 (file)
@@ -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;
 };