


Example tutorial on obtaining Android source code under Windows
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
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6
Visual web development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
