ShellUtils

class ShellUtils

Types

CommandResult
Link copied to clipboard
open class CommandResult
The result of command.

Functions

execCmd
Link copied to clipboard
open fun execCmd(command: String, isRoot: Boolean): ShellUtils.CommandResult
Execute the command.
open fun execCmd(commands: Array<String>, isRoot: Boolean): ShellUtils.CommandResult
Execute the command.
open fun execCmd(commands: List<String>, isRoot: Boolean): ShellUtils.CommandResult
Execute the command.
open fun execCmd(command: String, isRoot: Boolean, isNeedResultMsg: Boolean): ShellUtils.CommandResult
Execute the command.
open fun execCmd(commands: Array<String>, isRoot: Boolean, isNeedResultMsg: Boolean): ShellUtils.CommandResult
Execute the command.
open fun execCmd(commands: List<String>, isRoot: Boolean, isNeedResultMsg: Boolean): ShellUtils.CommandResult
Execute the command.