For me it's really clear what needs to happen to get market share.
Show your phones features that better the top phone/s at the time on as much media as possible. TV Ads, billboards, viral net video's and free newspapers. Make no mistake your phone has to live up to its claims and happy customers by word of mouth will sell your phones for you.
Next Simplify the line up (not unlike HTC claimed to do) to three phones a 4" a 4.5" and a 5". Give them all the same specifics from ram size to storage space. Then highlight the fact that you give people the choice to have a flagship phone in the size they prefer.
Watch everyone else copy your simplicity and count your cash!
Samsung made the S2 amazing and it still is a great phone today. The S3's success is mainly because of the S2 being a true contender to the iPhone at the time (if not better) plus their marketing tactics.
Even the court cases keep the name Samsung in the general mind share and prove to the world that Samsung plans to fight with Apple toe to toe.
Running stock would be great for geeks but the general public now know that buying a Samsung flagship phone is the next best thing or better than Apple where as the number of geeks out there are lost like tears in rain compared to the number and influence of the general consumers.
Can we see Sony doing what it takes? I doubt it but they are capable of grabbing the consumers attention especially through very, very beautiful TV Ads. Sony Bravia Bouncy Balls Full HD 1080p