Blackberry made good hardware with terrible, terrible software. Samsung, so far, has focused on hardware and left the software to other people. It has allowed Samsung to focus on their core expertise and grow fast.
However, there is always the rumor that Samsung is building Tizen internally. This, IMO, would be a huge mistake. Samsung should focus on phones and leave the software to other people (Android, Ubuntu).
Realistically, I think Blackberry could do the same if they focused on their hardware and the enterprise market. If there was a high-riser who was shooting for something in Blackberry, they should be talking to Canonical right now and focus on making Ubuntu enterprise ready on their hardware. They could dominate that market for years.