Android Source Download 2

Source: Internet
Author: User

Because the domestic network is the wall reason, according to Google provides the way to download the Android source code is difficult to download, so write down this article.

1. Download and configure repo information
mkdir ~/binpath=~/bin: $PATHgit clone Git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git
2. Copy the repo file from the Git-repo in the step to the bin directory
CP Git-repo/repo ~/bin/
3. Modify the Repo file
sudo vim ~/bin/reporepo_url = ' Git://aosp.tuna.tsinghua.edu.cn/android/git-repo '

4. Ready to download Android source code
mkdir anroidcd androidgit config--global user.email "[email protected]" git config--global user.name "Your name" Repo Init -U git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest-b android-5.0.2_r1

Note: View Source branch: Http://source.android.com/source/build-numbers.html#source-code-tags-and-builds

5. Download the source code formally

Repo Sync script (build script in Source directory: VI down.sh):

#!/bin/sh
Repo sync-j16
While [$?-ne 0]
Do
Repo sync-j16
Done

Execute download command: SH down.sh




Android Source Download 2

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.