static void Main(string[] args) { ADBClient client = new ADBClient() { AdbPath = Path.Combine(Environment.CurrentDirectory, "lib", "adb.exe"), AdbTimeout = 1000 }; client.StartServer(); Console.WriteLine("Server up and running!"); client.Devices().ForEach(x => Console.WriteLine(x)); Directory.GetFiles("D:\\Google Drive\\Pessoal\\Imagens\\Wallpapers\\Casual Overwatch\\").ToList().ForEach(fileName => { client.Push(fileName, "/storage/emulated/0/Pictures/Overwatch/"); }); client.KillServer(); Console.WriteLine("Server' dead and gone!"); //AdbCmdVersion client = new AdbCmdVersion() //{ // adbPath = Path.Combine(Environment.CurrentDirectory, "lib", "adb.exe") //}; //client.SendCommandExposed(AdbCmdVersion.commands.StartServer, null); //Console.WriteLine("Server up and running!"); //client.Devices().ForEach(device => Console.WriteLine(device)); //Directory.GetFiles("D:\\Google Drive\\Pessoal\\Imagens\\Wallpapers\\Casual Overwatch\\").ToList().ForEach(fileName => //{ // client.SendCommandExposed( // AdbCmdVersion.commands.Push, // new List<string>() // { // fileName, // "/storage/emulated/0/Pictures/Overwatch/" // }); //}); //client.SendCommandExposed(AdbCmdVersion.commands.KillServer, null); //Console.WriteLine("Server' dead and gone!"); //client.Reboot(AdbCmdVersion.bootState.System); //AdbPowershellVersion client = new AdbPowershellVersion() //{ // adbPath = Path.Combine(Environment.CurrentDirectory, "lib", "adb.exe") //}; //client.SendCommand(AdbPowershellVersion.commands.StartServer, null); //Console.WriteLine("Server up and running!"); //Console.WriteLine(client.SendCommand(AdbPowershellVersion.commands.ListDevices, null)); //Directory.GetFiles("D:\\Google Drive\\Pessoal\\Imagens\\Wallpapers\\Casual Overwatch\\").ToList().ForEach(fileName => //{ // client.SendCommand( // AdbPowershellVersion.commands.Push, // new List<string>() // { // fileName, // "/storage/emulated/0/Pictures/Overwatch/" // }); // Console.WriteLine($"Sent {fileName} to device!"); //}); //client.SendCommand(AdbPowershellVersion.commands.KillServer, null); //Console.WriteLine("Server' dead and gone!"); Console.ReadLine(); }