It shuts down under zero too. I can't take my phone out of the pocket in winter while outside? It even happened once when I took it out while waiting in my car with the engine off. It was cold but definitely above freezing.
Not sure if that's a valid way to charge your phone or not. Would be interesting if it was!
Condensation is a different beast - unless your phone has literal vacuum, 0% humidity air or some other inert gas inside of it, in some thermal shock condensation gradient would form through it.
Electronic circuits themselves would have to be protected somehow, pins of processors etc. We are not there yet, not with cheap disposable electronics like iphones or androids (compared to say military or deep diving or space-grade electronics where everything is built for massive redundancy and abuse from scratch)
The official workaround (internally, at Google), was to put it in the fridge before starting the update.
It was the most awful phone I've ever had. The polar opposite of the Nokia's and Ericsson's of my youth. I spent hours daydreaming about how I would destroy the phone as soon as I could get a new one. Throwing it into a wall, jumping on it, dropping it from a tall bridge.. It gave me a little bit of solace.