Default ARM Emulator which comes with Android is very slow.
So idea to setup X86 Version of Anroid into VirtualBox and use it for deploy.
There are nice project http://www.android-x86.org/
Requirements for usage:
To have fully installed anroid development environment setup sdk .
Virtual Box http://www.virtualbox.org/
Name of Image Android-2.2-Generic
Operating System: Linux
Version : Linux 2.6
Memory 512 GB
Create Hard Disk 3GB
Open Settings->Network
Adapter 1 – NAT # (eth0) this for internet browsing
Adapter 2 – Host Only #(eth1) this for adb management connection
Connect iso Image here
Download android-x86-2.2-generic.iso
To Control process use arrow up,down ,left,right
Follow the steps ,select in menu
1. Installation – Install Android-x86 to harddisk
2. Crate/Modify partitions
Select [New] -> [Primary] -> Size (in MB) 3216 press [ok]
Select [Bootable]
Select [Write] confirm by typing yes
Select [Quit]
3. Select partitions to install Android-X86
[sda1 Linux VBOX HARDDISK]
4. Please select a filesystem to format sda1
[ext3]
Confirm Format
5. Do you want install boot loader GRUB ?
Yes
6. Do you want to install /system directory as read-write?
Yes
*There are some problems with deploy sample applications from Android SDK.
This image already has many installed sample applications.*
7. Android-x86 is installed successfully.
[Create a fake SD Card]
size 2000 MB
Unmount CD Image pressing on Icon
Reboot system
The emulator keyboard short-cuts
ESC back
context menu button on the right between ctrl and alt (on some notebooks it’s missing)
ALT+F7 , ALT+F7 switch between console or ALT+ Left arrow , Alt + Right arrow
F6 switch mode of emulator
Main screen
If there are problems no Mouse Cursor in Android-X86 Virtual Machine .
Go to Machine->Disable Mouse Integration , keyboard short cut is HOST+I
(default host key is right CTRL)
Unlock main screen pull the arrow to top
Network Issue:
eth0 ,eth1 will not work at same time very easy way to resolve
Settings -> Configure Ethernet
eth0 is for internet browsing
eth1 is for adb management connection
ALT + F1 switch to console
root@android:/ #
# netcfg
# netcfg eth1 down
# netcfg eth1 dhcp
action ‘dhcp’ failed (invalid argument)
*bug* without this line eth1 up command will not work
# netcfg eth1 up
# netcfg
remember later you will need
On the HOST machine run in command line the following sequence
Switch androd SDK folder in my case i have default folder
C:\Program Files\Android\android-sdk\platform-tools\
Use your
C:\Program Files\Android\android-sdk\platform-tools>adb connect 192.168.56.101
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
connected to 192.168.56.101:5555
Run Eclipse
Can I import android samples such as ApiDemos into your virtual box?
adb push install sample.app
One thing You Should have System app Remover apk
To avoid conflicts uninstall ApiDemos application and then you can redeploy it from Eclipse
Hi really work!!!! now im using the api level 12 with platform android 3.1 π
Thankyou!!!
However sometimes have problems with api level > 4 π
But, the velocity is uffffff…Excellent…. much better than sdk emulator.. π
When I type #netcfg, there is no eth1 device. Do you know how to fix this? Thanks.
Sorry, missed this line Adapter 2 β Host Only #(eth1) this for adb management connection. Already fixed.
Pingback: Greatest Failures So Far… | lonecasualgameprogrammer
please how I can do the last part, do not come to understand
On the HOST machine run in command line the following sequence
Switch androd SDK folder in my case i have default folder
C:\Program Files\Android\android-sdk\platform-tools\
Use your in my case itβs 192.168.56.101
C:\Program Files\Android\android-sdk\platform-tools>adb connect 192.168.56.101
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
connected to 192.168.56.101:5555
how can i use permanent android boot , when ever i boot again it need to re connect the ipaddress and my apps not be stored . could you tell me how can i every thing permanent!!!!
I am unable to get both eth0 (NAT) and eth1 (host-only) to work together. If I enable both the browser stalls when trying to access a web page; I have to disable eth1 to get networking to work. In addition in my Android x86 version (4.2) there is no “Configure Ethernet” setting entry. Any idea?
Thank for your article. It is very helpful for me!!!