LG's mobile division made a profit last quarter, and I assume they will make a profit on the Optimus G and Nexus 4 for the next few quarters. They also for the first time built almost everything in house(like Samsung does) instead of contracting them out like they normally do.
Sony won't be going anywhere. With their acquisition of SonyEricsson, they're camping down and preparing for the long haul.
Keep in mind with some of these companies(Samsung, LG, and Sony), they are heavily invested in televisions/display technology and that's where they are writing their major losses from, not the smartphone business.
Their mobile division is their only hope of ever achieving profitability so I don't see why they would exit the smartphone business while continuing to take loses and write down their TV business to the tune of $1-5 billion yearly.
I've looked at some of this companies and read news about them over the past few weeks...Sony, Panasonic, LG, Sharp, etc...It is pretty grim.
http://news.cnet.com/8301-1001_3-57...japanese-consumer-electronics-giants-is-dead/
http://www.nytimes.com/2012/11/02/b...-and-panasonic-report-significant-losses.html
Even at a company like Samsung, I believe the mobile division alone accounts for 70-80% of their entire profit.
These companies need the smartphone business to survive, not get rid of it.