Getting Android Sources Behind A Restrictive Proxy
I’ll have to assume you’re suffocated by both the following bottlenecks in getting the Android Open Source Project code:
git://protocol and port.
- A limit on the amount you’re allowed to download.
The Android sources amount to around 6GB in total, so anonymous proxy programs like
Your-Freedom will choke after a fixed time limit;
repo sync (git) does not resume downloads between projects; though you may resume
from the last project you downloaded. To smoothen out the rough edges, do this:
- Set your git proxy using this command, replacing what’s necessary:
git config --global http.proxy 10.1.8.30:8080
- Follow the steps here until you reach Getting The Files: this is the part that won’t work behind a restrictive proxy.
- Switch to the directory where you initially ran
repo init -uon the command line and then type in
ls -a; you should be able to see a
.repofolder. If you don’t, it means your
repo init -ufailed for some reason.
- Type in
gedit .repo/manifest.xmland change line 4 to read:
- Type in
gedit .repo/repo/repoand change line 5 to read:
- Download the modified repo script here and replace your old repo script with the modified one.
- Continue with Getting The Files at the Android Open Source Project website and things should be working fine.