Forms an AdbCommand that is passed to Adb.ExecuteAdbCommand()
Namespace: RegawMOD.Android
Assembly: AndroidLib (in AndroidLib.dll) Version: 1.5.2.0 (1.5.2.0)
Syntax
Parameters
- command
- Type: SystemString
The command to run on the Adb Server - args
- Type: SystemObject
Any arguments that need to be sent to command
Return Value
Type: AdbCommandAdbCommand that contains formatted command information
Remarks
This should only be used for non device-specific Adb commands, such as adb devices or adb version.
Never try to start/kill the running Adb Server, as the AndroidController type handles it internally.
Examples
//This example shows how to create an AdbCommand object to execute on the running server. //The command we will create is "adb devices". //Notice how in the formation, you don't supply the prefix "adb", because the method takes care of it for you. AdbCommand adbCmd = Adb.FormAdbCommand("devices");
See Also