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