Susan Deacon, chairwoman of the Scottish Police Authority, insists the hacking devices comply with the law