Thank You for great tutorial!
however i do have one question. i followed all the tutorial, built source code. if i would edit any source code file (e.g add simple log message in any function), will i have to fully rebuild it? or is it possible to build individual components faster?
Yes, you have to read about git and repo.
For example, I have played alot with the DeskClock App and built it separately many times. So what you do is modify the code in that project (the desk clock itself is a git repository... i.e. if you locate it's containing folder, you'll see a ".git" folder... that's the repository local repository that will contain the original code. Then you can build it. You can build anything separately that has a '.git' folder, I believe
Here are the steps how I build the desk clock by itself:
1. edit your source code to your hearts desire, say DeskClock
2. source build/envsetup.sh (just like building source)
3. lunch full_toro-userdebug (maybe an optional step, but probably depends on what you are building, and what device you want to use it on)
4. time mmm -j9 ~/WORKING_DIRECTORY/packages/apps/DeskClock
of course, you might not do -j9, depending on your number of cores, and it might not be WORKING_DIRECTORY for you depending on your folder structure. note that if you haven't built the base AOSP system, framework, etc, then it can take along time as it still builds all that stuff I think. I'm currently getting an error doing this (I haven't done it in a while), that I thinnk is due to not building the complete system before hand. This should at least get you started. There are google groups centered around git, repo, and AOSP too... they are great soruces of info too.
If you mess up the code, you can restore it from the git repository (either local or remote), depending on what you have done. But that is another long post...
*EDIT* : if you do make -j9 showcommands DeskClock, it will build all the dependencies too. SO you don't have to do the full path to the project you want to build.
https://groups.google.com/forum/#!topic/android-building/yJtA9X5SevE