How to download Android source code through proxy

Source: Internet
Author: User

Csdn posts

 

1. The source code of android can be downloaded synchronously. How can I obtain the source code of Android Linux? Linux website? What version should I get?

Http://topic.csdn.net/u/20110328/16/ab03326f-9309-428e-b52c-0c122cedb5c9.html

 

2. When downloading the android source code, why does the following error always occur when the curl command is executed: curl :( 6) couldnot Resolve Host. Why?

Http://topic.csdn.net/u/20110322/16/330b5e20-76fd-4b17-a2ad-77542d48d68f.html

 

3. the following source code reports unable to look up android.git.kernel.org (Port 9418) Name or service not know.

Http://topic.csdn.net/u/20110323/11/922f9968-0c50-45d4-9a4d-aead5f2f7473.html

 

4. How to obtain the cross-compilation toolchain corresponding to different versions of the android source code? Compile by yourself? What versions should I find for each component (tool software) of the compiler?

Http://topic.csdn.net/u/20101104/23/e6893ca1-ed3b-4f14-9792-c7454c5a76b0.html

 

Several useful websites

1. How to download the android source code (Windows and Linux)

Http://blog.sina.com.cn/s/blog_91e5d1d70100vtdk.html

 

2. How to Solve the Problem of [fatal: unable to look up android.git.kernel.org (Port 9418) (name or service not known)] when obtaining the android source code?

Http://www.cnblogs.com/yyangblog/archive/2011/03/24/1993796.html

 

 

// ================================================ ====================================

// 2012--2--2 xqh today records the process of successfully downloading the android source code

Can refer to the official Android download reference website ---- http://source.android.com/source/downloading.html

 

 

1. Use the curl command to download the repo file ---- use your username and password as the parameter via proxy to access the Internet ---- Do not use http://android.git.kernel.org/repo ----for the website that has already been attached

 

Curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo> ~ /Bin/Repo

Curl-u <proxy_user_id >:< proxy_password>-x <proxy_server >:< proxy_port>
Https://dl-ssl.google.com/dl/googlesource/git-repo/repo> ~ /Bin/Repo

 

2. Modify the executable attributes of a repo File

Chmod A + x ~ /Bin/Repo

Do you want to change the repo_url In the repo file to HTTP or HTTPS?-You can try either of them.

 

3. Execute the following command in the terminal window that is currently open-only download via proxy

 

$ Export http_proxy = http: // <proxy_user_id >:< proxy_password >@< proxy_server >:< proxy_port>

$ Export https_proxy = http: // <proxy_user_id >:< proxy_password >@< proxy_server >:< proxy_port>

 

4. Export the repo file path to the PATH environment variable and run ---- repo init. Do not use git: // android.git.kernel.org/platform/manifest.git.
Website ---- because the website has been suspended

$ Path = ~ /Bin: $ path

$ Repo init-u https://android.googlesource.com/platform/manifest-B android-4.0.1_r1

If it succeeds, you must enter your user name and your email address to contact you. Note that the version number must be changed when the version you want is different.

 

5. Get the hidden. Repo folder. If the folder is normal, the size of the folder will change.

 

6. The next step is to synchronize the./repo sync file.

 

If there is a repo sync failed during the synchronization process, re-execute the./repo sync command-generally, it supports re-download at the breakpoint.

 

// ================================================ ================

// Remarks:

1. The above method is a general method, which must be modified in different environments.

1. You are preparing to store the source code path

2. the user name and password used by your Internet proxy, the proxy server address and port number of your computer

3. source code version you want to download

4. Does your environment support all the commands used above?

2. The GIT command tool is not used in this process.

If you want to use it, set ---- $ git config -- global core. gitproxy "http-proxy-GW for kernel.org"

Related Article

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.