Android镜像

地址:https://aosp.tuna.tsinghua.edu.cn/

帮助节选:

Android镜像使用帮助
参考Google教程https://source.android.com/source/downloading.html,将https://android.google source.com/全部使用git://aosp.tuna.tsinghua.edu.cn/android/代替即可。
本站资源有限,每个IP限制并发数为4,请勿使用repo sync-j8这样的方式同步。
替换已有的AOSP源代码的remote。
如果你之前已经通过某种途径获得了AOSP的源码(或者你只是init这一步完成后),你希望以后通过TUNA同步AOSP部分的代码,只需要将.repo/manifest.xml把其中的AOSP这个remote的fetch从https://android. googlesource.com改为git://aosp.tuna.tsinghua.edu.cn/android/。

<manifest>
   <remote  name="aosp"
-           fetch="https://android.googlesource.com"
+           fetch="git://aosp.tuna.tsinghua.edu.cn/android/"
            review="android-review.googlesource.com" />
   <remote  name="github"
这个方法也可以用来在同步Cyanogenmod代码的时候从TUNA同步部分代码
原文地址:https://www.cnblogs.com/hongjiujin/p/7607179.html