If Saudi Arabia or some other foreign government wants to get into your phone, it's going to happen. Your only option: Turn off the internet and just use the phone to make calls.
"They will get you," says David O'Brien, a senior researcher with the Berkman Center for Internet & Society at Harvard University. "Of course, it depends on how high a value of a target you are."
Clicking one bad link on a web page or visiting a website that had the malware installed by the Saudis could have done it, says O'Brien. He also adds that just simply downloading an app from the Apple or Google app store that wasn't secure could have also provided a pathway for the Saudis to enter.