Showing posts with label Intel x86 Emulator Accelerator (HAXM). Show all posts
Showing posts with label Intel x86 Emulator Accelerator (HAXM). Show all posts

Wednesday, October 7, 2015

Locate Intel Hardware Accelerated Execution Manager (HAXM) for Microsoft Windows, to update HAXM or change memory size.


The Intel Hardware Accelerated Execution Manager (Intel® HAXM) is a hardware-assisted virtualization engine (hypervisor) that uses Intel Virtualization Technology (Intel® VT) to speed up Android app emulation on a host machine. In combination with Android x86 emulator images provided by Intel and the official Android SDK Manager, HAXM allows for faster Android emulation on Intel VT enabled systems. ~ https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

According to the document Installation Instructions for Intel® Hardware Accelerated Execution Manager - Microsoft Windows:

- The SDK Manager will download the installer to the "extras" directory, under the main SDK directory. Even though the SDK manager says "Installed" it actually means that the Intel HAXM executable was downloaded. You will still need to run the installer from the "extras" directory to get it installed.

- Run the installer inside the <sdk folder>/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/ directory and follow the installation instructions for your platform.

Actually, you cannot find intel in C:\Program Files (x86)\Android\android-sdk\extras\ folder.

it should be in C:\Users\user\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe

To locate it, run AVD (Android Virtual Device), it will be shown in 'Run' box:


If you already have a old HASM installed, you want to update new version, or change memory size, you have to uninstall the old one firstly, in Windows Control Panel. Then run the C:\Users\user\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe again.


Monday, August 31, 2015

Install Intel x86 Emulator Accelerator (HAXM), on Android Studio/Windows 10

After Install Android Studio on Windows 10, you can install Intel x86 Emulator Accelerator (HAXM).


Refer to Android Developers document "Using the Emulator - Configuring Virtual Machine Acceleration":

Many modern CPUs provide extensions for running virtual machines (VMs) more efficiently. Taking advantage of these extensions with the Android emulator requires some additional configuration of your development system, but can significantly improve the execution speed. Before attempting to use this type of acceleration, you should first determine if your development system’s CPU supports one of the following virtualization extensions technologies:
  • Intel Virtualization Technology (VT, VT-x, vmx) extensions
  • AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)
The specifications from the manufacturer of your CPU should indicate if it supports virtualization extensions. If your CPU does not support one of these virtualization technologies, then you cannot use virtual machine acceleration.

If your system with Intel's CPU, you can check if the Virtualization Technology is Enabled using Intel® Processor Identification Utility.

To install Intel x86 Emulator Accelerator (HAXM Installer) and run it, read this video.


Most probably, you will encounter the following error and the Android Emulator cannot run!

HAXM is not working and emulator runs in emulation mode
emulator: The memory needed by this AVD exceeds the max specified in your HAXM configuration.
emulator: AVD      RAM size = 1536 MB
emulator: HAXM max RAM size = 512 MB
emulator: You might want to adjust your AVD RAM size and/or HAXM configuration to run in fast virt mode.

Because The HAXM installer suggested a 512MB/1GB RAM by default, and the default AVD created by Android Studio Setup require 1536 MB. To fix it, edit your AVD to require 1GB of RAM.



Or, you can/have to re-install HAXM to increase HAXM max RAM size.