Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On Ubuntu 12.10, Android Emulator is too slow, how can I speed it up?

I installed SDK with adt-bundle-linux-x86-20130219.

I tried to use host GPU and get some more speed, but when I launch it, there is still some lagging.

share|improve this question

3 Answers 3

This is not Ubuntu specific. The Android SDK's speed is terrible.
That's not a flamebait or anything, it's sadly... a fact.

You can work around it easily, though.
AndroVM and VirtualBox is all you need!

It provides a fast phone, phone/tablet, or tablet for all your needs, with a blazing fast speed. It's not native, runs on x86 Android. So while it won't replace "real testing", it is the best way to develop.

(AndroVM is an x86 virtual image with everything set up for VirtualBox. VirtualBox is a free virtual machine.)

You will need to configure the network 0 to "host-only" if you want ADB.
Check the FAQ / Documentation at AndroVM. :)

Step by step:
1) Download VirtualBox, or install the OSE version.
2) Grab the image from AndroVM. The one you need, pick the one you want.
3) Just import the image into VirtualBox.
4) Run the VM. (for ADB, see above.)

share|improve this answer
    
no thanks i will not change my way with using ubuntu for some speed :P –  Hany Alsamman Apr 23 '13 at 21:07
1  
You are not using Ubuntu, you are using a qemu by Google, which emulates arm/x86 very, very slowly. Same way, just a faster one. Oh well. –  Shiki Apr 23 '13 at 21:43
    
Thanks a lot for the link to AndroVM. This should be an accepted answer! –  jutky Oct 13 '13 at 21:24

It's fairly simple, just enable kvm acceleration in these steps (linux only):

  1. create x86 image of phone (CPU/ABI: Intel Atom (x86))
  2. pass these arguments:
     -qemu -m 512 -enable-kvm 

That's it pretty much (lets not bother with gpu acceleration and other fancy stuff). When compared with classic arm version, it speeds it up tenfold.

This should be easy to setup with android studio, just go into avd manager, create x86 device and then in main menu go to Run -> Edit configuration -> Emulator (tab) -> aditional command line parameters: "-qemu -m 512 -enable-kvm".

share|improve this answer

@Hany Alsamman: If you have a CPU of Intel supporting Virtual Technology you can try to install Intel Hardware Accelerated Execution Manager as well as the plugin for your Android AVD. This will really speed your Emulator up. The Virtual Technology must be enabled in BIOS section. I think you can follow the steps in this post

http://hintdesk.com/android-how-to-speed-up-android-emulator/

It's for Windows but the steps are all relevant to setup/configuration things, not really specific for Windows.

share|improve this answer
    
thanks , maybe it's good solution for me but if you are on old pc maybe not helpful –  Hany Alsamman May 6 at 23:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.