Of course this is all talking about Google as a corporation voluntarily doing something. Was someone in Google (or Apple or any other company) working on behalf of the NSA? There was early debates about whether that could even be legal, but at this point it seems that "anything goes" is the pattern, so possibly.
It's sorta telling to me that Google decided to go encryption on all intra-data after Snowden. No doubt they would have been briefed by agencies that they cooperate with about what the exposures would be.
It's more likely that whatever chipsets common across smartphones or routers is the point of exploit. So the NSA and Samsung or whomever have to have a private agreement. Apple/Google don't have a need to know, but you think a few engineers might be curious.
Many believed that Google was doing the NSA's bidding. Many others felt that only the polar opposite could be true: That Google rejected the NSA's pleas and thus the data couldn't be seen.
It seems to have turned out that fact was somewhere in between -- Google was an involuntary partner, but the NSA could monitor virtually all of their data via the data center to data center links.
The same thing could be happening at Apple (or any business): They have all the best intentions in the world and want to build the most secure product they can, but there is a extrajudicial foe that answers to essentially no one.