Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be52e964 authored by Hridya Valsaraju's avatar Hridya Valsaraju Committed by android-build-merger
Browse files

Merge "Add command to pass oem commands to HAL"

am: c369d819

Change-Id: Ib49b90b70c3864cb1777a79ccd5d73893937ba2f
parents 89425b1e c369d819
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -29,4 +29,14 @@ interface IFastboot {
     *     reformatting.
     *     reformatting.
     */
     */
    getPartitionType(string partitionName) generates (FileSystemType type, Result result);
    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);
};
};
+2 −2
Original line number Original line Diff line number Diff line
@@ -53,9 +53,9 @@ enum FileSystemType : uint8_t {
struct Result {
struct Result {
    Status status;
    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 FAILURE_UNKNOWN/NOT_SUPPORTED or an informative message for
     * Status SUCCESS.
     * Status SUCCESS.
     */
     */
    string error;
    string message;
};
};