ububtu下android源码下载详解
2012-07-12 17:45
405 查看
Google的官网上对此已经有了流程介绍。以下是经过我实践过的下载过程,并配有翻译。
1.Make sure you have a bin/ directory in your home directory, and that it is included in your path:
(建立bin目录,关联path)
2.Download the Repo script and ensure it is executable:
(下载repo,并修改权限)
3.Create an empty directory to hold your working files.
(建立下载目录,并进入到目录中)
4.Run
Repo with all its most recent bug fixes.. You must specify a URL for the manifest, which specifies where the various repositories included in the Android source will be placed within your working
directory.
(执行repo init获取android版本列表)
1.Make sure you have a bin/ directory in your home directory, and that it is included in your path:
(建立bin目录,关联path)
$ mkdir ~/bin
$ PATH=~/bin:$PATH
2.Download the Repo script and ensure it is executable:
(下载repo,并修改权限)
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
3.Create an empty directory to hold your working files.
(建立下载目录,并进入到目录中)
$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY
4.Run
repo initto bring down the latest version of
Repo with all its most recent bug fixes.. You must specify a URL for the manifest, which specifies where the various repositories included in the Android source will be placed within your working
directory.
(执行repo init获取android版本列表)
$ repo init -u https://android.googlesource.com/platform/manifest[/code]
http://source.android.com/source/build-numbers.html
5.To check out a branch other than "master", specify it with -b:
(初始化下载对应版本)repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
6.To pull down files to your working directory from the repositories as specified in the default manifest, run
(开始下载)$ repo sync
源码的编译可以参考:
http://blog.supra.tw/?p=47
相关文章推荐
- Android源码下载方法详解
- Android 源码编译详解【二】:VMware12/Ubuntu16 下载、安装图解
- Android-多线程断点下载详解及源码下载(二)
- 图文详解手把手教你在Windows环境下下载Android源码(Launcher为例)
- Android Launcher研究(一)-----------图文详解手把手教你在Windows环境下下载Android源码(Launcher为例)
- Android源码下载方法详解
- Android Launcher研究(一)-----------图文详解手把手教你在Windows环境下下载Android源码(Launcher为例)
- Android中Canvas绘图基础详解(附源码下载)
- Android中Canvas绘图之MaskFilter图文详解(附源码下载)
- 详解Android TabHost的多种实现方法 附源码下载
- Android开发之ListView详解(带按钮布局)【免费提供源码下载】
- Android中Canvas绘图基础详解(附源码下载)
- Android Launcher研究(一)-----------图文详解手把手教你在Windows环境下下载Android源码(Launcher为例)
- Android中Canvas绘图基础详解(附源码下载)
- Android-多线程断点下载详解及源码下载(一)
- Android开发使用HttpURLConnection进行网络编程详解【附源码下载】
- Linux 下编译Android-VLC开源播放器详解(附源码下载)
- Android编程之ICS式下拉菜单PopupWindow实现方法详解(附源码下载)
- Android中Canvas绘图基础详解(附源码下载)