Installing CPU Accelerator (HAXM)

Every Android Developer want their emulator to speedup for application debugging. And even they were facing slow speed issue with running app and to launch emulator.

If someone skipped the initial setup of Android Studio previously, they want to make sure the CPU acceleration is installed. And to check it bellow is the way to do with different OS.

You can manually install Intel x86 Emulator Accelerator by selecting
For Windows : intelhaxm-android.exe
For OS x : intelHAXM_6.0.1.dmg
From path : /sdk/extras/intel/Hardware_Accelerated_Execution_Mangager, as shown below:

Blog Installing CPU Accelerator Windows HAXM iNextrix
Blog Installing CPU Accelerator OSX HAXM iNextrix

For Linux, the Android emulator uses Kernel-based Virtual Machine (KVM). If you are using Ubuntu,
1. you can run check your KVM system compatibility
Command : $egrep –c ‘(vmx|svm)’ /proc/cpuinfo
Output : on the command line to check for a return value of greater than 1

OR
Command : .$cat /proc/cpuinfo | grep vmx
Output : vmx should be there in content.

2. To check if you have kvm installed
Command : $kvm-ok
Output : INFO: /dev/kvm exists
KVM acceleration can be used

3. If kvm is missing then first you have to install latest KVM by running the following on the command line:
Command : $sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils ia32-libs-multiarch

The linux commands look like the following on Ubuntu:

4. Add your current users to groups libvirtd and kvm
Command :
$usermod -a -G libvirtd username
$usermod -a -G kvm username

5. Verify Installation
Command : $virsh -c qemu:///system list
Output: If install
Id Name State
—————————————————

* HAXM – Hardware Accelerated Execution Manager