Google and Apple have decided to terminate a longstanding patent dispute over smartphones. Lenovo is seeking to acquire Google Motorola Mobility, which was involved in the patent fight but Google is keeping most of the Motorola patents.

In a court filing on Friday, Apple and Google filed a “joint motion to dismiss” an appeal in the ongoing case.

The filing says the companies wanted “to dismiss the litigation without prejudice. The parties further agree that each party will bear its own costs and attorneys’ fees.”

In a joint statement, the firms said they are dropping nearly two dozen lawsuits in U.S. and European courts against each other. The disputes revolved around the operating systems Apple uses for its iPhone and Google’s Android software as well patent infringement accusations from Motorola Mobility, which Google acquired two years ago.

The deal has no bearing on a separate patent issue: Apple’s lawsuits against Samsung Electronics Co., also regarding smartphone technology.

Apple and Google said in a joint statement that they would work together on patent reform and that the agreement does not include the cross licensing of technology.

Lenovo, which operates its global executive headquarters in Morrisville, is seeking regulatory approval to acquire the Motorola Mobility business for some $2.9 billion.