Download Android source code

Source: Internet
Author: User

[Update] http://source.android.com/source/downloading.html

The address of the new version has been modified:$ repo init -u https://android.googlesource.com/platform/manifest.git

Download and configure git and repo according to official documents,

$ Repoinit -u git://android.git.kernel.org/platform/manifest.git

After seeing init finished, run the following command. Otherwise, run the command again until the prompt is displayed.

$ repo sync

 

The above command is to download the main branch on platform. To download the source code such as 1.6 (cupcake), run the following command:

$ repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake

$ repo sync

 

The above code is: Apps + framewok in Android

 

Due to the long download time, some projects may fail to be downloaded during the download process (due to the time difference, some projects will be closed on Sunday, Beijing time,

Therefore, it is recommended that you do not download the source code at this time point, or you may think that the network is slow or the network speed is slow. The connection will be closed by the remote end, and so on...

Or you may want to download it again if you are not finished at the company ,...

When you need to re-start the download, note that you need to re-run the repo init-u... command

Then run the repo sync command.

 

Because the steps in manifest. Git can contain all the projects under/platform, you need to modify the file manifest. xml under. Repo (Hidden directory ).

Reference: source code download in the http://geek.gfan.com/aosp-android-2-1-eclair-source-for-htc-g1/, you need to check one by one to see if there is no less project

Added support for Chinese to display Chinese characters on the interface:

1) copy the file (./build/buildspec. mk. Default) to the root directory and run the command buildspec. mk again.

    2)

  ifndef CUSTOM_LOCALES
      CUSTOM_LOCALES:=zh_CN
       endif

The above modifications are described in the reference file (./build/buildspec. mk. Default:

######################################################################
# This is a do-nothing template file.  To use it, copy it to a file
# named "buildspec.mk" in the root directory, and uncomment or change
# the variables necessary for your desired configuration.  The file
# "buildspec.mk" should never be checked in to source control.
######################################################################

Appendix: source code Branch

* [New branch] cupcake-> origin/cupcake
* [New branch] cupcake-release-> origin/cupcake-release
* [New branch] donut-> origin/donut
* [New branch] donut-plus-aosp-> origin/donut-plus-aosp
* [New branch] eclair-> origin/eclair
* [New branch] froyo-> origin/froyo
* [New branch] froyo-plus-aosp-> origin/froyo-plus-aosp
* [New branch] gingerbread-> origin/gingerbread

 

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.