Android is in itself a loss making project. It makes money as a marketing vehicle for other Google products (and therefore ultimately advertising).