@forteller like others have said, to survive a reboot you need some way to come back up. That kind of mechanism is called “persistence” - these kinds of vulnerabilities have become progressively harder to find in phone OSs, so the price for a good one (with an exploit) can be in the millions of dollars range. But if they are found they could potentially be fixed by the vendor. So they are used carefully. Otherwise it’s money out the window. So unless you are a high value target they probably won’t risk using it for you. And without persistence, reboot will clear it. Of course you have all sorts of spyware you (or someone with access to your phone) might’ve installed on purpose, but that’s another matter.