跟随“老罗的Android之旅”学习Android系统,首先得学会创建能用于编译Android源代码的环境。
文章参考:http://0xcc0xcd.com/p/books/978-7-121-18108-5/c131.php
步骤1:下载repo工具(用于管理Android源代码的Python脚本文件)mkdir ~/bin PATH=~/bin:$PATH curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo chmod a+x ~/bin/repo
REPO_URL = 'https://gerrit-google.tuna.tsinghua.edu.cn/android/git-repo'
repo init -u https:aosp.tuna.tsinghua.edu.cn/android/platform/manifest -b android-2.3.1_r1