Domestic android AOSP Source code download method

Source: Internet
Author: User

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

1, download the Repo tool, modify the permissions and add to the environment variables.

$git Clone git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git/

$mkdir-P ~/bin

$CP Git-repo/repo ~/bin/

$chmod a+x ~/bin/repo

$vim ~/bin/repo

Modify Repo_url = ' Https://gerrit.googlesource.com/git-repo ' in the REPO file to Repo_url = ' git://aosp.tuna.tsinghua.edu.cn/ Android/git-repo '

$export path=~/bin/: $PATH

2, initialize git, if you need to press branch download, plus-B branch_name can

$repo Init-u Https://aosp.tuna.tsinghua.edu.cn/platform/manifest

3. Repo Sync Sync Code with the following script

Export Path=~/bin: $PATH

Repo Sync-j4

If ["$?"! = "0"]; Then

Sleep 30

Repo Sync-j4

Fi

Attachment 1: For the source code that has been downloaded from Google, you can change the source sync git://from Tsinghua by modifying the. repo/manifest.xml file in the directory. https://android.googlesource.com Aosp.tuna.tsinghua.edu.cn/android/.

Domestic android AOSP Source code download method

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.