1、安装repo ,执行命令如下:

 

$ curl https:///dl/googlesource/git-repo/repo > ~/bin/repo       $ chmod +x ~/bin/repo     

 

2、初始化 repo ,执行命令如下:

$ repo init -u https:///platform/manifest -b android-4.1.1_r1     

3、下载源代码,命令如下:

$ repo sync   

相关网站链接和注意事项:
git中android源代码版本介绍:

 

https:///platform/manifest

下载源代码过程以及注意事项,该过程是用于4.0的,把分支改成4.1既可下载4.1

http:///source/downloading.html