Пример #1
0
        public static List <string> GetDevices()
        {
            List <string> devicesList = new List <string>();
            var           devices     = CmdShell.Execute(DataStrings.adbDevices);
            var           ids         = StringHelpers.GetDevicesId(devices);

            foreach (var item in ids)
            {
                devicesList.Add(item);
            }
            return(devicesList);
        }
Пример #2
0
 private static string CmdExecute(string command)
 {
     return(CmdShell.Execute(command));
 }
Пример #3
0
 private static Task <string> CmdExecuteTask(string command)
 {
     return(Task <string> .Run(() => CmdShell.Execute(command)));
 }