# List branches of rep
git ls-remote file:///mirror/git/aosp/platform/manifest
# Checkout Local copy
repo init -u file:///mirror/git/aosp/platform/manifest
repo sync -j18
# List branches of local copy
git –git-dir .repo/manifests/.git/ branch -a
# Change branch
repo init -b android-6.0.0_r5
repo sync -j18
# install tools
sudo apt-get install git gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc
# Install Oracle jdk1.7.0.xx into /opt/jdk1.7.0, and export