How can I easily download the source code of Android devices? Tsinghua University Android source code image, android source code
Today, I found that Tsinghua University provided AOSP images, which were downloaded and updated synchronously from Google's site, but now it is much better to have an image site in China.
Help: https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/android
Repository address:
Git: // aosp.tuna.tsinghua.edu.cn/android/
Access through a browser:
Http://aosp.tuna.tsinghua.edu.cn/android/
1. Download the android source code
1. Download repo
Git: // aosp.tuna.tsinghua.edu.cn/android/git-repo.git/
2. Modify repo
Google address
REPO_URL = 'https: // gerrit.googlesource.com/git-repo'
Change to the address of Tsinghua University
REPO_URL = 'git: // aosp.tuna.tsinghua.edu.cn/android/git-repo'
3. Download manifest
Google address
$ Repo init-u https://android.googlesource.com/platform/manifest
Change to the address of Tsinghua University
$ Repo init-u git: // aosp.tuna.tsinghua.edu.cn/android/platform/manifest
4. Synchronization source code
Same as before
$ Repo sync
5. Replace the remote
If you have obtained the AOSP source code in some way before, but you want to synchronize it through TUNA in the future, you only need
<Remote name = "aosp"
Fetch = ".."
Review = "https://android-review.googlesource.com/"/>
Change the code below:
<Remote name = "aosp"
Fetch = "git: // aosp.tuna.tsinghua.edu.cn/android /"
Review = "https://android-review.googlesource.com/"/>
This method can also be used to synchronize part of the code from TUNA during Cyanogenmod code synchronization.