2011-04-25

Slitaz -- Android-x86




Android-x86 Project - Run Android on Your PC

http://www.android-x86.org/

This is a project to port Android open source project to x86 platform, formerly known as "patch hosting for android x86 support". The original plan is to host different patches for android x86 support from open source community. A few months after we created the project, we found out that we could do much more than just hosting patches. So we decide to create our code base to provide support on different x86 platforms, and set up a git server to host it.


QemuHowTo
http://www.android-x86.org/documents/qemuhowto

# qemu howto
Introduction

This article describes how to run eeepc.iso inside Qemu, a generic and open source machine emulator and virtualizer. The tested version is 0.10.5 on Fedora 11, and 0.9.1 on Debian 5.0.

Workable features:

* Internet access (DHCP mode).
* Audio, playing music.

Details

Create a script qemu-android like

#!/bin/sh
qemu-kvm -soundhw es1370 -net nic -net user -cdrom \
${@:-out/target/product/eeepc/eeepc.iso}

Run it by

$ qemu-android

The script configures the qemu machine to have a sound card es1370, and a network card rtl8139 (the default one), and use the user mode network stack.

Note the script runs qemu in KVM mode. You must have kvm module (kvm-intel or kvm-amd) installed for your kernel, and the permission of /dev/kvm is set to allow your user to access it. Otherwise the KVM support will be disabled and it may run very slow. If you don't have qemu-kvm in your distribution, use qemu.

Advanced

Like Virtual Box, you can save data to a qemu virtual disk.

* First, create a qemu virtual disk (size 1GB) by

$ qemu-img create -f qcow2 android.img 1G

* Run

$ qemu-android eeepc.iso -hda android.img -boot d

Then follow the VirtualBoxHowTo for how to mount user data and sdcard on the virtual disk. You can also follow that article to upload music files and play them. (Use wget to pull file from the host. Adb push may not work)

Known bugs

If the Android inside Qemu enters suspend mode, it cannot wake up. So it is better to set the Screen timeout to be Never (Setting -> Sound & display -> Screen timeout).