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