예제 #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)));
 }