{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class ShellExecutorImpl implements ShellExecutor
Public constructors |
|
|---|---|
ShellExecutorImpl(Context context, String binderKey) |
|
Public methods |
|
|---|---|
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 |
|
public InputStream executeShellCommand(
String command,
List<String> parameters,
Map<String, String> shellEnv,
boolean executeThroughShell,
long timeoutMs
)
Execute a command with elevated permissions and return immediately.
| Throws | |
|---|---|
java.io.IOException java.io.IOException |
|
public InputStream executeShellCommand(
String command,
List<String> parameters,
Map<String, String> shellEnv,
boolean executeThroughShell
)
Execute a command with elevated permissions and return immediately.
| Throws | |
|---|---|
java.io.IOException java.io.IOException |
|
public String executeShellCommandSync(
String command,
List<String> parameters,
Map<String, String> shellEnv,
boolean executeThroughShell,
long timeoutMs
)
Execute a command with elevated permissions and block.
| Throws | |
|---|---|
java.io.IOException java.io.IOException |
|
public String executeShellCommandSync(
String command,
List<String> parameters,
Map<String, String> shellEnv,
boolean executeThroughShell
)
Execute a command with elevated permissions and block.
| Throws | |
|---|---|
java.io.IOException java.io.IOException |
|