And while Apple says it is keeping pace with surveillance tools that are used to attack its phones – it boasts of creating “the most secure consumer platform in the world” – research undertaken as part of the Pegasus project paints a more worrying picture.
The malware, it appears, has been one step ahead.
The article doesn't mention Android, but from what I know of it, it's child's play to hack, especially compared to an iPhone.

How does Apple technology hold up against NSO spyware?
The iPhone maker says it is keeping pace with malware, but the Pegasus project paints a worrying picture