I'm sure there is zero R & D that isn't in some way profit-oriented. And a lot of advanced machinery that has been developed for factories and labs (touch, smell, sight, movement, AI) has direct application for android development.
That said, I have had my doubts about the economic potential of the Japanese android work. Great courage on their part to identify such a bizarre (IMO) market