The way to solve download android source problem.
when you download android source as the step by http://source.android.com/source/downloading.html, however, it is alway interrupted because of the limited bandwidth.
There are a good way that could solve. use the shell script as follow.
"======start repo sync======"
repo sync
while [ $? == 1 ]; do
echo "======sync failed, re-sync again======"
sleep 3
repo sync
done
when you can not down the source ,you could try this method