Exemplo n.º 1
0
        public static void RunSelectDevice(bool auto = false)
        {
            // select device by index (this will be put into a loop later on)
            string input = string.Empty;

            if (!auto)
            {
                Console.WriteLine("Enter the device's index:");
                Console.WriteLine("[leave blank to use first device in list]");
                Console.Write("> ");
                input = Console.ReadLine();
            }
            ADBDevice.SelectDevice(input, auto);

            if (ADBDevice.CurrentDevice != null)
            {
                Console.WriteLine(string.Format("Selected: {0}", ADBDevice.CurrentDevice));
            }
            else
            {
                Console.WriteLine("No device selected.");
            }
            Console.WriteLine();
        }
Exemplo n.º 2
0
 public static void RunGetAvailableDevices()
 {
     ADBDevice.GetAvailableDevices();
     RunListAvailableDevices();
 }