Because monkeyrunner will use 12345 port(hard coded) for forward usage, so
please make sure port 12345 is not used by other applications.
Anyway, to be simple, export ADBHOST=${your_target_device_IP_here} in bash,
then adb kill-server; adb start-server; then run your python script,
may be it's better to omit the timeout parameter of
MonkeyRunner.waitForConnection() in practice.
On Monday, May 16, 2011 11:34:24 PM UTC+8, Tiago Maluta wrote:
>
> Hi.
>
> I'm using ADB over TCP [1] to access my device and it's working [2] but
> when I try to use my monkeyrunner script I got some errors, like:
>
> dev = MonkeyRunner.waitForConnection(20,"192.168.50.14:7001")
> 110516 12:26:31.171:S [MainThread]
> [com.android.monkeyrunner.adb.AdbMonkeyDevice] Adb rejected adb port
> forwarding command: unknown host service
>
> -OR-
>
> dev = MonkeyRunner.waitForConnection(20,"192.168.50.14")
>
> Returns 'NoneType' to dev. Even when I have only one device attached and
> try waitForConnection() without parameters I got "Adb rejected adb port
> forwarding command: unknown host service"
>
> Somebody has a suggestion how can I proceed to fix that?
>
> Best regards,
>
> --tm
>
>
> [1]
> $ adb devices
> List of devices attached
> 192.168.50.14:7001 device
>
> [2]
> $ adb -s 192.168.50.14:7001 shell getprop ro.product.cpu.abi
> armeabi-v7a
>
>
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en