Use Intel HAXM to speed up the Android simulator emulator

Source: Internet
Author: User
Tags android sdk manager

On the weekends. The environment for developing an Android application using ADT in Eclipse is, of course, as we all know, that the Android emulator simulator is really slow to start and run, and is "legendary", hehe. Of course, Intel last year developed and posted a driver for Android emulator on Google's Android website, dramatically boosting the startup and operational efficiencies of Android emulator on the Intel x86 platform, This improves the efficiency of Android application developers when they use the Android emulator to develop programs.
Use HAXM (Hardware accelerated Execution Manager) on Windows and MacOS to speed up the Android emulator, using KVM acceleration directly on the Linux platform. According to the official introduction, generally used HAXM or KVM, there is 5~10x performance improvement, I simply looked at the next indeed there are several times the improvement.
HAXM must require support for Intel hardware virtualization, which can be set up in the BIOS generally. In the bios of Btw,thinkpad X230, the VT is set in the security option.
HAXM can be downloaded via the Android SDK Manager, and the Intel HAXM extension (Intel x86 emulator Accelerator (HAXM)) to be used at the bottom of the Package list is also required to install the corresponding image (Intel x86 Atom System Image). After downloading the HAXM installation files in the Sdkextrasintelhardware_accelerated_execution_manager directory, click Install (Note that if Intel VT is not open, it cannot be installed successfully).

When making AVD, you need to set its "Cpu/abi" property to "Intel Atom (x86)." For graphics acceleration, when editing AVD settings, emulation option selects "Use Host GPU".

When you start a certain avd in the Android Virtual Device Manager, you might see the following:

Starting emulator for AVD ' Avd_for_nexus_s_by_google '
Emulator:device fd:620
Hax is working and emulator runs in fast virt mode
Creating window 0 0 438 729

When ADT runs in Eclipse, the corresponding output is as follows (you can see if Hax is Work):

[2013-07-08 11:44:43-jayfirstapp]------------------------------
[2013-07-08 11:44:43-jayfirstapp] Android launch!
[2013-07-08 11:44:43-jayfirstapp] adb is running normally.
[2013-07-08 11:44:43-jayfirstapp] Performing com.example.jayfirstapp.MainActivity activity launch
[2013-07-08 11:44:43-jayfirstapp] Automatic Target mode:launching new emulator with compatible AVD ' Avd_for_nexus_s_by_google '
[2013-07-08 11:44:43-jayfirstapp] Launching a new emulator with Virtual Device ' Avd_for_nexus_s_by_google '
[2013-07-08 11:44:47-emulator] Emulator:device fd:620
[2013-07-08 11:44:47-emulator]
[2013-07-08 11:44:47-emulator] Hax is working and emulator runs in fast virt mode
[2013-07-08 11:44:50-emulator] Creating window 0 0 438 729
[2013-07-08 11:44:50-jayfirstapp] New Emulator found:emulator-5554
[2013-07-08 11:44:50-jayfirstapp] Waiting for home (' Android.process.acore ') to be launched ...

BTW,HAXM is our team developed, if you encounter any bugs, you can also feedback to me, I can be transferred to HAXM developer. (Update: I am not in that team, please have a question to the Intel HAXM official website to feedback bar: http://software.intel.com/en-us/articles/ Intel-hardware-accelerated-execution-manager)

Use Intel HAXM to accelerate the Android simulator to match the real machine

Intel HAXM (Hardware accelerated Execution Manager) uses hardware acceleration based on Intel (R) Virtualization Technology (VT), so CPU support VT is required, and And only Intel CPU, and the AMD CPU, Intel HAXM described as follows:

Use Intel VT technology;

Provides hardware acceleration for the Android x86 virtual device's analog operation;

Integrated with the Android SDK;

The hardware requirements are as follows:

Intel processors that support Vt-x, EM64T, and Execute Disable Bit;

At least 1GB of available memory

Supported Operating systems:

Windows 7 (32/64-bit)

Windows Vista (32/64-bit)

Windows XP (32-bit only)

OS X 10.6 or 10.7 (32/64-bit)

Download and install the Intel HAXM extension

Start the Android SDK Manager, at the bottom of the Package list is the Intel HAXM extension that you want to use, tick, download, and do not go to Intel's website, as shown below:

After downloading the HAXM, you need to run Setup to install it, HAXM download the directory is Android-sdk\extras\intel\hardware_accelerated_execution_manager, run IntelHaxm.exe installation, according to the screen prompts, step-by-step installation can be.

Download Android x86 Mirrors

There are already 4.1.2 x86 mirrors in the Android SDK Manager, so select 4.1.2 x86 mirroring, as shown in the following illustration:

Using Android x86 mirroring

Create or edit the Android emulator and set the emulator Cpu/abi to Intel Atom X86, as shown in the following illustration:

If the above steps are not wrong, now the Android simulator can run almost as fast as the real machine, and no longer envy the IOS emulator on the MAC platform.

Zhang Zhimin All articles follow the Creative Commons Copyright agreement, requiring signature, non-commercial, and consistent. To meet the creation of the common Copyright Agreement can be reproduced on the basis of, but please indicate the origin of the hyperlink form.

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.