AndroidViewClient icon indicating copy to clipboard operation
AndroidViewClient copied to clipboard

Unable to detect devices less than Lollipop

Open Ebirux opened this issue 10 years ago • 0 comments

Hello,

In the viewclient.py line 1456 if s != 'unknown': serialno = s

There is a bug when using a virtual device that does not have a serial number and the android version is less than Lollipop. When it hits that line, it sets the serialno to "* daemon not running. starting it now on port xxx *"

I added if "daemon not running." in serialno: # FIXME !!!!! # this must be calculated from somewhere, though using a fixed serialno for now warnings.warn("Running on emulator but no serial number was specified then 'emulator-5554' is used") serialno = 'emulator-5554' right after line 1457 and that resolved the issue.

Ebirux avatar Jan 20 '15 17:01 Ebirux