{% 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: (Mutable)List<String!>!,
shellEnv: (Mutable)Map<String!, String!>!,
executeThroughShell: Boolean,
timeoutMs: Long
): InputStream!
Execute a command with elevated permissions and return immediately.
| Throws | |
|---|---|
java.io.IOException: java.io.IOException |
|
fun executeShellCommand(
command: String!,
parameters: (Mutable)List<String!>!,
shellEnv: (Mutable)Map<String!, String!>!,
executeThroughShell: Boolean
): InputStream!
Execute a command with elevated permissions and return immediately.
| Throws | |
|---|---|
java.io.IOException: java.io.IOException |
|
fun executeShellCommandSync(
command: String!,
parameters: (Mutable)List<String!>!,
shellEnv: (Mutable)Map<String!, String!>!,
executeThroughShell: Boolean,
timeoutMs: Long
): String!
Execute a command with elevated permissions and block.
| Throws | |
|---|---|
java.io.IOException: java.io.IOException |
|