文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>android 源码[2]

android 源码[2]

时间:2009-07-22  来源:fewlife

by tangke <[email protected]> 2009-06-10

目前android比较流行,笔者也跟着凑凑热闹,因为android是开发源代码的,所以我们一般情况下肯定要得到其最新源代码。

如何得到android的最新源代码

sudo apt-get install git-core curl

curl http://android.git.kernel.org/repo >git_android

mv git_android /usr/bin/

chmod +x /usr/bin/git_android

git_android init -u git://android.git.kernel.org/platform/manifest.git

git_android sync

不幸的是不断发生fatal和error,不停地重试才行。

估计是取源码的人太多了,服务器受不了了。
#!/bin/bash
echo "======start repo sync======"
git_android sync
while [ $? = 1 ]; do
       echo "======sync failed, re-sync again======"
       sleep 3
       android sync
done
相关阅读 更多 +
排行榜 更多 +
终极街头格斗

终极街头格斗

休闲益智 下载
大炮轰飞机

大炮轰飞机

飞行射击 下载
像素打僵尸

像素打僵尸

飞行射击 下载