[Android Pro] AOSP Download

Source: Internet
Author: User

Ubuntu14.04 System download Android source code, directly on the steps:

Tsinghua University TUNA Mirror Source

https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/

Https://lug.ustc.edu.cn/wiki/start

1. Download repo

, click, save directly to local.

2. Modify Repo
Google's address
Repo_url = ' Https://gerrit.googlesource.com/git-repo '
Change to Tsinghua University address
Repo_url = 'https://aosp.tuna.tsinghua.edu.cn/git-repo '

3. Download manifest
Google's address
$ repo Init-u https://android.googlesource.com/platform/manifest
Change to Tsinghua University address
$ repo init-u HTTPS://aosp.tuna.tsinghua.edu.cn/platform/manifest

4. Synchronous source Code
Still the same as before.
$ repo Sync

5. Replace the existing AOSP source code remote
If you have previously obtained the source of the AOSP by some means, but you want to be in the future through tuna synchronization, only need to be in the. repo/manifest.xml
<remote name= "Aosp"
Fetch= ".."
review= "https://android-review.googlesource.com/"/>
Change to the following code:
<remote name= "Aosp"
Fetch= "git://aosp.tuna.tsinghua.edu.cn/"
review= "https://android-review.googlesource.com/"/>

This method can also be used to synchronize part of the code from tuna while synchronizing the CyanogenMod code

[Android Pro] AOSP Download

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.