Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check out Android source code in Windows OS?

I try to search for it but I just cant. I am running Windows 7 on Lenovo G460 laptop. I tried to install Ubuntu on it but I cannot use Wireless to connect to the internet for some reason.

Is there anyway for me to get a look at Android source code or at least just the Calendar part of it?

like image 243
RobGThai Avatar asked Apr 30 '10 17:04

RobGThai


People also ask

How can I see the source code of Android OS?

The source code for Android 1.0 is now available in a weighty 2.1 gig download from http://source.android.com.

Is Android source code open?

Android's code is open source, so we can't prevent someone from using an old version to launch a device. Instead, Google chooses not to license the Google Play client software for use on versions that are considered obsolete.

Where is Android Studio source code?

The Studio Source Code After following the download instructions (here), you will have the Android plugin source code under tools/adt/idea, the IntelliJ IDE base in tools/idea/, and a lot of shared libraries in tools/base/.


1 Answers

You can browse the android source code using their repository browser. If you want to check out a specific project (i.e. download the source), you will need to get the version control system Git. When you have Git running, you can either clone a complete repository using git clone https://android.googlesource.com/projectname.git or just get the HEAD (the most current version of all files, useful if you only want to browse through the source) by doing git clone --depth 1 https://android.googlesource.com/projectname.git.

The project name is the top folder you select on the repository browser, for example platform/packages/apps/Calendar for the Calendar app. Then the full command is git clone https://android.googlesource.com/platform/packages/apps/Calendar.

like image 107
poke Avatar answered Oct 02 '22 12:10

poke