UiAutomation.ExecuteShellCommandRwe(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes a shell command.
[Android.Runtime.Register("executeShellCommandRwe", "(Ljava/lang/String;)[Landroid/os/ParcelFileDescriptor;", "", ApiSince=34)]
public Android.OS.ParcelFileDescriptor[] ExecuteShellCommandRwe (string command);
[<Android.Runtime.Register("executeShellCommandRwe", "(Ljava/lang/String;)[Landroid/os/ParcelFileDescriptor;", "", ApiSince=34)>]
member this.ExecuteShellCommandRwe : string -> Android.OS.ParcelFileDescriptor[]
Parameters
- command
- String
The command to execute.
Returns
File descriptors (out, in, err) to the standard output/input/error streams.
- Attributes
Remarks
Executes a shell command. This method returns three file descriptors, one that points to the standard output stream (element at index 0), one that points to the standard input stream (element at index 1), and one points to standard error stream (element at index 2). The command execution is similar to running "adb shell <command>" from a host connected to the device.
<strong>Note:</strong> It is your responsibility to close the returned file descriptors once you are done reading/writing.
Java documentation for android.app.UiAutomation.executeShellCommandRwe(java.lang.String)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.