download android source:
https://source.android.com/source/downloading.html
然后将生存的文件保存到你的home目录下:~/.netrc
repo init -u https://android.googlesource.com/platform/manifest #not work for me
$ chmod a+x ~/bin/repo
$ export PATH=~/bin:$PATH
$ repo init -u https://android.googlesource.com/a/platform/manifest
$ repo sync
如果你想下载别的版本的话,可以通过下面的页面来找到对应的版本号:
https://source.android.com/source/build-numbers.html
https://source.android.com/source/downloading.html
你最好使用自己的google帐户生成下载source需要的帐号,防止匿名下载失败,我刚开始就是匿名下载,但是总是失败。
然后将生存的文件保存到你的home目录下:~/.netrc
下面是匿名和认证的下载连接:
repo init -u https://android.googlesource.com/platform/manifest #not work for me
例子 :
$ chmod a+x ~/bin/repo
$ export PATH=~/bin:$PATH
$ repo init -u https://android.googlesource.com/a/platform/manifest
$ repo sync
如果你想下载别的版本的话,可以通过下面的页面来找到对应的版本号:
https://source.android.com/source/build-numbers.html