Steps for downloading Android source code (Ubuntu)

Source: Internet
Author: User

1. Set the software source
Apt-get install <packagename> cannot be used (apt-get: Package has no installation candidate problem occurs in Ubuntu)
# Apt-get update
# Apt-get upgrade
# Apt-get install <packagename>
Add a third-party address:
Sudo add-apt-repository "deb www.2cto.com/lucid partner"
Sudo apt-get update
2. Install git-core and curl
3. Download repo
$ Curl www.2cto.com> repo
$ Chmod 777 repo
4. Apply for the downloaded account and password
Www.2cto. com5. append the above information ~ /. The end of the netrc file (check the permissions of the current user. If this file does not exist, create one by yourself). Be sure to store the file in the home directory of the current user and root in the home directory of the root user.
6. repo init-u https://android.googlesource.com/a/platform/manifest-B android-2.3.3_r1
7. Enter the following content to ensure that the repo sync does not respond when it is downloaded to 99%.
$ Sudo sysctl-w net. ipv4.tcp _ window_scaling = 0
8. repo sync
Author: iamcai723

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.