Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Android OS VirtualBox as device in Eclipse

I found this tutorial on how to run Android OS here: http://www.javacodegeeks.com/2010/06/install-android-os-on-pc-with.html

Has anyone tried to use the set-up as a replacement for the emulator? If so, how did you do it?

like image 681
user5243421 Avatar asked Jan 19 '23 14:01

user5243421


1 Answers

I haven't used the guide you link to, but instead downloaded an eeepc image from the Android x86 Project. The steps I followed are:

  • Install Android to a virtual PC - I used a 64bit virtual machine, enabled all the hardware virtualisation, and used the PCnet-FAST III virtual network adapter in bridged mode - see image 1
  • Disable host mouse pointer integration - this will allow Android to display it's own mouse pointer so you know where you're clicking.
  • You need to work out what IP address the VM has, so that you can connect with adb connect <YOUR_VIRTUALBOX_IP>. I do this by logging into my router and identifying the IP of the device that shares the port with my laptop, since that's the Android VM using bridged networking. See image 2.

You are supposed to be able to use VBoxManage commands to identify the IP of the guest, but I've never gotten those working, so the router method is the only one I have that works.

Performance is pretty good - much quicker than running hte ARM emulator, though of course, you can only run Android versions that have been compiled for x86.

enter image description hereenter image description here

like image 192
RivieraKid Avatar answered Jan 21 '23 05:01

RivieraKid