Demonstrate prior art? There are a lot of ways to do that without releasing production code.
If you patent the core idea, the other patents become a lot less useful. (Not that I think Google is thinking this way. It's just a PR problem to them. When no one is looking, I bet they do whatever they can to get as much money/power as they can.)