If your extra paranoid about the government or whoever decrypting your phone, use a strong passphrase and only use it for decrypting your phone. Also turn if off before any interactions with police/TSA/NSA/whoever. This will work for any reasonably new Android. If you don't trust me feel free to dig into the code yourself!
But honestly, the government will either shoulder-surf your PIN code or make you unlock it with your finger, or just snatch the phone from you while its unlocked.
They bought an exploit to unlock the San Bernardino phone, but they only really needed to do that because the owner was dead and Apple stopped their routine cooperation.
If the federal government is in your threat model, this is the wrong place to be protecting.
https://www.zdnet.com/article/police-cant-force-us-citizens-...
Another ruling:
https://www.forbes.com/sites/thomasbrewster/2019/05/10/the-u...
https://reason.com/2019/01/15/search-warrants-and-compelled-...
https://observer.com/2019/05/police-force-unlock-phones-nj-s...
Wonder why you are so naive and think that they won't do bad things if they are _really_ interested into getting into your phone.
... but of course XKCD got it completely right: https://www.xkcd.com/538/
I'm not a hacker, But I am a skeptic; wouldn't it behoove the Gov't to just pretend they had to pay a private hacker a boatload of greenbacks to crack an Iphone? I mean, that's the smart play, no?
Again that would be the beauty of it. If they did have to use a hack Apple didn't know about. We don't really know how they cracked it--only what "they said". Maybe it was a Day Zero, maybe it wasn't. If the NSA has access to Everthing that Everyone does online, (and Yes I do know that E2EE is unbreakable, but were Apple engineers using that to communicate?); its possible they know as much, if not more more, about the architecture than Apple does. Have you seen the size of their data centers, and the extremes they go to for spying on us.
And speaking of Gov't State sponsored crackers: here's a nice litte article about one of our (The USA's) allies [1] who break iOS, allegedly--When Ever They Want To, not a Five Eyes Nation but still a close ally.
https://www.vice.com/en_us/article/pajkkz/its-almost-impossi...