exec Cmd
open fun execCmd(command: String, isRoot: Boolean): ShellUtils.CommandResult
Content copied to clipboard
Execute the command.
Return
the single CommandResult instance
Parameters
command
The command.
isRoot
True to use root, false otherwise.
open fun execCmd(commands: List<String>, isRoot: Boolean): ShellUtils.CommandResult
Content copied to clipboard
open fun execCmd(commands: Array<String>, isRoot: Boolean): ShellUtils.CommandResult
Content copied to clipboard
Execute the command.
Return
the single CommandResult instance
Parameters
commands
The commands.
isRoot
True to use root, false otherwise.
open fun execCmd(command: String, isRoot: Boolean, isNeedResultMsg: Boolean): ShellUtils.CommandResult
Content copied to clipboard
Execute the command.
Return
the single CommandResult instance
Parameters
command
The command.
isRoot
True to use root, false otherwise.
isNeedResultMsg
True to return the message of result, false otherwise.
Execute the command.
Return
the single CommandResult instance
Parameters
commands
The commands.
isRoot
True to use root, false otherwise.
isNeedResultMsg
True to return the message of result, false otherwise.