1) setup android compiling env
#!/bin/sh -x
sudo apt-get install -y git-core gnupg flex bison gperf build-essential zip curl libgl1-mesa-dev zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-d ia32-libs x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z1-dev tofrodos gawk python-argparse python-lxml ant texinfo libxml2-utils xsltproc libxml++2.6-2 libxml2-dev libxml2 libxml2:i386 python-commando git
sudo ln -s /usr/bin/fromdos /usr/local/bin/dos2unix
sudo apt-get install -y openjdk-7-jdkjenkins@shctsbdb111:~$ vi ~/.bashrc_jdk7
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64export JRE_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jreexport PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATHexport CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
source ~/.bashrc_jdk7
2) git clone android-code
source XXX
lunch XXXX
make XXX
##### check ####
dpkg -l # check all packagedpkg -L openjdk-7-jdk # check single package