execCmd

open fun execCmd(command: String, isRoot: Boolean): ShellUtils.CommandResult

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
open fun execCmd(commands: Array<String>, isRoot: Boolean): ShellUtils.CommandResult

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

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.

open fun execCmd(commands: List<String>, isRoot: Boolean, isNeedResultMsg: Boolean): ShellUtils.CommandResult
open fun execCmd(commands: Array<String>, isRoot: Boolean, isNeedResultMsg: Boolean): ShellUtils.CommandResult

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.