FastbootFormFastbootCommand Method (Device, String, String) AndroidLib - Beatsleigher Edition
Forms a FastbootCommand that is passed to Fastboot.ExecuteFastbootCommand()

Namespace: RegawMOD.Android
Assembly: AndroidLib (in AndroidLib.dll) Version: 1.5.2.0 (1.5.2.0)
Syntax

public static FastbootCommand FormFastbootCommand(
	Device device,
	string command,
	params string[] args
)

Parameters

device
Type: RegawMOD.AndroidDevice
Specific Device to run the comand on
command
Type: SystemString
The command to run on fastboot
args
Type: SystemString
Any arguments that need to be sent to command

Return Value

Type: FastbootCommand
FastbootCommand that contains formatted command information
Remarks

Should be used only for device-specific fastboot commands such as fastboot reboot or fastboot getvar all
Examples

This example demonstrates how to create a non device-specific FastbootCommand
//This example shows how to create a device-specific FastbootCommand
            //This demonstarates the fastboot command "fastboot flash zip C:\rom.zip"
            //Notice how you do not include the "fastboot" executable in the method, as the method takes care of it internally
            //This example also assumes there is an instance of Device named device

            FastbootComand fbCmd = Fastboot.FormFastbootCommand(device, "flash", @"zip C:\rom.zip");
See Also

Reference