This article is mainly divided into 2 parts . The 1th part describes how to download the source code for the Android SDK , and the 2nd part describes how to add the source code of the Android SDK to eclipse .
1th part How to download
[Linux/Ubuntu 6] unbuntu download android source code, unbuntuandroid
Install Cygwin in Windows and use Cygwin to download the Android source code in Windows.Follow these steps to
Article Reference Source: http://source.android.com/source/downloading.htmlFirst, window platform on the window platform to download Android source code, the Internet is generally used directly with git to download. For example: h
This article consists of two parts:. Part 1 describes how to download the source code of the android sdk. Part 2 describes how to add the source code of the android sdk to eclipse.
Part 1 how to download the
As mentioned in the previous article, the latest Android source code downloaded from the source code tree does not contain kernel code, that is, the android source code project does not
1) Enter the source code websitehttps://www.kernel.org/The page is as follows:2) The GIT address of the main line, when the point mainline behind the "Browse", as follows:Click on the Penguin to the right of the index:kernel/git/torvalds/linux.git, you can find the main source git addressThe following (all three are the same
1. On a Linux terminal, run the following command to create an android directory under the user directory and enter the directory:Flat view printing? 1 mkdir android2 cd android2. Create the bin directory in android to execute the command:Flat view printing? 1 mkdir bin3. Add it to the environment variable PATH (this step can be skipped and will be described in step 1 ):Flat view printing? 1 PATH = ~ /Android/bin: $ PATH4. Go to the bin directory,
-speed Setup functionFinally, we provide a function to switch to the Android compilation environment at high speed android_env , and another function to match it repo . Write this two function into your shell configuration file (such as ~/.ZSHRC) and you can then use the commandandroid_envSwitch to the compilation environment at high speed. Suitable for users with the default shell of Zsh. These two functions can be obtained here.Other assorted problem is the company self-research part of the pr
For more information, see http://source.android.com/source/downloading.htmlInstalling repo.
Repo is a tool that makes it easier to work with git in the context of Android. For more information about repo, see version control.
To install, initialize, and configure Repo, follow these steps:
Make sure you have a bin/directory in your home directory, and that it is stored in your path:$ mkdir ~/bin$ PATH=~/bin:$PATH
Yumdownloader--source KernelIf you are downloading insightis Yumdownloader--source InsightThe download is to the current directory.And then generate the compressed file with Rpm2cpioRpm2cpio Insight-7.4.50-8.20120403cvs.fc17.src.rpm|cpio-idThe use of Rpm2cpio in http://www.rpm.org/max-rpm/s1-rpm-miscellania-rpm2cpio.htmlThis command generates many files under the
Meego source code is managed through git tools, we can download through the GIT address of the source code, but http://meego.gitorious.org/This website provides the GIT address of the module. If a module is downloaded from one module, it will not be exhausted ~ Therefore, in
Preface
This section describes how to use basic Linux/Unix functions to compile a complete server and client example that can be run on Linux (UBUNTU) and Unix (FreeBSD, the functions of the client and server are as follows:
The client reads a row from the standard input and sends it to the server.
The server reads a row from the network and then outputs the row to the client.
The client receives a
$ Mkdir/home/Android // create a working directory
$ CD/home/android
$ Mkdir Bin
// Download and install the repo version management tool:
$ Curl http://android.git.kernel.org/repo>./Bin/Repo
$ CD Bin
$ Chmod A + x Repo
Prepare to download Android:
$ CD/home/android
$ Python./bin/repo init-u git: // android.git.kernel.org/platform/manifest.git-B cupcake
$ Git config -- global user. Email "XXXXX @
10 Technical Team Professional Custom Download system website/download website source code, resource download website platform customizationThe download system by the green Tea Science and technology team independently developed,
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.