下载 android 4.0.3 源码

来源:互联网 发布:中小型企业网络设计 编辑:程序博客网 时间:2024/06/05 11:41

使用下面命令:

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

提示

No command 'repo' found, did you mean:
 Command 'rep' from package 'rep' (universe)
 Command 'repl' from package 'nmh' (universe)
 Command 'repl' from package 'mailutils-mh' (universe)
repo: command not found


估计是没有 repo 命令,只能安装了,在网上找了一个方法:

curl http://android.git.kernel.org/repo > ~/bin/repo

提示:

bash: /root/bin/repo: No such file or directory


奇怪啦,没有这个文件呢?

后来想了一下,这个个会不会是 GCC 安装的那个目录呢,

sudo curl http://android.git.kernel.org/repo > /arm-2009q3/bin/repo

哈哈,成功了!~!

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
122   244  122   244    0     0    271      0 --:--:-- --:--:-- --:--:--  1270

再执行下载,提示

bash: /bin/repo: Permission denied

权限不对,

进入 /arm-2009q3/bin/repo

chmod 777 repo

再执行

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

repo sync

没反应,

待续~!

继续

PATH=/arm-2009q3/bin:$PATH

设置这个路径。

然后

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

oh, my god !

终于开始下载了~!

 




原创粉丝点击