练习编译android源代码。
第一步,下载。
这一步特别困难,google的网站总是断了,download好几天都没有把代码弄全了,最后到处打听,还好能从其他组的server上弄下来一个完整的代码包。
还是把下载的步骤贴下来吧,来源于google的网站:
To install Repo:
-
Make sure you have a bin/ directory in your home directory and that it is included in your path:
$ mkdir ~/bin $ PATH=~/bin:$PATH
-
Download the Repo tool and ensure that it is executable:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod a+x ~/bin/repo
After installing Repo, set up your client to access the Android source repository:
-
Create an empty directory to hold your working files. If you're using MacOS, this has to be on a case-sensitive filesystem. Give it any name you like: