1、安裝repo ,執行命令如下:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod +x ~/bin/repo
2、初始化 repo ,執行命令如下:
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.1_r1
3、下載源代碼,命令如下:
$ repo sync
相關網站鏈接和注意事項:
git中android源代碼版本介紹:
https://android.googlesource.com/platform/manifest
下載源代碼過程以及注意事項,該過程是用於4.0的,把分支改成4.1既可下載4.1
http://source.android.com/source/downloading.html