Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Debian Lenny
Description
Android Plugin doesnot detect correctly that the emulator is started.
On my platform, i can see using a vncviewer that the emulator is well started but the android plugin
doesnot detect it and finishes with a timeout.
I think the problem is with the adb connect command (sometimes, the error "error: device not found" is raised and the
connection is lost). I think that your plugin has to launch it each time before the getprop command. There is no matter
executing it severals times even if you're already connected, you'll just have the message "already connected to ". But if the
connection is lost, it will be recreate correctly again.
Here is the log :
[workspace] $ vncserver :14 New 'X' desktop is nansrvweb7:14 Starting applications specified in /home/hudson/.vnc/xstartup Log file is /home/hudson/.vnc/nansrvweb7:14.log [android] Using Android SDK: /appli/android-sdk-linux_x86 [android] Starting Android emulator $ /appli/android-sdk-linux_x86/tools/emulator -ports 53617,46049 -no-boot-anim -avd Android1.6 emulator: warning: opening audio output failed $ /appli/android-sdk-linux_x86/tools/adb connect localhost:46049 $ /appli/android-sdk-linux_x86/tools/adb -s localhost:46049 logcat -v time [android] Waiting for emulator to finish booting... $ /appli/android-sdk-linux_x86/tools/adb -s localhost:46049 shell getprop dev.bootcomplete
$ /appli/android-sdk-linux_x86/tools/adb -s localhost:46049 shell getprop dev.bootcomplete
$ /appli/android-sdk-linux_x86/tools/adb -s localhost:46049 shell getprop dev.bootcomplete
$ /appli/android-sdk-linux_x86/tools/adb -s localhost:46049 shell getprop dev.bootcomplete
$ /appli/android-sdk-linux_x86/tools/adb -s localhost:46049 shell getprop dev.bootcomplete
$ /appli/android-sdk-linux_x86/tools/adb -s localhost:46049 shell getprop dev.bootcomplete
$ /appli/android-sdk-linux_x86/tools/adb -s localhost:46049 shell getprop dev.bootcomplete
$ /appli/android-sdk-linux_x86/tools/adb -s localhost:46049 shell getprop dev.bootcomplete
$ /appli/android-sdk-linux_x86/tools/adb -s localhost:46049 shell getprop dev.bootcomplete
$ /appli/android-sdk-linux_x86/tools/adb -s localhost:46049 shell getprop dev.bootcomplete
[android] Timed-out after waiting 120 seconds for emulator $ /appli/android-sdk-linux_x86/tools/adb disconnect localhost:46049 [android] Stopping Android emulator [android] Archiving emulator log Terminating xvnc. $ vncserver -kill :14 Killing Xtightvnc process ID 18841 Finished: NOT_BUILT