Android源码下载及编译
使用科大镜像(国内无法直接访问google)
首先下载 repo 工具1234mkdir ~/binPATH=~/bin:$PATHcurl https://storage-googleapis.lug.ustc.edu.cn/git-repo-downloads/repo > ~/bin/repochmod a+x ~/bin/repo
然后建立一个工作目录(名字任意)12mkdir AndroidSourcecd AndroidSource
初始化仓库:
|
|
下载特定的android源码版本1repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest -b android-4.0.1_r1
同步源码树1repo sync
可能需要漫长的等待android源码的下载
源码下载完成后,开始编译android源码123source build/envset.shlunch full-engmake
简单的三步即可完成源码的编译