Android 17: Emulator hardware acceleration under Linux

Source: Internet
Author: User

Intel provides a virtual hardware acceleration technology called HAXM, all known as: Intel Hardware Accelerated Execution Manager.
As long as your CPU is Intel's product and supports VT (virtualization technology), you can use HAXM technology to elevate the speed of your simulator to the level of the real machine. This technology currently supports Apple's Mac and Windows systems, but not the Linux platform.

To know the Android build environment Google first push Linux platform (64-bit Ubuntu) and Mac system ranked second. So how does hardware accelerate under the Linux platform?
That is the legendary KVM (kernel-based virtual machine), which, again, requires hardware support, such as Intel's VT and AMD V, which is hardware-based full virtualization.
To make sure your CPU meets the requirements first, here are a few commands to refer to:

$ ‘(vmx|svm)‘ /proc/cpuinfo4

The printed value is not 0.

Install KVM below:

$ sudo apt-get install qemu-kvm$ sudo adduser linc kvm$ sudo apt-get install libvirt-bin ubuntu-vm-builder bridge-utils$ sudo adduser linc libvirtd

Verify the installation is successful:

$ sudo virsh -c qemu:///system list Id    Name                           State----------------------------------------------------

All goes well, the next step is to create a x86 or x86_64 emulator, which is not supported by other emulators. Such as:

Start this emulator with the command line:

-avd-qemu-m2047-enable-kvm

It's really fast to use and it's amazing how quickly you can open a webpage. Of course, if you do not start the command line, directly in the Android studio to launch the x86_64 architecture Simulator, the speed is very fast, but the ARM architecture simulator startup speed is extremely slow. Then again, since there is a relatively good CPU, then the other configuration of the machine must not be poor, such a configuration run simulator to certainly be stronger than the original.

The simulator is handy, so enjoy the fun of the development below.

Reference:
http://www.mobibrw.com/?p=291

Android 17: Emulator hardware acceleration under Linux

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.