I think it's a broader problem than that, because it's not just a matter of banning the police use of a tool that can be used for legitimate purposes, whether by police or other law enforcement agencies. The problem is that these tools, however technically advanced they might be, each one of them, they're available commercially to anybody who has an Internet connection and wants to download them. That is what is the problem, because otherwise, we're all just working after the fact to try to catch whoever is using it.
Our Criminal Code, as far as I'm aware, does not speak to somebody putting spyware on my phone or yours—a spouse, an intimate partner, a stranger. If they take the intimate photos and distribute them without my consent, that's addressed in the Criminal Code, but not spyware itself. Nobody is talking about preventing the spyware from being used in the first place. Nobody is talking about how the spyware is able to take advantage of the shortcomings, the deficiencies in so many software programs.
Google just introduced 27 fixes, including critical fixes, last week in one day. They and others keep introducing fixes for faulty software. Require that software be tested properly to minimize the opportunity for spyware to be able to take advantage right now of the built-in deficiencies.