Copyright © 2010 - 2010 vogella GmbH
Table of Contents
To get the Android source code you to use two tools, Git and an additional tool called repo.
Install the Git command line tool. See Git tutorial for an introduction into Git and its installation.
You also need to install an additional tool called repo. Execute the following commands for this.
# assumes that you have a local directory called bin # in your home folder # download the tool from Google curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo # make it executable chmod a+x ~/bin/repo
After you installed the repo tool you can get the Android source code with the following command.
// To get the current master repo init -u git://android.git.kernel.org/platform/manifest.git ; repo sync ;
The command "git branch -a" show you all available branches, e.g. froyo and gingerbread. You can checkout them via "git checkout branch_name".
To compile the code run the following command.
Writing and updating these tutorials is a lot of work. If this free community service was helpful, you can support the cause by giving a tip as well as reporting typos and factual errors.
If you find errors in this tutorial, please notify me (see the top of the page). Please note that due to the high volume of feedback I receive, I cannot answer questions to your implementation. Ensure you have read the vogella FAQ as I don't respond to questions already answered there.
|TRAINING||SERVICE & SUPPORT|
|The vogella company provides comprehensive training and education services from experts in the areas of Eclipse RCP, Android, Git, Java, Gradle and Spring. We offer both public and inhouse training. Whichever course you decide to take, you are guaranteed to experience what many before you refer to as “The best IT class I have ever attended”.||The vogella company offers expert consulting services, development support and coaching. Our customers range from Fortune 100 corporations to individual developers.|