mkdir ~/bin
export PATH=~/bin:$PATH
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
mkdir ~/aosp
cd ~/aosp
repo init -u https://github.com/IllusionProject/android -b jb
repo sync -j 4 | 8 | 16 | 24 | 32