State_Space has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
Can anyone tell or link me how to send Android Debug Commands using perl? I've googled, but haven't found any examples.

mock code would look like:
open adb console
check devices (i.e. adb devices)
pick a device
send adb commands (i.e. adb reboot)

Thank you

I guess I should update this. How do I issue or print commands to the cmd.exe window?
  • Comment on connect to AndroidDebugBrigde (adb) using PERL

Replies are listed 'Best First'.
Re: connect to AndroidDebugBrigde (adb) using PERL
by Corion (Patriarch) on May 03, 2016 at 20:25 UTC

    I would simply use qx() to run the appropriate adb commands.

      I've never run adb, but if it operates like a classic terminal, the OP will want two-way communication. Thus, they should look at:

      #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Re: connect to AndroidDebugBrigde (adb) using PERL
by RonW (Parson) on May 04, 2016 at 23:35 UTC