Japan’s Sony Corp. and LG Electronics of South Korea have amicably agreed to withdraw more than 20 patent infringement suits they have filed against each other over their smartphones, game consoles, and other products, Sony officials said Thursday.

Sony and LG reached the out-of-court settlement to “get rid of business risks,” one of the officials said.