Ubuntu下Android系统源码下载

来源:互联网 发布:知行理工登录不上 编辑:程序博客网 时间:2024/06/06 20:47

第1步:安装gitcurl 

$ sudo apt-get installgit-core curl

第2步:安装repo脚本

$ curlhttp://android.git.kernel.org/repo>~/repo

第3步:给repo可执行权限

$ chmod a+x~/repo

第4步:新建一个目录mydroid ,进入目录

$ mkdir mydroid

$ cd mydroid

第5步:repo初始化

$ repo init -ugit://android.git.kernel.org/platform/manifest.git

其间需要输入姓名和邮箱,随意输入,测试颜色选择是,最后你会得到一个类似“repo initialized in/home/nebulayao/mydroid”的提示,说明初始化成功。

ps:可以修改check out的版本

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

第6步:repo同步

$ reposync

因为文件比较大,所以请耐心等待吧~~

最后你看到了这样一句Syncing work tree: 100% ,done表示下载完毕。



原创粉丝点击