□ apt-get install git-core curl #先下載這兩個工具 □ mkdir android-froyo #建立下載目錄 □ cd android-froyo #進入下載目錄 □ curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo #下載repo腳本,通過該腳本可下載整套源碼 □ chmod a+x repo #設置該腳本為可執行 □ vi repo #編輯repo文件,修改REPO_UR為:REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/' □ ./repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b froyo #初始化git庫 □ ./repo sync #同步源碼樹,下載源碼,大小約為2GB,如果網速快,估計需要2個小時
參考鏈接:清華大學開源軟件鏡像站
