Make your simulator no longer card: virtualbox secure Android-x86 4.0

Source: Internet
Author: User

Why are Android virtual machines much slower than iOS and WP7 virtual machines? The reason is as follows:

1. the android Simulator simulates the ARM architecture (ARM-Eabi), while the target architecture of iOS and WP7 simulators is x86, in addition, the app running in the IOS simulator is also compiled into x86. In this way, the android simulator requires some additional binary translation work.
2. the android simulator uses the full system mode of qemu, that is, it needs to start the entire guest system during simulation and initialize various analog devices. On the contrary, the simulators for iOS and WP7 are only user-mode simulations.
3. In the android simulator, you also need to run a Dalvik VM to execute the bytecodes of the android application.

To sum up, one of the main reasons for the slow speed is that the virtual machine is not running on x86 but simulating arm. Is there a way to get an x86 android?

The answer is of course there is --- Open-Source Project Android-x86, this ox B Open-Source Project will be transplanted to the android X86 platform, the system does not need to be simulated into arm, in this way, you can directly install android on a PC or virtual machine to run smoothly.
Everything is ready, only owe Dongfeng, next I will talk about the whole process of using Android-X86 and virtualbox to build a mobile phone Development Simulator

 

1: first download Android-x86 system image file http://www.android-x86.org/download

Please download the latest 4.0Android-x86-4.0-eeepc-20111209.iso this version, other have bugs, boot will continue crash, pay attention to is 09

2. Create a virtual machine on virtualbox

Select Linux as the operating system and Linux 2.6 as the version

Create virtual hard disk

Select VDI first.

Next:

OK after creation

Some configurations are required after the creation:

If you want to hear the sound, set it as follows:

Key Nic settings:

After setting, you can start Android installation.

 

Select install. We recommend that you first select the first one to go to the Android system. If no error is reported, install the first one.

Create/modify partitions

SelectNewTo create a disk

Select propertiesPrimary

By default

SelectBootable

Just Hit Yes, although s does not see

After exiting, you will be able to see the area you just divided, and then you can install android in this area.

All the way Yes

Select SD allocation SD

 

Restart the instance.

Adjust the startup sequence in settings. If you don't want to work hard, you can simply move the ISO path in the optical drive, because it is first loaded from the CD by default.

Click to start.

Select enter System

 

So that your mouse can enter the simulator.

 

The keyboard shortcut for switching between the simulator and your real machine is set here

Here I select the left CTRL

So OK.

But some may ask, if I debug the program, how can I enable eclipse to be automatically packaged into our x86 Virtual Machine?

Go to all applications of the android System

 

With the IP address, it is easy to do. Many people think of ADB connect just like me.

Done, get it done, and go to the eclipse DDM.

 

In this way, you can develop it at a high speed, regardless of packaging or running!

Related Article

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.