Exemplo n.º 1
0
        private void Fastboot(List <IDevice> devices)
        {
            var lineOutput = fastbootDevices.Execute().Output.LineOut;

            for (int i = 0; i < lineOutput.Count(); i++)
            {
                if (DeviceObjectFacotry.FastbootTryParse(lineOutput[i], out IDevice device))
                {
                    devices.Add(device);
                }
            }
        }
Exemplo n.º 2
0
        private void Adb(List <IDevice> devices)
        {
            var lineOutput = adbDevices.Execute().Output.LineOut;

            for (int i = 1; i < lineOutput.Count(); i++)
            {
                if (DeviceObjectFacotry.AdbTryParse(lineOutput[i], out IDevice device))
                {
                    devices.Add(device);
                }
            }
        }