Exemplo n.º 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);
        }
Exemplo n.º 2
0
 private static string CmdExecute(string command)
 {
     return(CmdShell.Execute(command));
 }
Exemplo n.º 3
0
 private static Task <string> CmdExecuteTask(string command)
 {
     return(Task <string> .Run(() => CmdShell.Execute(command)));
 }