I'd never trust installing their apps on my phone. The Facebook app admittedly listens to the microphone. So Facebook messages will largely become a black hole for me too.
The real issue is that I have a fucking right to have my device be secure against the government. It's funny how you can only make sense of your argument when you get down in the weeds and lose sight of the big picture.
This is a fairy tale. In reality, municipalities don't go much out of their way to uncover their own wrongdoings. It is fallacy to assume that this would be handled properly.
I have never found "X lines of code" to be impressive. Write clean code and polish it and make it readable. Who cares how long it is. Hackers brag about lines, not engineers.