Skip to content

Building android x86

Mingyuan Xia edited this page Aug 10, 2014 · 1 revision

Building android-x86

[official site](http://www.android-x86.org official site)

Prerequisite for the host Linux

same as ASOP version

And you need squashfs as well if working on >4.0.

make

Download source here.

source build/envsetup.sh
make -j6 iso_img TARGET_PRODUCT=generic_x86

VirtualBox

  • create a VM, create vdi
  • mount out/target/product/generic/xxx.iso as CD
  • boot from CD(default) and install
    • create '''one''' primary and bootable partition
    • enable read-write /system folder
  • remove CD and reboot

network

basic network

<Alt+F1> to console (<Alt+F7> back to GUI), execute:

netcfg eth0 up
netcfg eth0 dhcp
setprop net.dns1 132.206.85.18

Notes:

  • In China, you may have a different DNS.
  • You can write these lines to /etc/init.sh use echo.

full ethernet support

You can find the original work here. This patch helps to activate ethernet support in Setting of Android. And the "no internet connection" of notification panel will be gone.

  • Download the patch
  • Copy the attached tarball to your AX86 build top directory and do the following steps:
tar -xzvf EthernetPatch_IMM76I_L.tar.gz 
cd build/ 
git apply 0001-Adding-Ethernet-patch-for-android-x86-4.0-RC1-AOSP-4.patch 
cd .. 
cd frameworks/base/ 
git apply 0001-Ethernet-support-Patch-for-ICS4.0.4-IMM76I.patch 
cd ../../ 
cd packages/providers/DownloadProvider/ 
git apply 0001-Adding-Ethernet-patch-Cr-android-x86-4.0-RC1-AOSP-4..patch 
cd ../../../ 
cd packages/apps/Settings/ 
git apply 0001-Ethernet-support-Patch-for-ICS4.0.4-IMM76I.patch 
  • Then change the kernel config "kernel/arch/x86/configs/android-x86_defconfig". Change the following entry from "=m" to "=y".
< CONFIG_NET_ETHERNET=y 
< CONFIG_NET_PCI=y 
< CONFIG_E1000E=y 
< ## XEN 
< CONFIG_8139CP=y 
< CONFIG_8139TOO=y 
< 
< ## VirtualBox 
< CONFIG_PCNET32=y

ADB

  • ADB is only available when you finish the setup for VM network.
  • Then setup port forward (VM:5555->host:555x)

Storage

  • Once installed, the internal storage is of the same size of the vdi partition.
    • You may found wrong number in setting->storage, but you can check out the correct reading from setting->apps.
  • fake SDCARD is not necessary since 4.0RC2, according the changelog [http://www.android-x86.org/releases/releasenote-4-0-rc2 here]
Fake SD card is replaced by internal storage support.

Google Service framework

discussion thread