Do you have any code used to check if your phone is tapped?
If your phone is being tapped by law enforcement agencies, they typically have the telco make a digital copy in their own system of all traffic going to and from your phone. Thus there is absolutely nothing out of the ordinary going on in your phone, and nothing you can do on your phone will reveal this copying.
There is as such no code to check. If your phone is tapped? But, by some things you can check it.
*keep eye on your phone activity
*if you see anything that starts without your permission then there is something in it.