How would you fix HTC?

HTC is falling apart. And so was Palm, RIM, and Nokia. Elop really solidified Nokia's position on the smartphone game, while RIM and Palm couldn't do so, although it wasn't really Palm's fault.

How would you fix HTC?