示例#1
0
        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))));
        }
示例#2
0
 public string Execute(ADBCommands command, params string[] str)
 {
     return("Ausgeführt!");
 }
示例#3
0
 public Form1()
 {
     InitializeComponent();
     adbCommands = new ADBCommands(System.IO.Path.GetDirectoryName(Application.ExecutablePath));
     //var ss = "\"" + "montaser" + "\" -s 12332432 \"reboot bootloader\"";
 }