android下源码

获取repo

curl http://git-repo.googlecode.com/files/repo-1.13> ~/bin/repo

chmod a+x ~/bin/repo

PATH=~/bin:$PATH

repo init -u https://android.googlesource.com/platform/manifest
repo init -u https://android.googlesource.com/platform/manifest  -b android-4.2_r1

修改/etc/hosts

增加下面内容,保存
74.125.31.82 www.googlesource.com
74.125.31.82 android.googlesource.com
203.208.46.172 cache.pack.google.com
59.24.3.173 cache.pack.google.com

repo sync

你可能感兴趣的:(android下源码)