首頁 收藏 QQ群
 網(wǎng)站導(dǎo)航

ZNDS智能電視網(wǎng) 推薦當(dāng)貝市場

TV應(yīng)用下載 / 資源分享區(qū)

軟件下載 | 游戲 | 討論 | 電視計算器

綜合交流 / 評測 / 活動區(qū)

交流區(qū) | 測硬件 | 網(wǎng)站活動 | Z幣中心

新手入門 / 進(jìn)階 / 社區(qū)互助

新手 | 你問我答 | 免費刷機(jī)救磚 | ROM固件

查看: 57649|回復(fù): 1
上一主題 下一主題
[源碼]

Android源碼下載

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
發(fā)表于 2013-8-28 16:30 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式 | 未知
5
1、先安裝curl、git工具。
   
2、創(chuàng)建一個放android源碼的目錄。   
$ mkdir ~/Android_src   
$ mkdir ~/bin   
3、下載repo   
$ cd ~/bin   
$ curl http://android.git.kernel.org/repo > ~/bin/repo   
$ chmod a+x ~/bin/repo   
4、將repo工具所在的路徑加入環(huán)境變量里PATH(/etc/environment/)中。   
或是在使用repo工具時,手動指定repo路徑。   
$ cd ~/Android_src   
$ ~/bin/repo init -u git://android.git.kernel.org/platform/manifest.git   
注:可加 -b 指定所要下的版本,如不加則默認(rèn)為最新版本。   
5、同步代碼   
$~/bin/repo sync   
注:這過程比較慢長,一較要2~3個小時(主要由風(fēng)速決定)   
   
如感覺上述麻煩,可新建如下腳本,只要運行如下腳本一切ok!??!   
#!/bin/sh   
  2 ########################################   
  # Create ~/Android_src directory   
  # Create ~/bin directory   
  ########################################   
sudo ln -snf /bin/bash /bin/sh   
if [ -z $(which curl ) ] ; then   
    sudo apt-get -y --force-yes --reinstall install curl   
fi   
if [ -z $(which git-core ) ] ; then   
    sudo apt-get -y --force-yes --reinstall install git-core   
fi   
test -d ~/bin || mkdir ~/bin   
   
test -e ~/bin/repo || curl http://android.git.kernel.org/repo > ~/bin/repo   
test -x ~/bin/repo || chmod a+x ~/bin/repo   
   
test -d ~/Android_src || mkdir ~/Android_src   
cd ~/Android_src   
~/bin/repo init -u git://android.git.kernel.org/platform/manifest.git   
~/bin/repo sync   
   

上一篇:深入學(xué)習(xí)android之AlarmManager
下一篇:Android2.2系統(tǒng)中自帶的圖片資源 J-P

相關(guān)帖子

沙發(fā)
發(fā)表于 2018-10-19 07:51 | 只看該作者 | 來自湖北
謝謝分亭
回復(fù) 支持 反對

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

Archiver|新帖|標(biāo)簽|軟件|Sitemap|ZNDS智能電視網(wǎng) ( 蘇ICP備2023012627號 )

網(wǎng)絡(luò)信息服務(wù)信用承諾書 | 增值電信業(yè)務(wù)經(jīng)營許可證:蘇B2-20221768 丨 蘇公網(wǎng)安備 32011402011373號

GMT+8, 2024-10-23 05:01 , Processed in 0.059988 second(s), 15 queries , Redis On.

Powered by Discuz!

監(jiān)督舉報:report#znds.com (請將#替換為@)

© 2007-2024 ZNDS.Com

快速回復(fù) 返回頂部 返回列表