Ubuntu11获取android源代码

1.安装获取源代码所需工具"git","curl"

$ sudo apt-get install git-core curl              

 

2.安装获取源代码所需工具"repo"

$ mkdir ~/bin

$ cd ~/bin                                                       

 

$ curl http://android.git.kernel.org/repo > ~/bin/repo           

$ chmod a+x ~/bin/repo        

 

3.利用"repo"和"git"工具获取源代码

$ mkdir /home/yourname /mydroid                                  

$ cd /home/yourname /mydroid                                     

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

$ repo sync

你可能感兴趣的:(android,ubuntu,git,工具)