The NSA and its partners developed a top-secret method to infect smartphones with spyware through Google and Samsung app servers, Snowden documents reveal.