Galaxy Nexus
Introduction
The Galaxy Nexus is a touchscreen slate Android smartphone developed by a partnership between Google and Samsung. This page covers short reference instruction on how to build, configure and run ICS virtualized Android 4.0 system for Galaxy Nexus that uses prebuilt fielsystem images.
Instruction
Download the source code:
$ git clone https://github.com/b-labs/codezero-meta.git
$ cd codezero-meta
$ git clone https://github.com/b-labs/codezero.git
$ git clone https://github.com/b-labs/linux.git
$ git clone https://github.com/b-labs/linux-extras.git
Checkout the matching linux branch:
$ cd linux
$ git checkout tuna
$ cd ..
Load the single-tuna-ics meta-config and (optionally) configure the setup
$ ./config-load.sh single-tuna-ics
$ make menuconfig # optional
Build:
$ make
Download binaries from here. It contains the following files
system.img– Android filesystem’s system binary imageuserdata.img– Android filesystem’s userdata binary imageramdisk.img– Android filesystem’s system ramdisk image
Build paravirt-boot.img:
$ mkbootimg --kernel current/codezero/Image --ramdisk ramdisk.img -o paravirt-boot.img
Install AOSP tools and configure fastboot device access by following the Installing AOSP host tools and Configuring USB Access sections of the Initializing the Host Environment page.
Connect the phone to the host machine via Micro-USB to USB converter. Press Volume UP, Volume Down and Power keys of the phone simultaneously, making the phone go into the fastboot mode.
Flash kernel and filesystem binaries and boot the phone:
$ fastboot erase cache
$ fastboot flash system system.img
$ fastboot flash userdata userdata.img
$ fastboot flash boot paravirt-boot.img
$ fastboot reboot
