Need to start obscuring what is installed on devices. Terminal based communication and host it on a remote server that you connect to with SSH so when they inspect your phone there is nothing there.
At least if I had something to hide I would be way ahead of dumb laws like this.