Using the Android-x86 port as your emulator

Source: Internet
Author: User

OK here's some basic steps to get it up and running. you'll also be able to save snapshots of running VMS (actually this has always been available with virtual box ). note if you haven't visited http://android-x86.org in awhile some of the docs are already
Dated-e.g. use generic vs eEPC build in virtual box:

 1) downloadLatest virtualbox if you haven't http://www.virtualbox.org/Wiki/downloadsAnd then download android-x86-2.2-generic.iso from http://www.android-x86.org/Download 2) create and configureYour new Android VM in virtualbox manager. from storage options mount the ISO as the CD/DVD and under network use bridged adapter and now you can go ahead and start the VM and choose live cd vesa option at boot
(Don't blink you may miss the android boot screen ).3) Disable mouse Integration(Right click on mouse configuration button lower right)-You can also make this stick in vbox preferences.4) use alt-F1 and alt-F7To toggle to terminal and note the IP address (UseNetcfgCommand)5)From Host:ADB connect [IPaddress]-You shoshould now be able to see it listed as a device in eclipse now to add additional screen sizes (and portrait view) such as 320x480, shutdown and add the following to your. vbox file in the section called extradata Section: (you can add several)<Extradataitem name = "customvideomode2" value = "320x480x16"/>And this time when you boot hit tab after selecting VESA mode option to enter additional kernel config boot options-addUvesa_mode = 320x480And change VGA =VGA = askYou'll be prompted to hit enter to view screen size options
And your additional options will be available to select (enter number of option to select). Now you'll notice I also addedData = sda1AndSdcard = sda2 (Data is for persisting apps and settings) but first you'll need to create and setup the two partitions. From the install to harddisk option above in Boot menu you canCreate the 2 paritions. Leave room for both (I gave around und 256 m to SD card partition). Now get back to the command
Line and run:Mdev-SMke2fs-J-l data/dev/sda1Mke2fs-J-l sdcard/dev/sda2Reboot-FMore detailed info re: partitioning is available at: http://www.android-x86.Org/documents/virtualboxhowtoNow from within Android-> Settings you can format and mount the SD card, as well as disable lock screen and increase display timeout. if you have any trouble with setting up into allbox, here's my settings (I'm on a Mac OS host-see virtualbox manual for other hosts) obviously there's more to making this more automatically and a bit more permanent (like editing GRUB menu etc)-I just wanted to give you the minimal to get it up and running. one thing I noticed when I enabled my webcam (with USB device filters) is that it successfully detected it which is also the case with 3D hardware graphics acceleration (but not 2d ). in fact although I didn't get an actual camera preview working when
I ran a camera application, it was able to actually turn on the device! Also noteworthy is the low battery notification in the emulator when your laptop battery is indeed low. so it looks like we may not be too far from seeing hardware work in our emulators soon, just some work needed with both projects and this is where you come in as it's all open source. it seems like OpenGL on the Android-x86 side is turned off or needs
Matching configuration (judging by the logs) and on the vbox side, more support is needed for Mac OS X (Darwin) so you may get further on Linux and Windows 7 hosts but there still needs some work to be done to make it work better with Android. for example,
Mouse support cocould use the equivalent of vbox guest additions for Android-x86 as you'll notice with smaller screen sizes. some shortcuts from the SDK emulator will be missing of course. for example, you can't toggle Betwwen landscape and portrait modes so you'll just have to restart or run a second instance. for info on virtual box and features such as RDP support (which works if you enable it) and additional features like "teleporting" see: http://www.virtualbox.org/manual/ch07.html and for an interesting white paper extends strating some ideas using virtual box and Android-x86: IEEE paper: Virtual smartphone over IP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.