在终端中输入:
mkdir ~/bin PATH=~/bin:$PATH
来创建下载器目录,然后更新下载器:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo chmod a+x ~/bin/repo
创建目录并下载源代码:
mkdir ACode
cd ACode
访问:
https://android.googlesource.com/new-password
登录后来获得源码下载授权,并按照页面提示將内容保存到root/.netrc.(.netrc需手动建立)
在终端中使用強制授权更新源码列表:
repo init -u https://android.googlesource.com/a/platform/manifest repo init -u https://android.googlesource.com/a/platform/manifest -b android-4.0.3_r1.1
下载Android源代码:
repo sync