How can I easily download the source code of Android devices? Tsinghua University Android source code image, android source code

Source: Internet
Author: User

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.




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.