{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class ShellExecutorImpl : ShellExecutor
Public constructors |
|
|---|---|
ShellExecutorImpl(context: Context, binderKey: String) |
|
Public functions |
|
|---|---|
InputStream |
executeShellCommand(Execute a command with elevated permissions and return immediately. |
InputStream |
executeShellCommand(Execute a command with elevated permissions and return immediately. |
String |
executeShellCommandSync(Execute a command with elevated permissions and block. |
String |
executeShellCommandSync(Execute a command with elevated permissions and block. |
String |
|
fun executeShellCommand(
command: String,
parameters: List<String>,
shellEnv: Map<String, String>,
executeThroughShell: Boolean,
timeoutMs: Long
): InputStream
Execute a command with elevated permissions and return immediately.
fun executeShellCommand(
command: String,
parameters: List<String>,
shellEnv: Map<String, String>,
executeThroughShell: Boolean
): InputStream
Execute a command with elevated permissions and return immediately.
fun executeShellCommandSync(
command: String,
parameters: List<String>,
shellEnv: Map<String, String>,
executeThroughShell: Boolean,
timeoutMs: Long
): String
Execute a command with elevated permissions and block.