Genymotion Android emulator - adb access?
Solution 1
We need to connect with IP address to the emulator, so look for the IP address of the running emulator (it's shown in the emulator title bar) and use something like:
adb connect 192.168.56.102:5555
Afterward adb
works normally. You may also find out the IP address of a running emulator by starting "Genymotion Shell" and typing 'devices list'
I also find out that occasionally I have to do the above when the emulator is running for a longer time and somehow ADB disconnects from it.
Greg
Solution 2
If you launch the VM with the the launchpad (genymotion binary where you download the VMs) and you set the Android SDK path into the application parameters the connection is automatic and you don't need to run adb connect
You can find the information in the Genymotion Docs.
Solution 3
Simply do this, with genymotion device running you can open Virtual Box , and see that there is a VM for you device , then go to network Settings of the VM, NAT and do port forwarding of local 5555 to remote 5555 screen attachedVirtual Box Nat Network Port forwarding
Solution 4
My working solution is:
cd /opt/genymobile/genymotion/tools
./adb shell
You have to use its own adb tool.
Solution 5
Connect didn't work for me, The problem was that Genymotion uses its own dk-tools and you need to change it to custom SDK tools.
More info: https://stackoverflow.com/a/26630862/4154438
Related videos on Youtube
gregko
Updated on June 13, 2020Comments
-
gregko almost 4 years
I downloaded Genymotion Android emulators for Oracle VirtualBox (http://www.genymotion.com/) on my Windows 7 PC, created a virtual Jelly Bean with Google Apps device. How do I enable ADB access to it? In system settings/Developer options I already enabled "USB debugging", but typing "adb devices" shows empty list of connected devices. Tried adding a USB port for this VM and rebooting VM, but it does not help.
Greg
-
gregko almost 11 yearsthank you for this information. I think I lunched it that way the first time, and it did not work. Maybe I don't remember correctly though, or they fixed something since then. I'll upvote your answer when I'm back at my computer and test it.
-
gregko almost 11 yearsthank you again, looks like it works the way you say. Up-voted your answer now. I also see that VM works differently when started from this console, there are extra buttons on the side etc. Strangely, it also often with "Unfortunately, System UI has stopped", while I did not see these errors when starting Oracle VM. Must investigate this some more.
-
eyal-lezmy almost 11 yearsActually the genymotion player is used to add functionalities. You can also manage other parameters like gps, battery, and rotation. About the force close, you should add a ticket on the support page on the website. Don't forget to precise your whole config. cloud.genymotion.com/page/support/#
-
gregko almost 11 yearsThe FC was happening on an Android VM which I was starting directly from VirtualBox. Maybe the VM was damaged in the process. I deleted it now and re-created, starting only from Genymotion player, seems OK now. Thank you again for your help!
-
hunyadym over 10 yearsGenymotion now shows IP address in window title, and you should use port 5555.
-
Sebastian Mach over 9 yearsWhat does this answer add? You just repeat fractions of what others have said.
-
voghDev over 8 yearsThanks for the answer, solved my problem. I suggest you to include what @hunyadym said, because I've spent a few minutes searching for genymotion's IP before reading it :p
-
NineCattoRules almost 7 yearsWhy from the prompt it says
adb is not recognized as an internal or external command
? -
Zoe stands with Ukraine almost 7 years@NineCattoRules you need to navigate to <sdk location>/platform-tools/ and then do adb commands
-
Zoe stands with Ukraine almost 7 yearsRun Genymotion (not the emulator the program itself) -> settings -> ADB -> Find your path
-
Ashu Kumar almost 7 yearsthis answer work for me, none of above worked :) thanks for answer
-
Mehdi Dehghani about 5 years@hunyadym actually it shows for me and I could fix my problem using this hint!
-
Mehdi Dehghani about 5 yearsI'm wondering, if the answer of your question is this post (as you wrote "OK, nevermind, found the answer here.") why you marked @eyal-lezmy's answer as correct answer?
-
Piyush about 5 yearsYes.. it helped me finally on Mac !