示例#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)));
 }