If your phone was compromised by a government body, how would you return it to it’s original state?


Say your phone was confiscated and consequently compromised, how would you ensure that it is no longer bugged?