Google said it had taken steps to protect users of its Android operating system and alerted them about the spyware. The global industry making spyware for governments has been growing, with more and more companies developing interception tools for law enforcement organizations.