Ubuntu12.04下载Android系统源代码

【参考链接

http://source.android.com/source/index.html

1.安装git-corecurl

apt-get update

apt-get install git-core curl

2.下载repo

mkdir ~/bin

PATH=~/bin:$PATH

curlhttps://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

chmod a+x ~/bin/repo


repo脚本下载以后,认情况是从google的源下载源代码,可以改成从清华的源,编辑 ~/bin/repo,把

REPO_URL = 'https://gerrit.googlesource.com/git-repo'

换成

REPO_URL = 'https://gerrit-google.tuna.tsinghua.edu.cn/git-repo'

3.建立目录,配置git信息

mkdir android-2.3.3_r1

cd android-2.3.3_r1

git config --global user.name"shadowfaxghh"

git config --global user.email"shadowfaxghh@gmail.com"


初始化仓库

repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest-b android-2.3.3_r1

如果上面没有更改过下载源,则使用如下地址

repo init -uhttps://android.googlesource.com/platform/manifest -b android-2.3.3_r1


4.下载代码

repo sync


相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...