Android I9100 源码编译 Step.5----下载Android源代码

在终端中输入:

mkdir ~/bin
PATH=~/bin:$PATH

来创建下载器目录,然后更新下载器:

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo

创建目录并下载源代码:

mkdir ACode
cd ACode

访问:

https://android.googlesource.com/new-password

登录后来获得源码下载授权,并按照页面提示將内容保存到root/.netrc.(.netrc需手动建立)

在终端中使用強制授权更新源码列表:

repo init -u https://android.googlesource.com/a/platform/manifest
repo init -u https://android.googlesource.com/a/platform/manifest -b android-4.0.3_r1.1

下载Android源代码:

repo sync

转载于:https://www.cnblogs.com/cgjy/archive/2012/06/06/2538675.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值