Obtain the Android system source code in Windows

Source: Internet
Author: User
Tags git shell

I have been taking over Android for a year. Since I had a relatively small amount of materials at the beginning and most of them were out of context, I have been in a very understandable status for Android. Now I finally feel the learning experience to stay here, so I will start from this article my android series.Article.

 

Use git for Android ManagementSource codeIn Linux, we can use Ubuntu to obtain the system source code. Next I will introduce how to obtain the Android system source code in windows.

I. Install msysgit

This example is introduced in Google http://code.google.com/p/msysgit:

If you just want to useGitTo do your version control in Windows, you will need to downloadGit for Windows, Run the installer, and you are ready to start.Note:Git for Windows is a project run by volunteers, so if you want it to improve,Volunteer!

...

If you want to download and install the complete source codeGit for Windows(Including C compiler) to start hacking, you will need to install the full development system which is calledMsysgit.

Note: If you need to use the GIT tool for Version Control in Windows, you can use the Windows-based git, which provides the installation and download of msysgit.

We choose full installation version, http://code.google.com/p/msysgit/downloads/detail? Name1_msysgit-fullinstall-1.7.3.1-preview20101002.exe.

Download the msysgit installation package and install it. During the installation process, msysgit automatically installs or compiles git Based on the Windows environment. It takes some time to compile git. After installation, it is as follows:

This is the GIT shell window. You can download the Android system source code through the nameline operation. The following uses lunacher -- desktop -- as an example to download the source code.

II. Download luancher source code

The Android system source code is available at http://android.git.kernel.org/net, and the system appkey is in the platform/packages/appsstructure.

Enter the following name in the Shell Name line window of git:

Git clone git: // android.git.kernel.org/platform/packages/#/luancher2.git

You can use git in your msysgit installation directory (~ \ Msysgit \ GIT) to see the luancher project folder.

Then open ~ \ Msysgit \ git \ luancher2 folder, you can see the android luancher system source code project.

 

The method for obtaining the source code of other app systems is the same as that of the preceding luancher, except that the parameters after the name line are different.

Git clone git: // android.git.kernel.org/you need to download the location of the appenders of the source code.

3. Start msysgit

Some friends cannot find the re-opened link after closing the msysgit naming line window. Don't worry, you just need to double-click the msys. BAT file in the msysgit path you installed.

 

All are done.

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.