Android Learning to a certain extent, you must read more code more thinking, Android Source is a good learning material, this article is to download the source of Android. We know that the Android source code is used in git this distributed version number control tool management, download is more troublesome, we are here in a graphical way, you can certainly learn.
first step, install VMware i if you under Windows, and Android source code under Linux download will be more. Then we will install a virtual machine to create a Linux environment. Unfamiliar classmates go to Google "VMware Workstation 7.1 Installation".
Step Two: Install Ubuntu10.04 This step is unfamiliar to the classmate to search "install Ubuntu10.04 in VMware" need to remind, it is best to install in the graphical interface, the installation process is relatively slow, need to wait a bit of patience, I was 95% and waited for nearly 20 minutes ^_^. Maybe for some people above two steps is a threshold, but I believe it will not be you.
The third step: Enter Linux, open the terminal Oh, I still have a picture of it, talk about, I know this you will ^_^
Fourth step: Install git and curl in the terminal form, tap the following command,
sudo apt-get install Git-core curl
such as the first line, the following carriage return, the installation is complete.
Fifth step: Install the repo script
Curl Http://android.git.kernel.org/repo >~/repo
Sixth step: Give repo permission to run With the picture or the one above, look carefully
chmod a+x ~/repo
Seventh Step: Create a new Folder Mydroid, and then go to the folder With the picture or the one above, look carefully
mkdir mydroid
CD mydroid
Eighth step: Repo initialization With the picture or the one above, look carefully
~/repo Init-u Git://android.git.kernel.org/platform/manifest.git
In the meantime need to enter the name and mailbox, any input, test color selection is, finally you will get a similar "repo initialized in/home/nebulayao/mydroid" hint, stating the success of the initialization. The picture is as follows:
Nineth Step: Repo synchronization
~/repo Sync
Well, since there are about 2 more grams of data to download, so wait for the time to go out to eat a meal, play a few game DotA ...
Finally you see this sentence Syncing work tree:100%, done means to complete the download.
Tenth Step: Acceptance Results: What is the use of the source code after download? We go into the Mydroid/packages/apps/phone folder to see, oh this is the Android system calls the program's source code, yes, you did not read wrong! There are treasures everywhere ^_^
The Android source code is the way to get it (illustrated)