Samsung Electronics Co. is stepping up its hunt for acquisitions and building out its presence in Silicon Valley to try and overcome its key weakness: software.

The South Korea-based company became the world's largest maker of smartphones by manufacturing attractive devices that hit the market quickly and cheaply.

But to thrive in a mobile-device...