Android USB debugging in VirtualBox

前端 未结 6 1754
花落未央
花落未央 2020-12-24 07:11

I am trying to get mono for android (aka monodroid) working within a windows 7 virtual machine on virtualbox but I am having issues with the adb connection to my phone. Whe

6条回答
  •  梦毁少年i
    2020-12-24 07:41

    I had same problem with VirtualBox 5.0.14 and solution provided by Stephen Niedzielski didn't work for me. If someone is still interested can try this solution.

    My environment is:

    • Host OS: Mac OS 10.11
    • Guest OS in VirtualBox: Ubuntu 14.04
    • Device: Galaxy S5 running Cyanomodgen 12.1

    Start a wifi hotspot in host OS and connect there the android device, or connect both in a router. In virtualbox set network mode for guest OS to 'Bridged Adapter' and then select name of Wifi adapter. In that way host OS and android device are in same network.

    Then, in android device activate 'Developer mode' and enable 'ADB over network', provided from Cyanomodgen. (For devices with original version of android, google how to use ADV over network if possible) In host OS run 'adb kill-server' and make sure no instance of ADB is running. Then run command 'adb connect 192.168.2.12', ip of android device.

    Congrats :) Now you are are able to use ADB with android device to take logcat or pull and push files.

提交回复
热议问题