Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for emulators #19

Closed
tiwiz opened this issue Apr 30, 2015 · 2 comments
Closed

Support for emulators #19

tiwiz opened this issue Apr 30, 2015 · 2 comments

Comments

@tiwiz
Copy link

tiwiz commented Apr 30, 2015

Hello,

if you try to use AndroidTool with an emulator as Genymotion, connected through ip:port, every time you try to do something with it (screenshot, video or any script), the app crashes.

Moreover, it's not recognised as Genymotion but as generic Google Nexus device, as per screenshot (first device on top)
Screenshot

@mortenjust
Copy link
Owner

Newest version adds limited support for emulators. Screencaps don't seem to work. Let me know if know a way to do this with adb.

@tiwiz
Copy link
Author

tiwiz commented Apr 30, 2015

Hello,

with Genymotion (and I guess also with any other device connected through IP - so this could be potentially used also for ADB over WiFi), you can use the ip as a serial. For instance, to use screencap, you can use the following:

adb -s 192.168.56.100:5555 shell screencap -p /sdcard/mscreen.png 
adb -s 192.168.56.100:5555 pull /sdcard/mscreen.png
adb -s 192.168.56.100:5555 shell rm /sdcard/mscreen.png

I'm not 100% sure, but I think you can get the IP and the port by asking for the serial (when you use adb devices Genymotion is shown by that, instead of the serial). I can also try with Google standard emulator, if you need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants