In principle you can build your own android image from the public git tree. This would be the first type. My understanding is that people have figured out how to hack the google apps (gmail, market, etc) onto these pure open-source images, so switching between the types is technically possible, but probably infringes copyright and/or violates eulas.