In the course of learning Android, it is very important for us to delve into its source code, which will show you how to get our Android source code by using Git in a Windows environment.
1. First make sure that you have Git installed on your computer, which is installed by https://github.com/download.
2. We then enter the following command on the git command line:
git clone http://android.googlesource.com/platform/frameworks/base Android//This android is our own name to recognize, The name of the folder that represents clone .
This download speed will be very slow, will download all the source code of Android (in the dorm after a night to download, 冏)
3. We look at the entire directory structure of our clone down Android by entering the git tag command:
We see that these are the source code for all of our Android releases.
4. Select the Android source code we need to download (the latest version of 4.4 is already inside, I checkout out 4.3 source)
git checkout android-4.3_r3. 1
This speed is very fast, then we get the source of the Android4.3, we go to the clone of the Android-->core directory, and then copy the Java folder into our SDK directory, such as:
F:\adt-bundle-windows\sdk\platforms\sources\java
This allows us to link the source code in eclipse to the 4.3 source we just downloaded.
(forward) Android source code acquisition-----in the Windows environment through git to get Android sources