Samsung and Huawei have agreed to settle a long-running legal battle that saw the two companies dueling over smartphone patents in more than 40 lawsuits, according to Nikkei, which says the settlement was reported in local Chinese media.

Terms of the settlement haven’t been announced, but the companies appear to have reached a general agreement that’s supposed to move them closer to a cross-licensing deal for their patents.

They’ll also be dropping all lawsuits against one another.

The settlement comes as the smartphone industry is facing a number of shifts.

Phones will be moving over to 5G in the next year and on, and some smartphone manufacturers have seen declining shipments, as they struggle to sell phones to markets already saturated with them.

Huawei has managed to avoid that trend — its shipments were up 50 percent year over year this last quarter, according to IDC — but Samsung has not.

The text above is a summary, you can read full article here.