Android Source code Download notes

Source: Internet
Author: User

Android source code to download the reference on the Internet, it is not posted up, mainly notes under the download source code in the process need to pay attention to the place.

1. Google official download steps address:

Http://source.android.com/source/downloading.html

The steps inside are more specific.

Note: You need to install Git-core and curl first

$: sudo apt-get install Git-core curl


2. Because of domestic reasons (you know). Need to include in the/etc/hosts file

74.125.31.82 www.googlesource.com
74.125.31.82 android.googlesource.com
203.208.46.172 cache.pack.google.com
59.24.3.173 cache.pack.google.com


3. Create the reposync.sh in the directory where you downloaded the source code, content:

#! /bin/bash
echo "=====start repo sync======"
Repo Sync
While [$ = 1]; Do
echo "======sync failed, Re-sync again======"
Sleep 3
Repo Sync
Done

Run

$:./reposync.sh

??

Android Source code Download notes

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.