As you know, when issue "adb shell sendevent", the printf of sendevent will write to "/dev/pts/1", and at that time, ADB server will read from "/dev/ptmx". Finally, the printf of sendevent will show at Windows CMD.
But, I don't want any printf's info is shown at Windows CMD. How to do at sendevent? Currently, I have added following codes at sendevent: ------------------------------------------------------------- close(0); close(1); close(2); sleep(10); ------------------------------------------------------------- But, Windows CMD still wait 10 second, and then over "adb shell sendevent". Because sendevent will consume more than 10 seconds, I wish sendevent can close output device, and then ADB server immediately stop read, and then Windows CMD immediately finish "wait status", and Windows CMD can input any other commands by person. How to do that? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---