public string Execute(ADBCommands command, params string[] str) { /** * Prüfen des Commands * Einfügen der Zeichenfolge an den Anfang **/ if (command == ADBCommands.SHELLROOT || command == ADBCommands.SETPROP) { str = (str ?? Enumerable.Empty <string>()).Concat(Enumerable.Repeat("'\"", 1)).ToArray(); } return(ADB.ExecuteCommand(String.Join(" ", adbDictionary[command], String.Join(" ", str)))); }
public string Execute(ADBCommands command, params string[] str) { return("Ausgeführt!"); }
public Form1() { InitializeComponent(); adbCommands = new ADBCommands(System.IO.Path.GetDirectoryName(Application.ExecutablePath)); //var ss = "\"" + "montaser" + "\" -s 12332432 \"reboot bootloader\""; }