Like every intelligent, well-informed person, I hate the government and realize it is a vile idiot. That being said, I am somewhat inclined to side with the court.
When the founders drafted the Fourth Amendment, it was not their intention to make search and seizure impossible. They only wanted to make it reasonable. They didn't want the local sheriff rolling people out of their beds at night and going through their belongings on a whim. They decided the authorities should have to spell out their reasons for searching, submit them to judges, and get court orders. They didn't provide a legal right to hide things from the government even when it had good reason to search.
I don't think we've ever had the legal right to keep anything that isn't privileged or self-incriminating from the government, when the government had a strong, legitimate reason to force us to produce it. Remember when the government forced Michael Jackson to pose for photos of his genitals? That's a lot worse than hacking your phone.
The government can override our rights in a number of ways. For example, a government agency can have a racist policy, IF they can show that it serves a compelling interest. The Bill of Rights limits what the government can do, but the limits are not all carved in stone.
Would we really want a terrorist to be able to encrypt a phone or laptop containing the location of a bomb on a timer?
Cry "Havoc," and let slip the dogs of bench.
I was socially distant before it was cool.
A little authority corrupts a lot.