这几天好像 都没法访问,所以一直没拿到android的source code。无聊时看了下这个页面的快照,发现source还可以通过git拿的,赶快试了一下,发现git server是好用的,而且速度还不错。大家也可以通过下面的办法来取source code:
To install, initialize, and configure Repo, follow these steps:
Make sure you have a ~/bin directory in your home directory, and check to be sure that this bin directory is in your path:
$ cd ~
$ mkdir bin
$ echo $PATH
Download the repo script and make sure it is executable:
$ curl >~/bin/repo
$ chmod a+x ~/bin/repo
Create an empty directory to hold your working files:
$ mkdir mydroid
$ cd mydroid
Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest:
$ repo init -u git://android.git.kernel.org/platform/manifest.git
When prompted, configure Repo with your real name and email address. If you plan to submit code, use an email address that is associated with a Google account.
A successful initialization will end with a message such as
repo initialized in /mydroid
To pull down files to your working directory from the repositories as specified in the default manifest, run
$ repo sync
阅读(1615) | 评论(0) | 转发(0) |