JNI
1,新建一个磁盘镜像。略
2,下载git-repo,可以参考 https://blog.51cto.com/ticktick/1653304
git clone git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git/
或
git clone git://git.omapzoom.org/git-repo.git
2,
/Volumes/android/WORKING_DIRECTORY/git-repo/repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1
注意上面路径repo前面的路径,如果直接: repo init -u xxx,可能会不成功
3,开始下载:
repo sync -c -j12 #开启12条线程同时下载