Example tutorial on obtaining Android source code under Windows

零下一度
Release: 2017-05-24 15:26:03
Original
1875 people have browsed it

This article is a detailed analysis and introduction to the method of obtaining Android source code under Windows. Friends who need it can refer to it

Foreword: Omitted! There are countless reasons for obtaining source code~~~

1.Install the GIT tool.
GIT is a distributed version control software created by Linus Torvalds for the development of the manager Linux kernel.
Download address: code.google.com/p/msysgit/
All the waynextProceed to the end of the installation.

2. Create a new folder under a disk with a large amount of remaining disk space to store the source code.
I created a new androidsourcecode folder under drive F.

3. Visit the Android source code website and get the source code "download link" you need.
Website address: android.git.kernel.org/
Find the source code you need, such as the source code of Music. Located under platform/packages/apps/Music.git, click to enter.
Note: Some source codes have been removed although their names are displayed on the website, such as the alarm clock program. The old version of AlarmClock was
deleted, and the new version is DeskClock. You can go into the corresponding directory and take a look, I won't take a screenshot. I've suffered a loss on this before, so I bring it up for everyone's attention.

After entering, you will see the download method at the top of the page:

To clone one of these trees, install git, and run:
git clone git://android.git.kernel.org/ + project path.
To clone the entire platform, install repo, and run:
mk
dir
 mydroid
cd mydroid
repo init -u git://android.git.kernel.org/platform/man
if
est.git
repo sync
Copy after login

Further down there is the URL of the Music source code: android.git.kernel .org/platform/packages/apps/Music.git
Copy it.

4. Use GIT to download .
Right-click on the folder created in the second step, click "Git Bash" in the pop-up menu to enter the GIT command line window.
Enter git clone and then paste the URL copied in step 3.
Instructions: The pasting method is: Right-click the top of the command line window, pop up the menu, click Edit, and then click Paste:
Click Enter on the keyboard to start downloading.


There is a progress percentage above, just wait slowly
After downloading, you can use Eclipse to open it.
Don’t forget to enter exit after downloading to launch GIT

[Related recommendations]

1. PHP to obtain the windows login user name Method_PHP tutorial

2. Solution to the inability to run PHP on Windows 2003 64-bit system

3. Using Python to develop windows desktop programs

4. How to install Mysql5.7.11 on 64-bit Win10 system (detailed case explanation)_MySQL

The above is the detailed content of Example tutorial on obtaining Android source code under Windows. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!