系统:ubuntu 16.04.2 TLS
1.源码下载:
sudo apt-getinstall curl
curl https://storage.googleapis.com/git-repo-downloads/repo > repo
chmod a+x repo
mkdir srcAndroid
cd srcAndroid
git config--global user.name "xunbu7"git config--global user.email "xunbu7@gmail.com"repo init-u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-4.4.4_r1
repo sync
选择目标版本源码,参考编译版本标签对照表:
2.驱动下载:
将下载下来的3个压缩包加压到源码目录,分别执行3个sh文件,输入“I ACCEPT”。可以看到源码目录多了一个vendor目录。删除sh文件即可。
3.环境配置
3.1 jdk环境
4.4.4_r1需要jdk6环境,而标准库不支持旧版本,所以下载方式如下:
Open the terminal and execute below commands one by one. It will inst