UiAutomation.ExecuteShellCommand(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("executeShellCommand", "(Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;", "")]
public Android.OS.ParcelFileDescriptor? ExecuteShellCommand (string? command);
[<Android.Runtime.Register("executeShellCommand", "(Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;", "")>]
member this.ExecuteShellCommand : string -> Android.OS.ParcelFileDescriptor
Parameters
- command
- String
The command to execute.
Returns
A file descriptor to the standard output stream.
- Attributes
Remarks
Executes a shell command. This method returns a file descriptor that points to the standard output stream. 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 descriptor once you are done reading.
Java documentation for android.app.UiAutomation.executeShellCommand(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.