If you want to know anything about Android OS, it's history, and all the internals etc.
This is what you want to read.
Code:
http://www.mediafire.com/file/y2l0jb2vmjvn1ob/AIvI-M-RL1.pdf/file
/kens